All Products
Search
Document Center

Cloud Backup:FAQ about SAP HANA backup

Last Updated:Feb 04, 2026

Frequently asked questions about backing up SAP HANA databases using certified Backint integration on Alibaba Cloud ECS.

What is SAP HANA backup

SAP HANA backup is a certified backup solution that uses the Backint API to protect SAP HANA databases running on Alibaba Cloud ECS instances. It enables automated backup and restore operations while leveraging cloud storage for data protection. See Overview of the SAP HANA backup feature for technical details.

The solution also supports backing up on-premises files and VMware VMs to Alibaba Cloud backup vaults. Cloud Backup provides native data protection for ECS files, Oracle/MS SQL Server databases, NAS, and OSS data. Learn more in What is Cloud Backup?.

Deployment requirements and compatibility

  • Deploy the Cloud Backup client on your SAP HANA instances running on Alibaba Cloud ECS

  • The solution supports MDCs in SAP HANA 1.0 SPS 09+ and 2.0 SPS 01+ (single-container systems in SAP HANA 1.0 are unsupported)

How do I check the status and logs of the Cloud Backup client after I register an SAP HANA instance?

After registering an SAP HANA instance, it enters the Registered state. The default log path is /opt/alibabacloud/hbrclient/logs.

Run ps axu|grep hybrid to verify the Cloud Backup client is running properly.

root     11472  0.0  0.0   9288  1552 pts/2    S+   16:11   0:00 grep --color=auto hybrid
root     30480  0.0  0.2  56296 17028 ?        Ssl  13:26   0:04 /opt/alibabacloud/hbr/client/hybridbackup -p 0

Backup log paths

Client logs: /opt/alibabacloud/hbr/logs

Backint logs: /usr/sap/{SID}/SYS/global/hdb/logs/

Backup logs: /usr/sap/{SID}/HDB{InstanceNumber}/{hostname}/trace/DB_{DBNAME}/backup.log

HANA automatically manages log records. Use HANA Studio or related tools to query log backup content with this SQL statement.

select CAT.* from SYS_DATABASES.M_BACKUP_CATALOG CAT JOIN SYS_DATABASES.M_BACKUP_CATALOG_FILES FILS on CAT.BACKUP_ID = FILS.BACKUP_ID where CAT.entry_type_name = 'log backup' and CAT.state_name = 'successful' and FILS.DESTINATION_TYPE_NAME = 'backint' and CAT.database_name = 'SYSTEMDB' order by sys_end_time

What do I do if the SAP HANA client installation fails with the error "multiple /usr/sap/<SID>/SYS/global/hdb/opt paths exist"?

  1. Connect to the target ECS instance.

  2. For the SAP HANA instances that do not require backups, rename /usr/sap/<SID>/SYS/global/hdb/opt to /usr/sap/<SID>/SYS/global/hdb/opt_backup.

  3. Return to the Cloud Backup console and reinstall the Cloud Backup client for the SAP HANA instance.

What do I do if the database cannot be connected during a same-instance restore?

If a restore job fails to connect when restoring a database to its source instance, follow these steps:

image

  1. Check whether the HANA database is running.

  2. Check whether the SSL certificate has expired. If it has, choose one of the following options:

    • Replace the certificate.

      image

    • Configure the console to not validate the SSL certificate.

What do I do if no data is retrieved during a same-instance restore?

If a restore job finds no data when restoring a database to its source instance, check the client status.

image

