|
2 | 2 | title: Back up SAP HANA System Replication databases on Azure VMs using Azure Backup
|
3 | 3 | description: In this article, discover how to back up SAP HANA databases with HANA System Replication enabled.
|
4 | 4 | ms.topic: how-to
|
5 |
| -ms.date: 09/30/2024 |
| 5 | +ms.date: 10/01/2024 |
6 | 6 | ms.service: azure-backup
|
7 | 7 | author: AbhishekMallick-MS
|
8 | 8 | ms.author: v-abhmallick
|
@@ -47,8 +47,25 @@ When a failover occurs, the users are replicated to the new primary, but *hdbuse
|
47 | 47 | | SDC | Backup Admin | Reads the backup catalog. |
|
48 | 48 | | 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. |
|
49 | 49 |
|
| 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 | + |
50 | 61 | 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).
|
51 | 62 |
|
| 63 | + **Example**: |
| 64 | + |
| 65 | + ```HDBSQL |
| 66 | + - hdbuserstore set BKPKEY localhost:39013 USRBKP AzureBackup01 |
| 67 | + ``` |
| 68 | + |
52 | 69 | 1. Pass the custom backup user key to the script as a parameter:
|
53 | 70 |
|
54 | 71 | ```HDBSQL
|
@@ -83,13 +100,26 @@ When a failover occurs, the users are replicated to the new primary, but *hdbuse
|
83 | 100 |
|
84 | 101 | 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.
|
85 | 102 |
|
| 103 | + **Example**: |
| 104 | + |
| 105 | + ```HDBSQL |
| 106 | + - ./script.sh -sk SYSTEMKEY -bk USRBKP -hn HSRlab001 -p 39013 |
| 107 | + ``` |
| 108 | + |
86 | 109 | 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:
|
87 | 110 |
|
88 | 111 | `-p PORT_NUMBER` or `–port_number PORT_NUMBER`.
|
89 | 112 |
|
90 | 113 | - For MDC, use the format `3<instancenumber>13`.
|
91 | 114 | - For SDC, use the format `3<instancenumber>15`.
|
92 | 115 |
|
| 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 | + |
93 | 123 | 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.
|
94 | 124 |
|
95 | 125 | 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