A database restore might be necessary when the data area or the log area is damaged, to recover from a logical error or to copy the database.
The SAP HANA software brings the database down before the restore, and brings the database up after the restore completes.
Before You Begin
-
Perform a full backup of the tenant database. For more information, see Performing a SAP HANA Scale Out IntelliSnap Full Backup Operation.
-
Verify that the restore environment has the same set of nodes and the topology as the backup environment. In case of any configuration file modification in the backup environment, make the same modifications in the restore environment before starting the recovery process. The instance SID can be the same as or different from the backup instance SID.
-
Verify that the SAP HANA software version (including the SPS version) that is used for restore is of the same version or later than the software version used during backup.
-
If you changed the node order on the pseudo-client, and the master node is no longer the first node, then reconfigure the node order in the pseudo-client. For more information, see Creating a SAP HANA Scale Out Pseudo-Client.
Restore Options
You can restore from a snapshot or backup copy.
When the software performs the restore operation, it restores the SYSTEMDB, and then restores the tenant database.
Procedure
-
From the CommCell Browser, expand Client Computers > client > SAP HANA > instance.
-
Right-click the tenant backup set, point to All Tasks, and then click Browse and Restore.
The Browse and Restore dialog box appears.
-
On the Time Range tab, select Latest Backup and click View Content.
-
From the Browse window, select the data to restore, and then click Recover All Selected.
The Restore Options appears.
-
On the General tab, select the restore options:
-
From the Destination Client list, select the client that the software uses for the restore operation.
-
From the Destination Instance list, select the instance that the software uses for the restore operation.
-
Choose the type of restore that you want to perform:
Recover the database to the most recent state
-
Select Recover Database To.
-
Select Most Recent State.
Recover to a point-in-time
-
Select Recover Database To.
-
Select Point In Time.
-
Select the date and time.
Note: If the time zone is different on the CommServe computer and client, in the Time Zone box, select the client computer time zone.
Recover only the data
To use this option, you must perform the restore by using a full backup.
If you restore by specifying the internal backup job ID, then you must have the catalog backup available with backint. SAP HANA creates the internal backup ID and the Commvault software displays the value on the Job Details dialog box.
If you restore by specifying the backup prefix, then you do not have to have the catalog backup available with backint. The Commvault software creates the backup prefix by pre-pending the job ID to the backup prefix. For example, JOB_ID_SNAP.
-
Select Recover data only.
-
Select the backup to use for the restore:
-
To restore by specifying the backup prefix, in the Backup prefix box, type the backup prefix for the backup that you want to restore.
You can view the backup prefix on the Job Details dialog box (General tab, Backup Prefix). For more information, see Viewing Details of a Job.
-
To restore by specifying the internal backup job ID, in the Internal Backup ID box, type the internal backup job ID that you want to restore.
You can view the SAP HANA internal backup job ID on the Job Details dialog box (General tab, Internal Backup ID). For more information, see Viewing Details of a Job.
-
-
-
To verify that all the backups required for the recovery operation are available, select the Check Access check box.
-
To initialize the log area after the restore, select the Initialize log area check box.
-
-
Optional: Restore from a copy precedence.
You can restore from a backup copy when the backup is corrupted.
For more information about modifying the copy precedence of a storage policy copy, see Copy Precedence.
-
Click Advanced.
The Advanced Restore Options dialog box appears.
-
On the Copy Precedence tab, select the Restore from Copy Precedence number check box, and then enter a copy precedence number.
-
Click OK.
-
-
Click OK.