You can rename and redirect one or more table spaces or table space containers to a different destination on the same or on a different (cross-machine) host. The DB2 automatic storage database contains the automatic storage tablespaces, or a mix of both the automatic and non-automatic storage tablespaces. The DB2 non-automatic storage database contains the non-automatic storage tablespaces only.
When restoring to a new host, ensure the following:
-
Configure the source DB2 instance, backup set and subclient on the CommCell console.
-
Configure the destination DB2 Instance on the CommCell console.
-
Back up your subclient on the source client.
Note: The Commvault software automatically creates the target DB2 database when it does not exist.
Use the following steps to redirect a restore to a new host:
-
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.
-
On the Browse and Restore dialog box, select Latest Backup and click View Content.
-
Optional: Use non-default Browse and Restore options. See Browse and Restore.
-
From the Browse window, select the data to restore in the right pane and click Recover All Selected.
The Restore Options dialog box is displayed.
-
On the General tab.
-
Select the Restore Data check box.
-
Select the Entire Database option.
-
Select the destination client name from the Destination Computer list.
-
If you choose to change the instance, select the Destination Instance from the destination instance list.
-
To change the target database name and location, type the Target Database Name. Enter the location.
For Windows client, the Target Database Path will be with a drive letter.
-
-
On the Restore Arguments tab, in the Backup Images area, choose an option for selecting backup images:
-
To let the Commvault software select the latest backup images or the latest point-in-time backup images, based on the choice you made on the Time Range tab on the Browse and Restore dialog box, choose Auto Pick Backup Images.
-
To manually select a cycle of backup images, choose Select Backup Images. Select the images from the Available Images box, and then click > to move the selected images to the Selection box.
-
-
Click Advanced.
The Advanced Restore Options dialog box is displayed.
-
Specify the storage path if you have an automatic database, or the redirect information if you have a non-automatic database.
-
Database Type
Procedure
Automatic or Mixed Databases
Note
DB2 storage paths are displayed only if there are GUI backup jobs that have run for this database. You won't see storage paths displayed for third-party command line backup jobs.
To specify the storage path, on the Storage Paths tab:
-
Select the Redirect storage groups check box.
The DB2 storage groups appear.
-
From the Storage group box, select the DB2 storage group to view the existing path on the source database.
-
In the Path box, select the path on the DB2 storage device.
-
To change a path for this storage group, click it, then click Edit. Type the changes to the path.
-
To add a path for this storage group, click Add, and then type the path.
-
Non-Automatic Databases
On the Redirect tab:
-
Select the Redirect All Table Spaces/Database to check box
-
Enter the path to redirect the tablespaces and database.
Note: The path must contain 'SQL0001.
-
-
Click OK to close the Advanced Restore Options dialog box.
-
Click OK to close the Restore Options dialog box.