Veritas NetBackup™ for DB2 Administrator's Guide
- Introduction to NetBackup for DB2
- Installing NetBackup for DB2
- Configuring NetBackup for DB2
- Overview of NetBackup for DB2 configuration
- About permissions for NetBackup for DB2 log files (UNIX)
- About configuring a backup policy for DB2
- About adding backup selections to a DB2 policy
- Configuring an application backup schedule
- Example application backup schedule
- Configuring automatic backup schedules
- Example automatic backup schedule
- About schedule properties
- NetBackup for DB2 backup types
- Performing a manual backup
- Reviewing the auto-discovered mappings in Host Management
- About backing up archive log files with the user exit program
- Configuring the run-time environment
- Creating a db2.conf file for use with the user exit program
- Creating a db2.conf file (vendor method)
- Configuring bp.conf files in a cluster environment
- Keywords for the db2.conf file
- NetBackup for DB2 environment variables
- Configuring the logon account for the NetBackup Client Service for NetBackup for DB2
- About NetBackup for DB2 templates and shell scripts
- Performing backups and restores of DB2
- Using Snapshot Client with NetBackup for DB2
- NetBackup for DB2 with Snapshot Client features
- About NetBackup for DB2 with Snapshot Client operations
- About the sequence of a NetBackup for DB2 backup operation with Snapshot Client methods
- About the sequence of a NetBackup for DB2 restore operation with Snapshot Client methods
- About database objects supported by advanced backup methods
- About multistreaming and DB2 snapshot backups
- About symbolic links and DB2 backups and restores (UNIX)
- NetBackup for DB2 stream-based operations
- NetBackup for DB2 file-based operations
- Example: multiple sessions for a DB2 snapshot backup
- About configuring Snapshot Client with NetBackup for DB2
- Configuration requirements for snapshot backups with NetBackup for DB2
- Configuring a snapshot policy for NetBackup for DB2
- About configuring the db2.conf for a snapshot policy
- Restoring NetBackup for DB2 from a snapshot backup
- About restoring individual files from a NetBackup for DB2 snapshot backup
- About NetBackup for DB2 restores of volumes and file systems using snapshot rollback
- Performing a NetBackup for DB2 point-in-time rollback restore from a SnapVault backup (UNIX)
- Performing a snapshot rollback restore from the Java or Windows interface
- Performing a snapshot rollback restore from the command line
- Troubleshooting NetBackup for DB2 rollback restores
- About configuring NetBackup for DB2 block-level incremental backups on UNIX
- How BLI works with NetBackup for DB2 (UNIX)
- About the Storage Checkpoint facility and NetBackup for DB2
- Configuration requirements for BLI backups with NetBackup for DB2
- Storage Checkpoint configuration on the NetBackup for DB2 client
- Configuring policies for BLI backups with NetBackup for DB2
- BLI incremental backup options using NetBackup for DB2
- About Snapshot Client effects
- Performing NetBackup for DB2 backups with Snapshot Client methods
- Performing NetBackup for DB2 restores with Snapshot Client methods
- Troubleshooting NetBackup for DB2
- NetBackup debug logs and reports
- Enabling the debug logs for a NetBackup for DB2 client automatically (Windows)
- Enabling the debug logs manually (Windows)
- Enabling the debug logs manually (UNIX)
- About the NetBackup for DB2 log files
- Setting the debug level on a Windows client
- Setting the debug level on a UNIX client
- About NetBackup server reports
- Minimizing timeout failures on large database restores
- Minimizing the loading and unloading of tapes for database backups
- Use the NET_BUFFER_SZ file to speed up a slow restore
- About false restore failures reported in the activity monitor
- About the error message codes
- Delays in completion of backup jobs
- Appendix A. Configuration for a DB2 EEE (DPF) environment
- Appendix B. Using NetBackup for DB2 with SAP®
- Appendix C. Register authorized locations
- Index
Performing the alternate restore on the clients
The following procedures explain how to restore a DB2 database and its transaction logs. The procedure builds a request to DB2 to find the backup images that correspond to the database you try to restore. Type the commands in this procedure from the client that receives the restored database.
To perform an alternate restore of a DB2 database
- Modify the db2.conf file on the destination client.
Add the following definitions:
One to specify the alternate restore
One to define the new database
One to define the old database
One to define the new log files
One to define the old log files
The following example shows the definition that is needed to specify the alternate restore:
OBJECTTYPE ALTERNATE # Specifies an alternate restore SRCINST db2v832d # Names the source instance that was backed up SRCALIAS SAMPLE # Names the source database that was backed up DESTINST db2v832t # Names the destination instance name DESTALIAS NEWSAMPL # Names the destination database alias name ENDOPER # Ends the object definition
The following example shows the definition that is needed to define the new database:
DATABASE NEWSAMPL OBJECTTYPE DATABASE POLICY db2-bkup SCHEDULE Default-Application-Backup CLIENT_NAME Client1 # Restore to (and backup from) local host ENDOPER
The following example shows the definition that is needed to define the old database:
DATABASE SAMPLE OBJECTTYPE DATABASE POLICY db2-bkup SCHEDULE Default-Application-Backup CLIENT_NAME Client2 # Restore from backup of remote host ENDOPER
The following example shows the definition that is needed to define the new archive log files:
DATABASE NEWSAMPL OBJECTTYPE ARCHIVE POLICY db2_archive SCHEDULE Default-Application-Backup #SCHEDULE User # Swap '#' on SCHEDULE for user-exit CLIENT_NAME Client1 # Restore to (and backup from) local host ARCFUNC SAVE ENDOPER
The following example shows the definition that is needed to define the old archive log files:
DATABASE SAMPLE OBJECTTYPE ARCHIVE POLICY db2_archive SCHEDULE Default-Application-Backup #SCHEDULE User # Swap '#' on SCHEDULE for user-exit CLIENT_NAME Client2 # Restore from backup of remote host ARCFUNC SAVE ENDOPER
- On the destination client, type the DB2 RESTORE command.
Type this command in the following format:
db2 restore db db_being_restored load lib_path into new_db_name redirect
Where:
db_being_restored
Specify the name of the database that was backed up.
lib_path
Specify the full path to the NetBackup library.
new_db_name
Specify the name for the new database. If the name of the new database matches the name of a database presently included in the new instance, the new database overwrites the existing database.
For example:
Windows:
db2 restore db sample load install_path\NetBackup\bin\nbdb2.dll into newsampl redirect
UNIX:
db2 restore db sample load /usr/openv/netbackup/bin/nbdb2.sl into newsampl redirect
- Set the location of the data files for the tablespace.
Type this command in the following format:
db2 set tablespace containers for 0 using "(path path)"
Where path specifies the DB2 install path.
For example, type one or more commands similar to the following:
Windows:
db2 set tablespace containers for 0 using "(path DB2_install_path\db2v832t\NODE0000\SQL00001\SQLT0000.0)"
UNIX:
db2 set tablespace containers for 0 using "(path DB2_install_path/db2v832t/NODE0000/SQL00001/SQLT0000.0)"
- Restore the database.
Type the RESTORE command in the following format:
db2 restore db db_being_restored continue
For example:
db2 restore db sample continue
- (Optional) Restore the transaction logs.
- Use the DB2 ROLLFORWARD command to restore the logs.
Type this command in the following format:
db2 rollforward db new_db_name to end of logs and stop