Difference between revisions of "Checking HANA DB replication status"
From Notes_Wiki
|  (Created page with "Home > Suse > SAP setup and maintenance > Checking HANA DB replication status  The HANA database would have a ID such as ABC.  In that case use following steps to check database replication status # Login into server as root # Connect to DB admin account using #:<pre> #:: su - <abc>adm #:</pre> #: where <abc> should be replaced with HANA DB ID # First we can check which machine is primary and which is secondary via: #:<pre> #:: hdbnsutil -...") | m | ||
| Line 2: | Line 2: | ||
| The HANA database would have a ID such as ABC.  In that case use following steps to check database replication status | The HANA database would have a ID such as ABC.  In that case use following steps to check database replication status | ||
| # Login into  | # Login into both primary and secondary servers as root | ||
| # Connect to DB admin account using | # Connect to DB admin account on both machines using | ||
| #:<pre> | #:<pre> | ||
| #:: su - <abc>adm | #:: su - <abc>adm | ||
| #:</pre> | #:</pre> | ||
| #: where <abc> should be replaced with HANA DB ID | #: where <abc> should be replaced with HANA DB ID | ||
| # Check whether database is running using: | |||
| #:<pre> | |||
| #:: HDB info | |||
| #:: sapcontrol -nr 00 | |||
| #:</pre> | |||
| #: We can get more help via '<tt>sapcontrol -h</tt>' | |||
| # First we can check which machine is primary and which is secondary via: | # First we can check which machine is primary and which is secondary via: | ||
| #:<pre> | #:<pre> | ||
Revision as of 04:18, 21 July 2022
Home > Suse > SAP setup and maintenance > Checking HANA DB replication status
The HANA database would have a ID such as ABC. In that case use following steps to check database replication status
- Login into both primary and secondary servers as root
- Connect to DB admin account on both machines using
- su - <abc>adm
 
- where <abc> should be replaced with HANA DB ID
 
- Check whether database is running using:
- HDB info
- sapcontrol -nr 00
 
- We can get more help via 'sapcontrol -h'
 
- First we can check which machine is primary and which is secondary via:
- hdbnsutil -sr_state
 
 
- Then check replication status using:
- cd /usr/sap/<ABC>/HDB10/exe/python_support
- python systemReplicationStatus.py
 
- where <ABC> should be replaced with HANA DB ID
 
Home > Suse > SAP setup and maintenance > Checking HANA DB replication status

