Rename/Redirect Files on Restore - How To

Topics | How To | Related Topics


Rename Files on Restore (File System)

Redirect/Rename Data During DB2 Restore

Redirect/Rename Data During Oracle Restore

Restore a Database with a Different Name (Move a Database) (SQL)

Restore with a Different Data File Path (Copy a Database) (SQL)


Rename Files on Restore

Before You Begin

Required Capability: See Capabilities and Permitted Actions

To rename files on restore:

  1. From the CommCell Browser, right-click the agent, instance or backup set that contains the data you want to rename on restore, click All Tasks and then click the available Browse command (command names vary by agent).
  2. Run a browse operation. See Browsing Data for a list of customized browse operations and their step-by-step instructions. If you accept all defaults, you will be browsing the latest backups for the selected data.
  3. From the Browse window, Select Objects From the Browse Window for Restore.
  4. From the Restore Options (General) dialog box, click Advanced.
  5. From the Map tab in the Advanced Restore Options dialog box, enter the desired string that you want to append as a suffix to the filenames in the Rename all restore files with suffix field and click OK.
  6. Optionally, you can select any additional restore options that you want to use from the tabs in the Advanced Restore Options and Restore Options dialog boxes. Then click OK.
  7. If you want to schedule the job, click the Job Initiation tab from the Restore Options dialog box, click Schedule, schedule the job, and then click OK. If you want to run the job now, accept or click Run Immediately in the same tab and then click OK. The progress of the restore job can be monitored using the Job Controller.

Redirect/Rename Data During DB2 Restore

Before You Begin

Required Capability: See Capabilities and Permitted Actions

To redirect and/or rename data during a DB2 restore:

  1. From the CommCell Browser, right-click the DB2 backup set that contains the data you want to rename/redirect on restore, click All Tasks and then click the available Browse command (command names vary by agent).
  2. Run a browse operation. See Browsing Data for a list of customized browse operations and their step-by-step instructions. If you accept all defaults, you will be browsing the latest backups for the selected data.
  3. From the Browse window, Select Objects From the Browse Window for Restore.
  4. From the Source & Destination and Restore Arguments tabs of the DB2 Restore Options dialog box, and from the Job Initiation tab of the Restore Options dialog box, select the options that you want to use.
  5. Click Advanced.
  6. From the Redirect tab of the Advanced Restore Options dialog box, redirect and/or rename data for the restore operation.  Specifically, do one of the following:
  7. Click OK to save your entries. This closes the Redirect tab.
  8. Select any additional restore options from the tabs for the Advanced Restore Options dialog box and then click OK.
  9. If you want to schedule the job, select the Job Initiation tab from the Restore Options dialog box, click Schedule, schedule the job, and then click OK. If you want to run the job now, accept or click Run Immediately in the same tab and then click OK. The progress of the restore job can be monitored using the Job Controller.
  10. After the data has been restored, you will see a job completion message in the Job Controller and Event Viewer.

Redirect/Rename Data During Oracle Restore

Before You Begin

Required Capability: See Capabilities and Permitted Actions

To redirect tablespaces and/or rename datafiles during an Oracle restore:

  1. From the CommCell Browser, right-click the Oracle agent or instance that contains the datafiles you want to rename/redirect on restore, click All Tasks and then click the available Browse command (command names vary by agent).
  2. Run a browse operation. See Browsing Data for a list of customized browse operations and their step-by-step instructions. If you accept all defaults, you will be browsing the latest backups for the selected data.
  3. From the Browse window, Select Objects From the Browse Window for Restore.
  4. From the General tab of the Oracle Restore Options dialog box, and the Job Initiation tab of the Restore Options dialog box, select the options that you want to use.
  5. Click Advanced.
  6. From the Redirect tab of the Advanced Restore Options dialog box, redirect tablespaces and/or rename datafiles for the restore operation.  Specifically, do one of the following:
  7. Click OK to save your entries. This closes the Redirect tab.
  8. Select any additional restore options from the tabs for the Advanced Restore Options dialog box and then click OK.
  9. If you want to schedule the job, select the Job Initiation tab from the Restore Options dialog box, click Schedule, schedule the job, and then click OK. If you want to run the job now, accept or click Run Immediately in the same tab and then click OK.
    Before the restore job is run, the system will check whether the database is in the correct mode for this type of restore. If it is not, a message dialog will inform you of this and offer to automatically switch the database into the valid mode. When this happens, either click Yes on the message dialog to have the system automatically switch the database to the valid mode and continue the restore, or click No to manually switch the database to the valid mode before proceeding.
  10. The progress of the restore job can be monitored using the Job Controller.
  11. After the data has been restored, you will see a job completion message in the Job Controller and Event Viewer.

Restore a SQL Server Database with a Different Name (Move a Database)

Before You Begin

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore a SQL Server database with a different name:

  1. Begin any SQL Server restore procedure.
  2. When you reach the SQL Restore (General) dialog box, click Advanced.
  3. From the Options tab of the Advanced Restore Options dialog box, in the Database column, click each database you want to rename, and change the name to the new value. When a change is made to one database in this column, the change is automatically propagated to the other files of the same database.
  4. Continue your restore.

Restore with a Different Data File Path (Copy a Database)

Before You Begin

Note, that if the database file path is changed, without changing the name of the database, then the existing database will be overwritten and will point to the new location.

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore with a different data file path:

  1. Begin any SQL Server restore procedure.
  2. When you reach the SQL Restore (General) dialog box, click Advanced.
  3. From the Options tab of the Advanced Restore Options dialog box, in the Physical Path column, click each of the files of the database you want to redirect and change the path and/or filename to a new value. If there are many files in the database you want to move, click Find & Replace and enter the necessary values to change them all at once. If the path entered does not exist, it will be automatically created during the restore operation.
  4. Continue the restore procedure.