What do I do if I cannot find the backup record during a restore

  • Issue

    When you create a restore job after you reinstall the operating system, roll back a snapshot, or uninstall and reinstall the SAP HANA database on an ECS instance, you may not be able to find the backup record.

    image

  • Root Cause Analysis

    When you perform a same-instance restore, Cloud Backup first searches for backup records in the preconfigured SAP HANA backup path. If the operating system of the ECS instance is reinstalled, a snapshot is rolled back, or the SAP HANA database is uninstalled and reinstalled, the backup records stored in the HANA database may be cleared.

  • Solution

    • If the backup was created with the Use Backint for Catalog Backup option enabled, you can restore the database. Perform the following steps:

      1. Go to the source SAP HANA instance and delete the ECS instance node.

        image

      2. Register a new HANA instance with the same parameters as before. Install the backup client and add the deleted ECS instance node.

        image

      3. Create a restore job. Select the newly registered HANA instance for restoration. This starts a cross-instance restore job from the source instance.

        image

    • After the database is restored, you can delete the source SAP HANA instance if its backup data is no longer needed. If you have not enabled Use Backint for Catalog Backup, the backup records cannot be found, but the backup data still exists. For more information, see Restore a database to an SAP HANA instance by specifying a prefix.

What do I do if an SQL statement fails to run in HANA?

Insufficient HANA log space prevents SQL execution. Free up disk space and retry.

How do I manually delete backup records?

Cloud Backup doesn't support manual SAP HANA backup data deletion. Data expires automatically based on retention settings. Delete backup records from the SAP HANA catalog using SAP Studio.

image

Instance activated: Internal error on the database page

If an error appears on the SAP HANA backup page, check the HANA license. Connect to SYSTEMDB and run this SQL query to verify database licensing. An empty result indicates a missing license.

SELECT * FROM M_LICENSE

For more information, see https://launchpad.support.sap.com/#/notes/2619291.

Why does SAP HANA backup fail, and how do I fix it?

