Performing a snapshot rollback restore from the command line
This topic describes how to perform a snapshot rollback restore with the bpdb2proxy command.
To specify a snapshot rollback restore from the command line
- If the file .SQLCRT.FLG exists, delete it.
DB2 creates the .SQLCRT.FLG file when it creates a directory (usually during tablespace creation). For volume level rollback restores this file cannot be present. The directory structure must be present at the time DB2 creates a tablespace or you must delete this file after DB2 creates the directory during tablespace creation.
- Use the bpdb2proxy command in the following format:
UNIX: /usr/openv/netbackup/bin/bpdb2proxy -rollbkrestore -d <DBALIAS> [-u <user> -p <password>] [-s <sessions>] [-n <node number>] [-t <mm/dd/yyyy [HH:MM:SS]>] [-S <ServerName>] [-options <options string>]
Windows: install_path\NetBackup\bpdb2proxy -rollbkrestore -d <DBALIAS> [-u <user> -p <password>] [-s <sessions>] [-n <node number>] [-t <mm/dd/yyyy [HH:MM:SS]>] [-S <ServerName>] [-options <options string>]
Where:
-rollbkrestore
Specifies that this restore is from a snapshot rollback.
-d dbalias
Database alias.
-u user
Username of the DB2 user.
-p password
Password for the DB2 user.
-s session
The number of sessions. Optional.
-n node_number
The node number. The default is 0. Optional.
-t mm/dd/yyyy [HH:MM:SS]
(Optional) The time of the backup.
The values are as follows:
For mm, type the month.
For dd, type the day of the month.
For yyyy, type the year.
For HH, type the hour of the day. Optional.
For MM, type the minute of the hour. Optional.
For SS, type the second of the minute. Optional.
-S <ServerName>
The name of the server the restore is performed on.
-options <options string>
Specifies the options that are to be used for the restore operation. Currently, the only option is DB2_RESTORE_PRIORITY. By default, the preset priority for restore jobs is 90000, which is the highest preset job priority of any other NetBackup job. The available range is 0 - 99999. The higher the number, the greater the job priority.
You must use an = sign to specify the value of the option. Example:
bpdb2proxy -options "DB2_RESTORE_PRIORITY=100"