Create a Replication Server connection 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.
hdbuserstore set rds myhost:xxxxx my_securestore_user my_securestore_pwdwhere
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 in place of SAMPLE_RS.
create connection to rds.rdb using profile rs_udb_to_hanadb;ech set username muser set password mpwd go
create connection to rds.rdb using profile rs_udb_to_hanadb;ech set username auser set password apwd set dsi_connector_sec_mech to "hdbuserstore" go
rds is the replicate SAP HANA database. For a standard connection, this must match the data server name in the interfaces file entry. See the Adaptive Server Enterprise Configuration Guide for UNIX > Set Up Communications Across the Network > Contents of the interfaces File and the Adaptive Server Enterprise Configuration Guide for Windows > Network Communications Using sql.ini. For an SAP Secure User Store connection, this must match what you used as the key to create a user store of encrypted credentials with the hdbuserstore utility.
rdb is placeholder: You must provide a value, but it is not used..
muser is the maintenance user for the replicate SAP HANA database instance that you created in a previous step.
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.