Veritas NetBackup™ for DB2 Administrator's Guide
- Introduction to NetBackup for DB2
- Installing NetBackup for DB2
- Configuring NetBackup for DB2
- About configuring a backup policy for a DB2 database
- About adding backup selections to a DB2 policy
- About adding schedules to a NetBackup for DB2 policy
- About backing up archive log files with the user exit program
- Configuring the run-time environment
- About NetBackup for DB2 templates and shell scripts
- Performing backups and restores of DB2
- Using Snapshot Client with NetBackup for DB2
- About NetBackup for DB2 with Snapshot Client operations
- Restoring NetBackup for DB2 from a snapshot backup
- About configuring NetBackup for DB2 block-level incremental backups on UNIX
- Configuring policies for BLI backups with NetBackup for DB2
- About Snapshot Client effects
- Troubleshooting NetBackup for DB2
- About the NetBackup for DB2 log files
- Appendix A. Configuration for a DB2 EEE (DPF) environment
- Appendix B. Using NetBackup for DB2 with SAP®
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 session] [-n node_number] [-t mm/dd/yyyy [HH:MM:SS]]
Windows: install_path\NetBackup\bpdb2proxy -rollbkrestore -d dbalias -u user -p password [-s session] [-n node_number] [-t mm/dd/yyyy [HH:MM:SS]]
Where:
-rollbkrestore
Specifies that this restore is from a snapshot rollback.
-d dbalias
Database alias.
-u user
User name 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.