Performing a DB2 Cross-Machine Restore for a Standby Database

You can restore a production DB2 database to a standby database.

Best Practice: If the standby database client machine and instance are the same, you must set the standby database name to a name that is different than the source database name (Restore Options dialog box, General tab, Target Database Name box).

Procedure

  1. From the CommCell Browser, expand Client Computers> client> DB2 > instance.

  2. Right-click the backup_set, point to All Tasks, and then click Browse and Restore.

  3. On the Browse and Restore dialog box, select Latest Backup and click View Content.

  4. Select the database and click Recover All Selected.

    The Restore Options dialog box is displayed.

  5. On the Recover Database tab, clear the Recover DB check box.

  6. On the General tab, make the following selections.

    1. Select the Restore Data check box and then select the Entire Database option.

    2. Select the destination client name from the Destination Computer list.

    3. If the standby database is on the production database, type the new database name in the Target Database Name box.

  7. 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.

  8. Click Advanced.

    The Advanced Restore Options dialog box is displayed.

  9. On the Roll-Forward tab, select the Leave in Roll-forward Pending State check box.

  10. Specify the storage path if you have an automatic database, or the redirect information if you have a non-automatic database.

  11. Database Type

    Procedure

    Automatic or Mixed Database

    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:

    1. Select the Redirect storage groups check box.

      The DB2 storage groups appear.

    2. From the Storage group box, select the DB2 storage group to view the existing path on the source database.

    3. 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

    To redirect tablespaces:

    On the Redirect tab:

    1. Select the Redirect All Table Spaces/Database to check box

    2. Enter the path to redirect the tablespaces and database.

      To redirect tablespace containers:

      On the Redirect tab:

    3. Select the Redirect All Table Space Containers check box.

    4. In the Table Space [Highwatermark] box, select the tablespace, and then click Add.

      The Browsing for Container Name dialog box appears.

    5. In the Name box, type the tablespace name.

    6. From the Type list, select the container path type, for example Disk Extent.

    7. In the Pages box, type the disk space for the container name. Each page is equivalent to 4KB.

    8. Click OK.

      The Browsing for Container Name dialog box closes.

  12. Click OK to close the Advanced Restore Options dialog box.

  13. Click OK to close the Restore Options dialog box.

Loading...