Thursday 21 October 2021

SAP HANA System Replication setup with hdbnsutil

The following steps show how to configure such a system. In this scenario there are two SAP HANA systems: A, B named SiteA & SiteB. This scenario supports a tier 2 secondary with sync replication mode.

Check the Replication prerequisites using below link,
Prerequisites for Configuring SAP HANA System Replication

1. Enable system replication in Primary System.
    Primary System Loggical Name - SiteA

     Login as SIDDM
    cd /usr/sap/<sid>/HDB<instancenr>/exe
    /hdbnsutil -sr_enable --name=SiteA

   To check if the site has been successfully enabled for system replication with hdbnsutil run:
   
    /hdbnsutil -sr_state

2. Stop the tier 2 secondary System
     sapcontrol -nr <instance_number> function StopSystem HDB or HDB stop

3. Register Secondary System on Primary

hdbnsutil -sr_register --replicationMode=sync --operationMode=logreplay --name=SiteB     --remoteInstance=<instId> --remoteHost=<hostname_of_SiteA>

4. Start the secondary system
sapcontrol -nr <instance_number> –function StopSystem HDB  or  HDB start

To check if the site has been successfully enabled for system replication with hdbnsutil run

/hdbnsutil -sr_state

HANA System Replication with hdbnsutil

Also Read,

Thanks for reading, Please share your valuable feedback.  

Share this

0 Comment to "SAP HANA System Replication setup with hdbnsutil"

Post a Comment