Common SAP HANA backup errors and their solutions:

  • If the following error message appears in /opt/alibabacloud/hbr/logs/hybridbackup.log, it indicates a significant difference between the local time and the server time. Adjust the local time. A best practice is to enable automatic NTP synchronization to ensure time consistency.

    time="2021-11-04T16:24:17+08:00" level=info msg="InvalidTimeStamp.Expired retry, retryDelay: 5000 ms, retry times: 14" file=client.go line=377
  • If a backup job fails or all backup jobs are canceled (not manually), and the backup.log file contains a 'No space left on device' message, the local disk space is full. Clear the disk space before you try to back up again.

  • If the following error message appears in /opt/alibabacloud/hbr/logs/hybridbackup.log and no error message is displayed in the console, it may be because you configured another scheduled backup job that conflicts with the SAP HANA backup job.

    time="2021-08-29T01:10:00+08:00" level=error msg="Execute hana backup failed : hbr: client returned error: ErrorCode=HanaSqlError, ErrorMessage=SQL Error 447 - backup could not be completed: [110122] A data backup cannot be created because another data backup is running or a storage snapshot has been prepared., Data=, values=map[]" file=hanabackupjob.go line=98
  • If an unexpected backup failure or a non-execution alert occurs, and you do not see a completed backup record in the backup history, the cause may be an MQTT request timeout. Check the log in /opt/alibabacloud/hbr/logs/hybridbackup.log at the corresponding time.

  • If the following error message appears in /opt/alibabacloud/hbr/logs/hybridbackup.log, the password may have expired and must be updated.

    time="2023-11-26T00:00:08+08:00" level=error msg="SAP Error: SQL Error 447 - backup could not be completed: [110203] Not all data could be written: Expected 4096 but transferred 0, [110507] Backint exited with exit code 1 instead of 0. console output: Internal Error: The user account is in unknown status. " file=errorwrapper.go line=28
  • If the following error message appears in /opt/alibabacloud/hbr/logs/hybridbackup.log, the server may have rejected the request because the timestamp is inaccurate.

    time="2024-06-23T01:36:46+08:00" level=error msg="HBR DescribeUserBusinessStatus returns hbr: service returned error: StatusCode=400, Code=InvalidSecurityToken.Expired, Message=Specified SecurityToken is expired., RequestId=A6CDF56F-CA56-53E8-9342-24E19F768D40" file=client.go line=428

    Check the timestamp in one of the following ways:

    • Run the following command and check the System Time in the output. This parameter indicates the difference between the system time and the NTP time. If the drift is within a few milliseconds, the timestamp is normal.

      sudo chronyc tracking
    • Run the following command and check the offset in the output. This parameter indicates the difference between the system time and the NTP time. If the drift is within a few milliseconds, the timestamp is normal.

      ntpd -q
  • If there is no failure record in the console, but you see the following error message in the /opt/alibabacloud/hbr/logs/hybridbackup.log file:

    SQL Error 447 - backup could not be completed: [110122] A data backup cannot be created because another data backup is running or a storage snapshot has been prepared.

    Check this as follows:

    • Whether other backup software is performing a HANA backup at the same time.

    • Ensure you have a data backup before restarting the HANA instance. For more information, see the official SAP HANA knowledge base.

  • If the following error message appears in /opt/alibabacloud/hbr/logs/hybridbackup.log:

    [447] backup could not be completed, [1000002] Allocation failed ; $size$=16777216; $name$=DataPage; $type$=pool; $inuse_count$=6; $allocated_size$=17104896; $failure_type$=GLOBAL_ALLOCATION_LIMIT; $failure_flag$= (early exit)

    And there is a failure record in the console.

  • If the following error message appears in /opt/alibabacloud/hbr/logs/hybridbackup.log:

    "SQL Error 3584 - distributed SQL error:  [2617] executor: plan operation execution failed with an exception.exception:exception 30160: Failed to read password from key store. $name=$M_BACKUP_CONFIGURATION. $col=$IS_ROOT_KEY_BACKUP_PASSWORD_SET. $ci=$23\n,Exception in executor plan00468@$spdr-db:31001 while executing pop 1, Data=[], values=[]map[]"

    And the backup job status is "Failed" in the console.

    This error message indicates that the SAP HANA system returned SQL error 3584 when it ran the backup SQL statement. Specifically, an exception occurred when reading the password from the key store. This is usually an issue with SAP HANA components. Contact your SAP HANA operations and maintenance (O&M) engineer or vendor for assistance.

  • If the InstanceRAMRoleNotFound error message or the following error message appears in the /opt/alibabacloud/hbr/logs/hybridbackup.log file:

    Failed to get client credential from Instance RAM role. hbr: client returned error: ErrorCode=InstanceRAMRoleNotFound, ErrorMessage=InstanceRAMRoleNotFound

    And the restore job status is stuck at "Running" in the console and cannot be stopped.

    This error indicates that the AliyunECSAccessingHBRRole role on the ECS instance has been revoked. Log on to the ECS console to attach the role again and restart the Cloud Backup client. For more information, see Why is the AliyunECSAccessingHBRRole role attached to an ECS instance? Can the role be revoked?

Why is the AliyunECSAccessingHBRRole role attached to an ECS instance? Can this role be revoked?

The AliyunECSAccessingHBRRole is essential for SAP HANA backup operations. If revoked, backup and restore features will fail. To restore functionality:

  1. Log on to the ECS console to attach the AliyunECSAccessingHBRRole role to the ECS instance again. For more information, see Attach the RAM role to an ECS instance.

  2. Run the systemctl restart hybridbackup command to restart the Cloud Backup client or uninstall and reinstall the client.

What do I do if an error occurs when I view a backup job?

  • Issue

    The following error occurs when you view a backup job.

    image

    And the following error message appears in /opt/alibabacloud/hbr/logs/hybridbackup.log:

    time="2023-12-01T14:38:23+08:00" level=error msg="prepare stmt SELECT count(*) FROM sys_databases.M_BACKUP_PROGRESS error : SQL Error 437 - only commands for license handling are allowed in current state" file=db.go line=220
  • Solution

    HANA 2.0 requires multi-user mode for license registration.

What do I do if a restore job fails?

Issue: Restore job fails when performing consecutive restores from different backup points.

Solution: Use the specified backup method and select a specific backup point for each restore job.

Can Cloud Backup back up an SAP HANA instance deployed in an on-premises data center?

