Skip to content

Commit b6c7074

Browse files
Merge pull request #287680 from AbhishekMallick-MS/Oct-1-2024-EEE3
Addressed EEE doc ask #16739841
2 parents 27a7d5a + 35edf8b commit b6c7074

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

articles/backup/sap-hana-database-with-hana-system-replication-backup.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Back up SAP HANA System Replication databases on Azure VMs using Azure Backup
33
description: In this article, discover how to back up SAP HANA databases with HANA System Replication enabled.
44
ms.topic: how-to
5-
ms.date: 09/30/2024
5+
ms.date: 10/01/2024
66
ms.service: azure-backup
77
author: AbhishekMallick-MS
88
ms.author: v-abhmallick
@@ -47,8 +47,25 @@ When a failover occurs, the users are replicated to the new primary, but *hdbuse
4747
| SDC | Backup Admin | Reads the backup catalog. |
4848
| SAP_INTERNAL_HANA_SUPPORT | | Accesses a few private tables. <br><br> Required only for single container database (SDC) and multiple container database (MDC) versions earlier than HANA 2.0 SPS04 Rev 46. It isn't required for HANA 2.0 SPS04 Rev 46 versions and later, because we receive the required information from public tables now after the fix from HANA team. |
4949

50+
**Example**:
51+
52+
```HDBSQL
53+
- hdbsql -t -U SYSTEMKEY CREATE USER USRBKP PASSWORD AzureBackup01 NO FORCE_FIRST_PASSWORD_CHANGE
54+
- hdbsql -t -U SYSTEMKEY 'ALTER USER USRBKP DISABLE PASSWORD LIFETIME'
55+
- hdbsql -t -U SYSTEMKEY 'ALTER USER USRBKP RESET CONNECT ATTEMPTS'
56+
- hdbsql -t -U SYSTEMKEY 'ALTER USER USRBKP ACTIVATE USER NOW'
57+
- hdbsql -t -U SYSTEMKEY 'GRANT DATABASE ADMIN TO USRBKP'
58+
- hdbsql -t -U SYSTEMKEY 'GRANT CATALOG READ TO USRBKP'
59+
```
60+
5061
1. Add the key to *hdbuserstore* for your custom backup user that enables the HANA backup plug-in to manage all operations (database queries, restore operations, configuring, and running backup).
5162

63+
**Example**:
64+
65+
```HDBSQL
66+
- hdbuserstore set BKPKEY localhost:39013 USRBKP AzureBackup01
67+
```
68+
5269
1. Pass the custom backup user key to the script as a parameter:
5370

5471
```HDBSQL
@@ -83,13 +100,26 @@ When a failover occurs, the users are replicated to the new primary, but *hdbuse
83100

84101
You must provide the same HSR ID on both VMs/nodes. This ID must be unique within a vault. It should be an alphanumeric value containing at least one digit, one lowercase letter, and one uppercase character, and it should contain from 6 to 35 characters.
85102

103+
**Example**:
104+
105+
```HDBSQL
106+
- ./script.sh -sk SYSTEMKEY -bk USRBKP -hn HSRlab001 -p 39013
107+
```
108+
86109
1. While you're running the preregistration script on the secondary node, you must specify the SDC/MDC port as input. This is because SQL commands to identify the SDC/MDC setup can't be run on the secondary node. You must provide the port number as a parameter, as shown here:
87110

88111
`-p PORT_NUMBER` or `–port_number PORT_NUMBER`.
89112

90113
- For MDC, use the format `3<instancenumber>13`.
91114
- For SDC, use the format `3<instancenumber>15`.
92115

116+
**Example**:
117+
118+
```HDBSQL
119+
- MDC: ./script.sh -sk SYSTEMKEY -bk USRBKP -hn HSRlab001 -p 39013
120+
- SDC: ./script.sh -sk SYSTEMKEY -bk USRBKP -hn HSRlab001 -p 39015
121+
```
122+
93123
1. If your HANA setup uses private endpoints, run the preregistration script with the `-sn` or `--skip-network-checks` parameter. Ater the preregistration script has run successfully, proceed to the next steps.
94124

95125
1. Run the SAP HANA backup configuration script (preregistration script) in the VMs where HANA is installed as the root user. This script sets up the HANA system for backup. For more information about the script actions, see the [What the preregistration script does](tutorial-backup-sap-hana-db.md#what-the-pre-registration-script-does) section.

0 commit comments

Comments
 (0)