Restore to Original Server

To restore SAP MaxDB database to the original server, you can perform the following operations using Database Manager CLI:

Collect Database Information

To collect information that is required for the database restore, do the following:

  1. Enter Database Manager CLI:

/opt/sdb/programs/bin/dbmcli -uUTL -d <database> -u <login>,<password>

where:

For example:

/opt/sdb/programs/bin/dbmcli -uUTL -d MAXDB1 -u DBADMIN,SECRET

  1. Fetch the current backup history into the main memory:

backup_history_open

  1. Display the content of the backup history that you fetched in the previous step:

backup_history_list

This command displays the list of all previously performed database backup and restore actions. This information allows you to review existing backups that you can use to restore data and collect required information.

For example:

68E79D4F0006|             |HISTLOST |2025-10-09 13:32:31|                   |2025-10-09 13:32:31|                   |          |          |   |                                                                |          |          |         0|                                        |
68E7EC590007|DAT_000000001|SAVE WARM|2025-10-09 19:09:45|2025-10-09 19:09:45|2025-10-09 19:09:45|2025-10-09 19:13:05|    655137|          |NO |VEEAMDATA                                                       |    653304|         4|         0|                                        |
6904FD250017|PAG_000000007|SAVE COLD|2025-10-29 14:22:27|2025-10-29 14:22:27|202                                                                  5-10-31 19:17:09|2025-10-31 19:17:10|        13|          |NO |VEEAMPAGES                                                                                                                        |        72|         4|     -9407

  1. Fetch information stored in the Veeam Backint for a certain database backup type:

backup_ext_ids_get <medium_name> <database>

where:

For example, use can select the following media from the database configuration:

  • VEEAMDATA is a media for a full data backup
  • VEEAMPAGES is a media for an incremental data backup
  • VEEAMLOG is a media for an interactive log backup
  • <database> is the name of the database using which the backups were created

For example:

backup_ext_ids_get VEEAMDATA MAXDB1

  1. Display the information from the Veeam Backint that you fetched in the previous step:

backup_ext_ids_list

This command displays information about a certain database and backup type. This information includes the following details for each backup: external backup ID, availability status, backup type and the time the backup was created.

For example:

AVAILABLE|MAXDB1 A1F7FEDCA7700BE0 /tmp/MAXDB1/compipe1|DATA  MIGRATION|2025-10-09 19:09:45|
AVAILABLE|MAXDB1 6BDD1FAA716643CE /tmp/MAXDB1/compipe2|DATA  MIGRATION|2025-10-09 19:09:45|
AVAILABLE|MAXDB1 7426C47F91789FCF /tmp/MAXDB1/compipe3|DATA  MIGRATION|2025-10-09 19:09:45|
AVAILABLE|MAXDB1 F30423029579B4CF /tmp/MAXDB1/compipe4|DATA  MIGRATION|2025-10-09 19:09:45|

After you collected database information, you can perform database restore.

Perform restore

To restore database, do the following:

  1. Enter Database Manager CLI:

/opt/sdb/programs/bin/dbmcli -uUTL -d <database> -u <login>,<password>

where:

For example:

/opt/sdb/programs/bin/dbmcli -uUTL -d MAXDB1 -u DBADMIN,SECRET

  1. Switch database to the ADMIN operational state:

db_admin

  1. Restore the database with the recover_start command:

recover_start <medium_name> <backup_type> <label> EBID <ebid_list>

where:

For example, you can select the following media:

  • VEEAMDATA is a media for a full data backup
  • VEEAMPAGES is a media for an incremental data backup
  • VEEAMLOG is a media for an interactive log backup
  • <backup_type> is the type of backup that you want to restore. To understand which backup types are available for restore, check the output of the backup_ext_ids_list command.

You can select the following backup types:

  • DATA is a full data backup
  • PAGES is an incremental data backup
  • LOG is an interactive log backup
  • <label> is an ID of a backup that you want to use. To get backup IDs, review the backup history file.
  • <ebid_list>  is a list of external backup IDs that you want to restore. If the list contains several external backup IDs, separate them by commas. If the backup IDs contain spaces, the list must be enclosed in double quotation marks. To get external backup IDs, review the information from the Veeam Backint.

To learn more about the recover_start command, see SAP MaxDB documentation.

For example:

recover_start VEEAMDATA DATA DAT_000000001 EBID "MAXDB1 A1F7FEDCA7700BE0 /tmp/MAXDB1/compipe1,MAXDB1 6BDD1FAA716643CE /tmp/MAXDB1/compipe2,MAXDB1 7426C47F91789FCF /tmp/MAXDB1/compipe3,MAXDB1 F30423029579B4CF /tmp/MAXDB1/compipe4"

Page updated 11/19/2025

Page content applies to build 13.0.1.180