For restoring the DB2 data recovered as files using Tranzman below steps need to be followed
In the following example, we have a database called SAMPLE. The recovery logs are included in the backup image, the database is restored, and then the database is rolled forward to the end of backup timestamp.
Login to the NetBackup GUI navigate to Backup, Archive and Restore.
Click on the Restore Files tab and select the Source, Destination Client and type of Policy to restore the DB2 backup files.
Restore the image on the DB2 client as a file.
|Note: Set Policy Type to standard, as the restore will be as flat files as opposed to DB2.|
Set a valid date range to look for the backup image. Make sure to change the Browse Directory to the "/" location, else the contents may not populate.
Select the image to recover, and start the restore process back to a location on the client machine.
Recovered filename will have a naming convention as shown below.
- Database Name = Sample
- Instance Name = DB2
- Timestamp = 20180523164142
- Catalog Name = CATN000
Restore the database. The example below restores the database SAMPLE from location in "C:\Backup"
db2 => restore database sample from "C:\backup" taken at 20180919172832 with 2 buffers buffer 1024 parallelism 1 without prompting SQL2540W Restore is successful, however a warning "2539" was encountered during Database Restore while processing in No Interrupt mode.
Roll the logs forward to the end of the backup to make sure the database is in a consistent state.
db2 => rollforward db sample to end of backup
DB20000I The ROLLFORWARD command completed successfully.
Note : If log files are not included in backup images, the rollforward recovery needs to be done as per the method used for backing up logs.
Use this link to go back to the main recoverydocs Page.