No. Cloud Backup supports only SAP HANA instances on Alibaba Cloud ECS. For on-premises databases, use local file backup to store database files in the cloud. See Back up local files.

Do I need to purchase other cloud storage products to back up SAP HANA?

No. Cloud Backup uses the Backint API to stream backup data directly to cloud storage without consuming ECS instance storage space.

Can I use the "SAP HANA Backup" feature of Cloud Backup for a single-container SAP HANA instance?

No. The Cloud Backup console's SAP HANA backup feature uses the Backint API. Two solutions are available:

  • Solution 1: Back up the SAP HANA database to the disk of an ECS instance, and then use the local file backup feature of Cloud Backup to back up the database. For more information, see Back up local files.

  • Solution 2: Convert the SAP HANA instance from a single-container to a multi-container system. For specific instructions, see the official SAP documentation or consult your SAP partner.

Can backups for different SAP HANA environments be stored in different backup vaults?

Yes. When registering an SAP HANA instance in the Cloud Backup console, you can create a new backup vault or select an existing one. The following restore methods are supported:

Does SAP HANA backup support cross-region or cross-account backup?

Yes, both cross-region and cross-account backups are supported.

What should I note when I configure an SAP HANA backup?

  • For SAP HANA deployed in high availability (HA) architecture, set the host address to the high-availability virtual IP address (HAVIP) when registering the SAP HANA instance. This ensures backup jobs run correctly after cluster switchover.

  • By default, SAP HANA log and catalog backup parameters using Backint aren't enabled. Manually enable this configuration for the System DB and each Tenant DB to ensure database restore operations complete when needed.

image

Note

Tenant DB parameter settings inherit from the System DB. Carefully verify that each database's parameter settings meet your requirements.

How do I set the data retention period for SAP HANA backups?

  1. Log on to the Cloud Backup console and select the instance.

    image

  2. On the Databases tab, select a System DB or Tenant DB and click More > Configure Retention Policy.

    image

  3. The backup retention period defaults to Permanent. You can change this value as needed.

    image

    Parameter

    Note

    Retention Policy

    • Custom

      Select this option to set a custom time for the daily retention job and retention period for backup data.

    • Permanent

      If selected, Cloud Backup permanently retains your backup data.

    Retention Job Interval

    This parameter is required only when setting the Retention Policy parameter to Custom. Select the time to run the retention job each day, accurate to the second.

    Note

    Avoid periods when backup jobs or other business operations are active.

    Retention Period

    This parameter is required only when setting the Retention Period Setting to Custom. Select the retention period for backup data.

    Unit: days, weeks, months, or years. Minimum retention period is 1 day; maximum is 10 years.

    Note
    • When the retention period expires, Cloud Backup automatically deletes catalog records and data associated with expired BACKINT and File Backup. This data cannot be recovered after deletion. Configure the retention period carefully as needed.

    • Changes to the retention period apply to historical backups. The data retention job runs once daily. However, backup vault statistics may be delayed by 12 to 24 hours. After changing the retention period, it can take up to three calendar days for the data volume in the backup vault to reflect the change. For significant changes like shortening the retention period from 2 years to 2 months, Cloud Backup controls the execution speed of the data retention job, so the reduction in backup vault data volume may take some time.

