To restore a database, you must deactivate it. When you deactivate the database, all the DB2 non-administrative users are disconnected. The system automatically activates the database after the restore operation. After the restore operation, connect the non-administrative users.
When the database is corrupted or lost, you can restore and recover it from the latest offline or online full backup (depending on how the subclient was configured for backup operations).
By default, the database is restored to the same location from where it was backed up. After you restore the database, it is recovered to the current time.
Procedure
-
From the CommCell Browser, expand Client Computers > client > DB2 > instance.
-
Right-click the backup_set, point to All Tasks, and then click Browse and Restore.
The Browse and Restore dialog box appears.
-
On the Time Range tab, select Latest Backup, and then click View Content.
-
Select the databases to restore, and then click Recover All Selected.
The Restore Options dialog box appears.
-
On the Recover Database tab, select the following options:
-
Select the Recover DB check box.
-
Select the To the End of the logs option.
-
-
Optional: Restore from a copy precedence:
-
Click Advanced.
The Advanced Restore Options dialog box appears.
-
On the Copy Precedence tab, select the Restore from copy precedence check box. From Copy Precedence list, select the number.
-
Click OK.
-
-
Click OK to close the Restore Options dialog box.