Restore with External Backup Tools (DBMCLI)
For
restores with external backup tools, you must specify the external backup IDs of the desired backups.Prerequisites
The database instance must be in operational mode ADMIN. You have configured the desired backup tool.
Backup Tool |
|
ADSM/TSM |
Configuration of the ADSM/TSM Connection |
Backint for Oracle |
Configuration of Backint for Oracle Connections |
Backint for SAP DB |
Configuration of Backint for SAP DB Connections |
NetWorker |
Configuration of the NetWorker Connection |
You have determined the required external backup IDs (
Determine and Display External Backup ID (DBMCLI) or Determine and Display External Backup ID (DBMGUI)).You have inserted the required
Procedure
You can perform restores with an interactive or a non-interactive
Restore Commands for an Interactive DBMCLI Session
You can restore a
recover_start <medium> <type> ExternalBackupID <external_backup_ID>
If you want to import more than one log backup, you can import the second and all subsequent log backups interactively using the following DBMCLI command:
recover_replace <medium> ExternalBackupID <external_backup_ID>
If the external backup ID contains any blank characters, you must place the external backup ID in double quotation marks:
You will need to import more than one log backup in most cases. You should therefore always perform log backups using interactive DBMCLI sessions so that you can react to the requirements of the database kernel (additional log backups required). To import all log backups, you use the
recover_start command followed by the recover_replace command.Example of a Restore Command for a Non-Interactive DBMCLI Session
Restore with NetWorker (non-interactive):
dbmcli -u dbm,dbm -uUTL -d mydb recover_start NSRPages pages ExternalBackupID "NST 994245367 P47579"
The information relevant to the restore appear after the keyword recover_start:
Name of the backup medium:
NSRPagesIn the case of non-interactive DBMCLI sessions, follow the rules for the corresponding shell concerning the use of quotation marks. It is important that the quotation marks are sent to the
See also:
Database Manager CLI: SAP DB 7.4
® Calling the Database Manager CLI ® DBM Server Commands ® Backing Up and Recovering Databases ®Result
The external backup ID of the desired backup is sent to the DBM server and the restore begins.