Sunday 24 October 2021

Disable SAP HANA System Replication with hdbnsutil

We can disable SAP HANA system replication in an SAP HANA system using hdbnsutil.

Remember before disable Replication :-

  • Login as SIDADM user
  • Secondary system must be offline
Disable Procedure :-  

1. Unregister Secondary System
  • Stop Secondary System
  • Unregister Secondary System  using below command
           hdbnsutil –sr_unregister

Disable SAP Hana system replication with hdbnsutil

2. Disable system replication 
Use Below command on Primary System 

          hdbnsutil –sr_disable

Disable SAP Hana system replication with hdbnsutil

Check the status using command /hdbnsutil -sr_state

After Disable the replication we can replicate the systems again ,

On Primary System :-

            hdbnsutil –sr_enable

If it not working the use below command to forcefully disable the replication,
    
            hdbnsutil –sr_disable --force

the start replication again,

            hdbnsutil –sr_enable

On Secondary System :-

Stop Secondary system
Use below command to start again the replication,

            hdbnsutil -sr_register

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

Start Secondary System

If the above steps not worked the use below option to configure the replication again,
Stop Secondary system then,
                hdbnsutil -sr_cleanup --force
                  hdbnsutil -sr_register   (Full command mentioned above)

      Start the secondary system

      Also Read,

      Thanks for reading, Please share your valuable feedback

      Share this

      2 Responses to "Disable SAP HANA System Replication with hdbnsutil"

      1. Nice doc...keep it up brother...
        Thanks for sharing..!!!

        ReplyDelete
      2. Hi,
        What is hana system replication and it's use ?

        ReplyDelete