Professional Documents
Culture Documents
This technical note provides details about using SAP HANA Studio to configure the EMC
Data Domain Boost for Enterprise Applications and EMC ProtectPoint database
application agent versions 1.0, 2.x and 3.0 for backup, recovery, database copy, and
deletion operations. All the operations and screens described in this document use SAP
HANA 1.00.100 and SAP HANA Studio 1.0.100.
Note: The database application agent 1.0 was formerly known as DDBDA 1.0.
Topics include:
Revision history
Revision history
The following table presents the revision history of this document.
Revision
Date
Description
02
01
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
Data backups
You can configure a data backup in SAP HANA Studio. You can also manually start a data
backup in SAP HANA Studio. Before a data backup can be performed in SAP HANA Studio,
you must meet the following prerequisites:
Create a database user or use an existing database user with the necessary privileges
and authorizations. A backup in SAP HANA can only be performed by a database user.
The database user must have the BACKUP ADMIN system privilege to perform the
backup or recovery operation.
The database user must have the CATALOG READ system privilege to collect the
information that the backup wizard requires.
The SAP HANA database backs up its services (nameserver, nameserver topology,
indexserver, xsengine, and statisticserver) in parallel to the file system or to Backint as
implemented with a third-party backup tool.
Delta backups
Starting with SAP HANA SPS 10, SAP HANA supports the following types of delta backups:
Incremental backupsAn incremental backup stores the data that has changed since
either the last data backup or the last delta backup (incremental or differential).
Differential backupsA differential backup stores the data that has changed since the
last data backup.
Log backups
Log backups in SAP HANA back up the log segments and depend on the SAP HANA log
mode as configured in the global.ini file. Automatic log backups are enabled by default in
the global.ini file, but you can change this default configuration. The log mode is also set
to normal mode by default.
Log backups are performed independently of data backups at the interval specified in the
global.ini file with the parameter log_backup_timeout_s.
A log backup of the redo log segment is performed when any of the following scenarios
occur:
Note: A delta backup (incremental or differential) contains actual data, whereas a log
backup contains redo log entries.
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
Enterprise Applications and EMC ProtectPoint Database Application Agent Installation and
Administration Guide provides detailed instructions.
In SAP HANA Studio, you must specify the location of the configuration file for the
database application agent backups.
1. Expand the database instance, double-click Backup in the Systems view, and then
click the Configuration tab.
2. Expand Backint Settings, and then type the complete pathname of the configuration
file in the Backint Parameter File text box under Data Backup.
The following figure shows an example of the configuration file setting for the data
backups.
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
Configuring the database application agent operations with SAP HANA Studio
You can specify either the same configuration file or a different configuration file for the
log backups. To use the same configuration file for both data backups and log backups,
select Use the same parameter file for data backup and log backup under Data Backup.
Then the same configuration file pathname automatically appears in the Backint
Parameter File text box under Log Backup, as shown in the following figure.
Figure 2 Configuration file setting for both data backups and log backups
To configure automatic log backups, complete the settings in the Log Backup Settings
group box:
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
Specify the log backup interval based on the requirements of the particular environment.
Every deployment has different requirements. Do not specify a very short interval or long
interval. A short backup interval triggers too many backups and creates too many smaller
backup files on the Data Domain system, which impacts the system performance. A
longer backup interval causes more logs to be stored in the SAP HANA memory and
reduces the speed of all the database operations.
You can specify File as the Destination Type so that log backups are performed to the local
file system while data backups are performed to the Data Domain system. However, it is
best to perform both data and log backups to either the file system or the Data Domain
system.
Note: The log backup settings are disabled if the log mode is set to overwrite. Set the log
mode to normal to enable the log backup settings. The SAP HANA Administration Guide
provides more details.
You can use different CLIENT parameter settings in the database application agent
configuration file to distribute the backups from different databases into different
subspaces in the Data Domain system. The backup save sets and indexes are stored in
different folder structures to ensure faster recovery operations.
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
Complete the required settings in the Specify Backup Settings dialog box:
In the Backup Prefix field, optionally type a prefix for the backup name. If you specify a
prefix, then the backup name includes the prefix, prefix_databackup_#_#.
The following three figures show the settings in the Specify Backup Settings dialog box for
the three supported types of SAP HANA backups.
Figure 4 Settings in Specify Backup Settings dialog box for a complete data backup
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
Figure 5 Settings in Specify Backup Settings dialog box for a differential backup
Figure 6 Settings in Specify Backup Settings dialog box for an incremental backup
Click Next to confirm the summary details of the backup, and then click Finish to start the
backup. All the services are backed up in parallel, as shown in the following figure.
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
After the backup is complete, you can obtain the backup details from the backup catalog
that is listed on the Backup Catalog tab. The backup catalog lists all the log backups and
data backups and the backup details, such as the backup duration, throughput, and size
of the data sets. By default, delta backups are hidden on the Backup Catalog tab. To
display the delta backups, select Show Delta Backups.
The following figure shows the backup catalog display for a successful backup.
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
When a hardware failure or another issue causes the database data or log area to
become unusable, you can recover the SAP HANA database by recovering the last
available data backup and the appropriate log backups.
When a logical error occurs, you can recover the database to the point-in-time of the
failure by recovering the last data backup before the point-in-time and the appropriate
log entries from the log backups.
Before you perform a recovery in SAP HANA Studio, you must meet the following
prerequisites:
You have the SIDadm user password that is required to shut down the target system
where the backups will be recovered.
You have at least one data backup and log backup from the time before the system
failure or the time to which the system must be recovered.
After all the database services are stopped, you can start the database recovery in SAP
HANA Studio.
You cannot recover a database backup from a later SAP HANA release to an earlier SAP
HANA release. You also cannot interrupt or stop a running recovery. If the license expires
on recovery, you must install a new license.
Recovery types
You must select the recovery type for the required SID to recover the database in SAP
HANA Studio. When the Specify Recovery Type dialog box appears, you must select one of
the following recovery types:
10
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
The following topics provide details about the first three recovery types.
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
11
You must also specify the pathnames of the log backup locations, as required to search
for the log backups and list the available data backups for recovery:
The following figure shows the dialog box entries for the log backup locations.
The Select Data Backup dialog box appears with a list of the data backups that were
performed previously. Select the data backup for the recovery.
12
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
You can also check the availability of the complete data backup in the Data Domain
system by clicking Check Backup in the SAP HANA Studio, which triggers an inquire
process that verifies the physical availability of the data set. The following figure shows
that the selected backup is available.
You can also complete the settings in the Other Settings dialog box. Select Third-Party
Backup Tool (Backint). To use the delta backups in the point-in-time recovery, select Use
Delta Backups (Recommended), as shown in the following figure.
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
13
After you have completed all the selections in the recovery windows, a summary pane
displays all the details. You can verify the details and start the recovery by clicking Finish.
The recovery progress is displayed for each service, as shown in the following figure.
14
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
15
In the Specify Backup Location dialog box, you can either select the backup from the
backup catalog or specify the backup without the catalog by entering the backup name
and pathname. To select the backup from the backup catalog, specify the pathnames of
the backup catalog locations:
The following figure shows the dialog box entries for selecting the backup from the
backup catalog. All the backups in the backup catalog will be displayed.
If you select to specify the backup without the backup catalog, the Specify Backup
Location dialog box appears as follows.
16
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
In the Specify the Backup Files to Recover dialog box, specify the destination type as
Backint and specify the backup prefix of the data backup, as shown in the following
figure.
Figure 18 Specifying the destination type and backup prefix for recovery
After you have completed all the selections in the recovery windows, a summary pane
displays all the details. You can verify the details and start the recovery by clicking Finish.
The recovery progress is displayed for each service, as shown in the following figure.
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
17
Redirected recovery
When a system crash or hardware failure occurs, you can bring the SAP HANA system back
online in a target device by using disaster recovery or redirected recovery.
Before you perform a redirected recovery or disaster recovery, you must meet the
following prerequisites:
You have installed and configured the database application agent on the target
system before you perform a backup or recovery. You have specified the same Data
Domain settings as on the source system. The CLIENT parameter setting is the same in
the source and target system configurations.
After you have met the prerequisites, perform a normal recovery by using SAP HANA
Studio and the backups saved from the source system. After a successful recovery, all the
data available in the source system will also be available in the target system.
18
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
Figure 20 Settings for redirected recovery of a data backup with different source and target SIDs
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
19
Figure 21 Settings for redirected recovery to a recent state with different source and target SIDs
You can delete the backup from the backup catalog and from the backend Data Domain
system by using the two options available in the SAP HANA Studio, as shown in the
following figures. When you right-click any particular backup in the backup catalog, you
see the options to delete the selected backup and delete the previous backups before the
selected backup.
20
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
Appendix
When you click Next, you see a summary of the backup save sets that will be deleted from
the Data Domain system. After confirmation, the backup catalog is deleted first, and then
the DELETE function is called in the SAP HANA system to delete all the save sets and the
index entries.
When you delete all backups that are older than a specific full backup, the older delta
backups are also deleted in addition to the older full backups and log backups.
Appendix
The following examples show how to perform backups by running the hdbsql command at
the command line:
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note
21
Appendix
-p P3t3rPan
The following examples show how to perform recoveries by running the HDBSettings.sh
utility at the command line:
Copyright 2016 EMC Corporation. All rights reserved. Published in the USA.
Published July 22, 2016
EMC believes the information in this publication is accurate as of its publication date. The information is subject to change without
notice.
The information in this publication is provided as is. EMC Corporation makes no representations or warranties of any kind with
respect to the information in this publication, and specifically disclaims implied warranties of merchantability or fitness for a
particular purpose. Use, copying, and distribution of any EMC software described in this publication requires an applicable software
license.
EMC2, EMC, and the EMC logo are registered trademarks or trademarks of EMC Corporation in the United States and other countries.
All other trademarks used herein are the property of their respective owners.
For the most up-to-date regulatory document for your product line, go to EMC Online Support (https://support.emc.com).
22
Configuring SAP HANA Backup, Recovery, Database Copy, and Deletion with SAP HANA Studio Technical Note