Configure Replication Server for replication from SAP Business Suite running on supported databases to SAP HANA database.
[dataservername] master tcp ether hostname port query tcp ether hostname portwhere hostname and port are the host and port number of the SAP HANA database, and dataservername is a label used to identify the host and port number. For information about stopping and starting Replication Server, see the Replication Server Administration Guide Volume 1 > Manage a Replication System.
3in15where in is the two-digit instance number. For example, the port number for an SAP HANA database with instance number 1 is 30115.
CREATE USER muser PASSWORD mpwd_temp
ALTER USER muser PASSWORD mpwd_new
./hdbsql -u user -p password -i idwhere user is the SAP HANA database user, password is the user password, and id is the instance number.
GRANT CREATE ANY, DELETE, DROP, EXECUTE, INDEX, SELECT, UPDATE ON SCHEMA myschema TO muserwhere myschema is your SAP HANA database schema, and muser is the maintenance user you just created.
isql –Usa –Psa_pass –SSAMPLE_RSIf you have not set up the sample Replication Server instance, enter your Replication Server instance name instead of SAMPLE_RS.
create connection to rds.rdb using profile connection_profile;ech set username muser set password mpwd go
rds is the replicate SAP HANA database. For a standard connection, this must match the data server name in the interfaces file entry.
rdb is a placeholder; you must provide a value, but it is not used.
Primary Database | Connection Profile Value |
---|---|
Oracle | rs_oracle_to_hanadb |
Microsoft SQL Server | rs_msss_to_hanadb |
IBM DB2 UDB | rs_udb_to_hanadb |
muser is the maintenance user for the replicate SAP HANA database instance you have already created.
mpwd is the replicate SAP HANA database maintenance user password.
auser and apwd are unused values supplied only to satisfy the syntax of the create connection command.
configure replication server set varbinary_strip_trailing_zeros to 'off'
alter connection to rds.rdb set sapsystemname to 'sid_adm_value'
For example, the SYSTEM NAME is D01. You must enter:
alter connection to rds.rdb set sapsystemname to 'D01'
alter connection to rds.rdb set schemamap with decluster from pds.pdb.primary_schema to HANA_schema
pdb_setreptable primary_schema.tablename, mark, owner go
where, primary_schema.tablename is the SAP table name.
rs_create_repdef primary_schema.tablename go
where, primary_schema.tablename is the name of the SAP DD table.
create subscription sub_name for table_repdef with replicate at rds.rdb without holdlock direct_load init replicate table with create_or_truncate user username password pass go
alter connection to data_server.database set sap_trim_len to 'on'
alter connection to rds.rdb set reblock_ddntf to 'off'
pdb_setreptable primary_schema.tablename, mark, owner go
where, primary_schema.tablename is the SAP table name.
rs_create_repdef primary_schema.tablename go
where, primary_schema.tablename is the name of the SAP table.
create subscription sub_name for table_repdef with replicate at rds.rdb without holdlock direct_load init replicate table with create_or_truncate user username password pass go