Why do I receive a text message or email alert that a backup failed, but the backup job is shown as successful in the Cloud Backup console?

  • Symptoms

    Receive text/email alerts: "Backup of database XXX in SAP HANA instance XXX (ID: cl-xxxxxxxx) failed. Backup ID is 0. Log on to console to check." But the Cloud Backup console shows the job completed successfully.

  • Cause

    Concurrent backup software or SAP HANA exceptions. Check /opt/alibabacloud/hbrclient/logs/hybridbackup.log for similar alert snippets:

    time="2024-08-29T01:35:01+08:00" level=error msg="Execute sql `BACKUP DATA FOR PRD USING BACKINT ('/usr/sap/XXX/SYS/global/hdb/backint/DB_HHH/COMPLETE_DATA_BACKUP_2024_08_29_01_30') ASYNCHRONOUS` failed : SQL Error 447 - backup could not be completed: [110122] A data backup cannot be created because another data backup is running or a storage snapshot has been prepared." file=db.go line=163
    time="2024-08-29T01:35:01+08:00" level=error msg="SAP Error: SQL Error 447 - backup could not be completed: [110122] A data backup cannot be created because another data backup is running or a storage snapshot has been prepared." file=errorwrapper.go line=28

    This error indicates that the Cloud Backup client has executed an SQL statement for backup by connecting to SAP HANA. SAP HANA returns error code 447 to inform the Cloud Backup client that the command fails to be executed. However, the backup job triggered by the command may have been executed correctly in the SAP HANA backend. For more information, see SAP Knowledge Base.

  • Solution

    Ignore occasional alerts if backup jobs confirm success. For frequent issues, restart HANA during off-peak hours after ensuring business continuity.

Why is the time I receive an alert different from the actual time the error occurred?

Text alerts are suppressed during nighttime (8:00 PM - 8:00 AM) and sent after 8:00 AM. Email alerts are sent immediately.

Why does the source data volume shown in storage vault management increase abnormally after I back up SAP HANA?

  • Cause

    Cloud Backup periodically queries HANA for historical Backint backup records, including backups from other software. These statistics don't impact billing, which is based on total backup vault usage.

  • Solution

    Delete unnecessary non-Cloud Backup records via HANA SQL statements. Verify retention requirements first.

When I create an SAP HANA restore job, what does it mean if I find duplicate database names in the destination instance?

When multiple databases share the same name but different services, choose any for the restore operation.

Steps to migrate an SAP HANA instance from an old backup vault to a new one

Assume you have two HANA instances, e1 and e2, that are currently being backed up to the same backup vault, v1. You now need to migrate e1 and e2 to a new backup vault, v2. The following steps describe how to switch the backup vault.

image

  1. Remove the HANA nodes from the old backup vault.

    Important

    Do not delete the instance directly, because this will also delete the existing backup data. Before you delete an instance, make sure you no longer need its backup data.

    In this step, you will remove e1 and e2 from the list of legacy backup vault nodes to prepare to add the new backup vault v2. The steps are as follows:

    1. Click the instance ID to view the node information.

      image

    2. On the node information page, delete the corresponding node.

      image

    3. After the deletion, the Status of the e1 and e2 HANA instances is "Initialization failed".

      image

  2. Migrate the HANA nodes to the new backup vault.

    Take HANA instance e1 as an example. The procedure for e2 is the same. (Note: In the procedure for e2, replace the information for HANA instance e1 with the information for e2 in step b).

    1. Click Register HANA Instance.

      image

    2. In the Register SAP HANA Instance panel, configure the connection information for the SAP HANA instance and install the client.

      1. On the Edit Connection Information page, select the new backup vault v2 as the backup vault and rename the new HANA instance. Keep the host address, instance number, username, and password the same as those for HANA instance e1. Complete the remaining configurations, and then click Next.

        image

      2. On the Install Backup Client page, select the HANA instance e1, and click Create.

  3. After you configure HANA instances e1 and e2 by following the steps above, the following information is displayed in the new backup vault v2. Check whether the information for the two new HANA instances is correct. Click the ID of each instance to view the HANA instance details page, confirm that the node information is correct, and ensure that the database connection is normal.

    image

    After you confirm that the information is correct, immediately perform a manual full backup to ensure data security and to retain at least one complete backup point.

    Note

    Backup data for a HANA instance cannot be restored across instances between different backup vaults. After migrating to a new backup vault, the backup data of the original instance cannot be restored to the new HANA instance.

How do I limit the CPU usage of the backup client?

Create hbr.config in /opt/alibabacloud/hbr/client/ with cpu_max_procs=1 to limit each backup process to 1 CPU core.

References