Skip to main content

SAP Hana Database high availability & replication configuration & status

We have many options to setup the HANA High availability. If suppose, we have one primary node as a live system and one secondary node, which is for High availability & one more is Disaster Recovery node. Now let's see how we can enable/disable the replication between them.

Replication status : 

We can check the active status & overall active status in primary node. For that, please follow the below steps.

Hana
  • Switch to <sid>adm user on primary server.
  • Then execute the below command, so that will get the status, whether it's is active or not. Also you will get the site B & site C and other details. >hdbnsutil -sr_state replication
  • Also we can get the all nodes active & sync status by executing below commands,
    • For that, run the command as "cdpy" with <sid>adm user. So that, you can directly switch to the python support directory.
    • Then execute the below command to get the overall status. >python systemReplicationStatus.py replication

To Enable Replication b/w Primary & HA:

Once you switched to <sid>adm user on primary node(mandatory), execute the below command to enable the system replication source site as A.

>hdbnsutil -sr_enable --name=SITEA or Primary Hostname OR >hdbnsutil -sr_enable

replication

Once it's done, then you have to register the primary node on HA Node by executing below command by switching to <sid>adm user. Also make sure that HA DB should be in down state before execute command.

>hdbnsutil -sr_register --remoteHost=<FQDN of Primary Node> --remoteInstance=<00> --replicationMode=sync --operationMode=delta_datashipping  --name=SITEB --force_full_replica
We have also few other replication and operation modes. As per the requirement, we can set accordingly. Replication Modes: 1. Sync 2. Syncmem 3. Async 4. Full sync Operation Modes: 1. Logreplay 2. Delta_datashipping 3. Logreplay_readaccess

Then Start HA-DB & check the replication active status again by using  python systemReplicationStastus.py

To enable b/w HA and DR :

Switch to <SID>adm user in HA node, then execute the below command to enable the HA-Node as a source replication system for DR.
>hdbnsutil -sr_enable --name=SITEB or Primary Hostname
After that, execute the below script to active the replication from HR to DR,
>hdbnsutil -sr_register --remoteHost=<FQDN of HA> --remoteInstance=<00> --replicationMode=async --operattionmode=delta_datashipping --name=SITEC --force_full_replica
Then start the DR-HDB.

To disable b/w DR and HA :

First stop DR-HDB, then execute below unregister command from DR by switching to <SID>adm user,
>hdbnsutil -sr_unregister
After that, go to HA server, then disable replica source system,
>hdbnsutil -sr_disable

To disable b/w HA & Primary :

To disable the replication between HA node & primary node, just you have to follow the reverse steps of above process like as below,

Stop the HDB on HA node, then unregister the primary node,

>hdbnsutil -sr_unregister

Then go to primary node & disable it.

hdbnsutil -sr_diable

Note : If you are unable to disable in primary site with error kike "error: there are still secondary sites attached;". It means, the unregister process was not completed fully in secondary system. again if you observe that, you can see below highlighted message. replication Then execute the instructed command in primary. After that, disable it again. It works fine.

Related Articles :

Thanks!

"I hope this Article is helpful to you. If you like this, please share to you colleagues & hit me with FB like button. If you have any queries, let me know as a comment below"

Comments

Popular posts from this blog

New Hidden Instagram Features: Auto-Scroll, Playback Speed, Closed Captions (CC) & Full-Screen Mode

Instagram continues to improve the way people watch and interact with short-form videos. While most users are familiar with basic Instagram Reels controls, the platform is introducing and testing several useful playback features that many people may not have noticed yet. These features make watching Reels more convenient, flexible, and enjoyable. Whether you want to watch videos without touching your screen, adjust playback speed, read captions while watching, or enjoy videos without distracting interface elements, Instagram's newer playback controls offer something useful. In this guide, we will explore four interesting Instagram features: Auto-Scroll, Playback Speed, Closed Captions (CC), and Full-Screen Mode. We will explain what each feature does, how to access it, and why you might find it useful. 1. Instagram Auto-Scroll Feature – Watch Reels Without Swiping One of the most convenient additions to Instagram Reels is the Auto-Scroll feature. Normally, when watching Insta...

Troubleshooting SAP Fiori Applications & Generic Apps Tiles loading issues

There are many ways we can troubleshoot the SAP Fiori applications, tiles issues & other Odata services problems. Some times, after completed the all Apps configurations also, the respective tiles are may not load properly.  I will guide you with the available possibilities. Tools & Options: Tcodes : /IWFND/ERROR_LOG /IWBEP/ERROR_LOG Page inspection Code tool Meta data Cache cleanup Front/Back end Cache cleanup Complete Troubleshooting guide for Fiori Apps & Tiles issues: As per the information available in the Fiori Apps Library, we will configure & active the all required apps, Right..! Once you assign the Role, respective App should be appear under the respective Catalog & Group. But some times may not load the tile or may get the error like "Can't load the groups" or "can't load the tile" when you open the App. It may happen due to some Odata services mapping issue or may be due to the wrong system ali...

SAP Basis Administrator job roles & responsibilities including Hana, S4 Fiori, Solman

Dear, you should know the all roles & tasks responsibilities as a SAP Basis Consultant. Here, I will try to give the information on daily, weekly and monthly base activities. Including S4 Hana, Fiori, Solution Manager 7.1/7.2 and on Hana Databases and other DB's. Definition of SAP Basis The SAP Basis Administrator is responsible for the management of the SAP environment. Other responsibilities like implementing, configuring and troubleshooting the sap technical environment. As well as scheduling and executing the sap transport system. The consultant is also responsible for installation, upgrade and maintenance of SAP systems. Additional Roles & Responsibilities : Additionally the consultant should able to do configuration, monitoring and tuning of the sap technical environment.  Also able to design of interfaces between the SAP and external systems, optimize & analyze the performance issues, design the architecture of the landscape. He should be able to... ...