CREATE USER MY_REPO_IMPORT_USER PASSWORD MyRepoUserPW123;
GRANT EXECUTE ON SYS.REPOSITORY_REST TO MY_REPO_IMPORT_USER
GRANT REPO.READ ON ".REPO_PACKAGE_ROOT" TO MY_REPO_IMPORT_USER;
GRANT REPO.IMPORT TO MY_REPO_IMPORT_USER; GRANT SELECT ON _SYS_REPO.DELIVERY_UNITS TO MY_REPO_IMPORT_USER;
GRANT REPO.ACTIVATE_IMPORTED_OBJECTS ON ".REPO_PACKAGE_ROOT" TO MY_REPO_IMPORT_USER;
hdbuserstore SET SRTAKEOVER <publichostname>:<SystemDBsqlport> <myrepouser> <myrepouser_password>
(Above command only in systemDB, not in tenant DB)
For example, for public host name "mypublichost" and system number "00", "MY_REPO_IMPORT_USER", and "MyRepoUserPW123" : hdbuserstore SET SRTAKEOVER mypublichost:30013 MY_REPO_IMPORT_USER MyRepoUserPW123
Steps:
./hdblcm --action=update
hdbnsutil -sr_takeover
./hdblcm --action=update
./hdblcm --action=update --hdbupd_server_nostart
hdbnsutil -sr_register --name=<secondary_alias> --remoteHost=<primary_host> --remoteInstance=<primary_systemnr> --replicationMode=[sync|syncmem|async]–-operationMode=[delta_datashipping| logreplay|logreplay_readaccess]
1.Site C: Stop, and upgrade the SAP HANA database with nostart option, no repo import:
/usr/sap/hostctrl/exe/sapcontrol -nr <instance_number> -function StopSystem HDB
./hdblcm --action=update -s <SID> --hdbupd_server_nostart
2.Site B: Stop, and upgrade the SAP HANA database with nostart option, no repo import:
/usr/sap/hostctrl/exe/sapcontrol -nr <instance_number> -function StopSystem HDB
./hdblcm --action=update -s <SID> --hdbupd_server_nostart
3.Site B: Start the SAP HANA database:
/usr/sap/hostctrl/exe/sapcontrol -nr <instance_number> -function StartSystem HDB
4.Site C: Start the SAP HANA database:
/usr/sap/hostctrl/exe/sapcontrol -nr <instance_number> -function StartSystem HDB
5.Site A: Check in M_SERVICE_REPLICATION that sync system replication is ACTIVE from SiteA to SiteB, and that async replication is ACTIVE from SiteB to SiteC
6.Site A: Stop the SAP HANA database:
/usr/sap/hostctrl/exe/sapcontrol -nr <instance_number> -function StopSystem HDB
7.Site B: Take over as the primary system, applications’ database connection should be changed accordingly:
hdbnsutil -sr_takeover
8.Site C: Change the replication mode of the new tier 2 secondary:
hdbnsutil -sr_changemode --mode=sync
9.Site B: Check in M_SERVICE_REPLICATION that sync system replication is ACTIVE from SiteB to SiteC
10.Site A: Upgrade the SAP HANA database with nostart option, no repo import:
./hdblcm --action=update -s <SID> --hdbupd_server_nostart
Now, SiteA is stopped, and SiteB is the primary system, and SiteC is the secondary system with sync replication mode.To restore the original multitier setup (SiteA --sync--> SiteB --async--> SiteC), SiteA should be added as the secondary site instead of SiteC, then SiteA should take over from SiteB, finally SiteC is added as the tertiary site (tier-3).
11.Site C: Stop the SAP HANA database
/usr/sap/hostctrl/exe/sapcontrol -nr <instance_number> -function StopSystem HDB
12.Site B: Unregister SiteC from SiteB:
hdbnsutil -sr_unregister --name=siteC
13.Site A: Register as secondary:
hdbnsutil -sr_register --name=siteA --remoteHost=<hostname_of_B> --remoteInstance=<instance_number> --replicationMode=sync
14.Site A: Start the SAP HANA database:
/usr/sap/hostctrl/exe/sapcontrol -nr <instance_number> -function StartSystem HDB
15.Site B: Check in M_SERVICE_REPLICATION that sync system replication is ACTIVE from SiteB to SiteA.
16.Site B: Stop the SAP HANA database:
/usr/sap/hostctrl/exe/sapcontrol -nr <instance_number> -function StopSystem HDB
17.Site A: SiteA takes over as the primary system, so applications’ database connection should be changed accordingly:
hdbnsutil -sr_takeover
18.Site B: Register SiteB as the tier 2 secondary of SiteA:
hdbnsutil -sr_register --name=siteB --remoteHost=<hostname_of_A> --remoteInstance=<instance_number> --replicationMode=sync
19:Site B: Start the SAP HANA database:
/usr/sap/hostctrl/exe/sapcontrol -nr <instance_number> -function StartSystem HDB
20:Site A: Check in M_SERVICE_REPLICATION that sync replication is ACTIVE from SiteA to SiteB.
21:Site B Enable SiteB as a replication source system:
hdbnsutil -sr_enable
22:Site C: Register SiteC as a tier 3 secondary in the multitier system replication scenario:
hdbnsutil -sr_register --name=siteC --remoteHost=<hostname_of_B> --remoteInstance=<instance_number> --replicationMode=async
23:Site C: Start the SAP HANA database:
/usr/sap/hostctrl/exe/sapcontrol -nr <instance_number> -function StartSystem HDB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |