Restore Data - Oracle or Oracle RAC - How To

Topics | How To | Full System Restore | Troubleshoot | Related Topics


Oracle iDataAgent or Oracle RAC iDataAgent

Redirect/Rename Data During Oracle Restore

Restore and Recover One or More Tablespace(s) in ARCHIVELOG Mode to the Current Time

Restore and Recover One or More Datafile(s) in ARCHIVELOG Mode to the Current Time

Restore Archive Log Files

Restore and Recover One or More Database Table(s)

Restore and Recover a Database to a New Host with the Same Directory Structure

Restore and Recover a Database to a New Host with a Different Directory Structure

Restore and Recover an Entire Database in ARCHIVELOG Mode to a Previous Point-In-Time

Restore and Recover an Entire Database in ARCHIVELOG Mode to the Current Time

Restore and Recover an Entire Database in NOARCHIVELOG Mode to the Latest Backup

Restore and Recover an Entire Database in NOARCHIVELOG Mode to a Point-In-Time

Restore and Recover One Control File from an Existing Control File

Restore and Recover All Control Files

Restore Archive Log Files

Restore Control Files from Autobackup

Validate a Backup or Restore

Create a Duplicate Database on a Different Host without the Instance Configured

Create a Duplicate Database on a Different Host with the Instance Configured

Create a Duplicate Database on the Same Host without the Instance Configured

Create a Duplicate Database on the Same Host with the Instance Configured

Preview a Script

Oracle iDataAgent

Create a Standby Database on a Different Host without the Instance Configured

Create a Standby Database on a Different Host with the Instance Configured

Create a Standby Database on the Same Host without the Instance Configured

Create a Standby Database on the Same Host with the Instance Configured


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 and Recover One or More Tablespace(s) in ARCHIVELOG Mode to the Current Time

The following procedure describes the steps involved in restoring one or more lost tablespaces, without the control file for a database running in ARCHIVELOG mode. This procedure restores and recovers the tablespace(s) as follows:

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore and recover one or more tablespace(s) in ARCHIVELOG mode to the current time:

  1. From the CommCell Browser, right-click the instance that contains the tablespace(s) you want to restore and recover, click All Tasks and then click Restore.
  2. From the Oracle Restore Options (General) dialog box, select the following options:
  3. Click on the Advanced button and verify the following options are selected:
  4. Click OK in the Oracle Advanced Restore Options window.
  5. When restoring encrypted data, refer to Data Encryption.
  6. Optionally for Oracle RAC, from the Oracle Restore Options (Stream) dialog box, set the instance restore order per stream allotment.
  7. Begin or schedule the restore.
    During the partial restore job, the system checks whether the selected tablespaces are in the OFFLINE state. If they are not, the system will automatically switch the tablespaces to the OFFLINE state.
  8. While the job is running you can right-click the job in the Job Controller and select Details to view information on the job. After the data has been restored, you will see a job completion message in the Job Controller and Event Viewer.

Restore and Recover One or More Datafile(s) in ARCHIVELOG Mode to the Current Time

The following procedure describes the steps involved in restoring one or more lost datafile(s), from an existing control file. The database containing these datafile(s) is running in ARCHIVELOG mode. This procedure restores and recovers the datafile(s) as follows:

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore and recover one or more datafile(s) in ARCHIVELOG mode to the current time:

  1. From the CommCell Browser, right-click the instance that contains the datafile(s) you want to restore and recover, click All Tasks and then click Restore.
  2. From the Oracle Restore Options (General) dialog box, select the following options:
  3. Click the Advanced button and verify the following options are selected in the identified tab for the Oracle Advanced Restore Options dialog box:
  4. Click OK in the Oracle Advanced Restore Options window.
  5. When restoring encrypted data, refer to Data Encryption.
  6. Optionally for Oracle RAC, from the Oracle Restore Options (Stream) dialog box, set the instance restore order per stream allotment.
  7. Begin or schedule the restore.
  8. While the job is running you can right-click the job in the Job Controller and select Details to view information on the job. After the data has been restored, you will see a job completion message in the Job Controller and Event Viewer.

Restore Archive Log Files

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore archive log files using the CommCell Console:

  1. From the CommCell Browser, right-click the instance, select All Tasks then click Restore.
  2. From the Oracle Restore Options (General) tab, select Restore Archive Log. You can also select Restore Data and Recover options if required.
  3. Click Advanced.
  4. From the Advanced Restore Options (Restore) tab, select Restore Archive Logs.
  5. Select any of the following criteria to restore the archive log files:
  6. If you want to save the archive logs in a different location, enter the path in Target Directory field or click Browse to select a new location.
  7. Click OK to save the settings.

Restore and Recover One or More Database Table(s)

The following procedure describes the steps involved in restoring one or more database tables. This procedure restores and recovers the tables as follows:

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore and recover one or more database tables:

  1. From the CommCell Browser, right-click the instance that contains the tables you want to restore and recover, click All Tasks and then click Browse Backup Data.
  2. From the Browse Options dialog box, select Table View.
  3. Click OK.
  4. In the Browse window, select the tables to be restored and click Recover All Selected.
  5. From the Oracle Restore Options (General) tab, select, enter, or consider the following:
  6. Click Advanced and then the Recover tab, and choose a time for the restore. Current Time is the default option. The point in time value will be displayed automatically in the Point In Time fields if the PIT time has already been entered in the Specify Browse Time field in the Browse Options dialog box.
  7. From the Oracle Restore Options (Table Restore), select the required parameters.
  8. For Oracle RAC only, from the Streams tab, select only one node with only one stream to submit the job.
  9. Click OK.

Restore and Recover a Database to a New Host with the Same Directory Structure (Oracle and Oracle RAC)

The following procedure describes the steps involved in restoring and recovering a database (either in ARCHIVELOG or NOARCHIVELOG) mode to a new host, with the same directory structure.

When you are restoring data from a database in NOARCHIVELOG mode, you must always restore and recover the entire database.

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore and recover a database to a new host with the same directory structure:

  1. Verify that the destination machine's init <SID>.ora file is the same as the source machine's file.
  2. Configure the destination machine's $TNS_ADMIN/tnsnames.ora file to include the Recovery Catalog database's service entry. The easiest way to configure this file is to copy the Recovery Catalog database's service entry from the source machine's tnsnames.ora file and append it to the destination machine's tnsnames.ora file. The Recovery Catalog database's service entry should look similar to the following:
    <service_name> =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = <protocol>)(HOST = <host>) (PORT = <##>))
    (CONNECT_DATA = (SID = <Recovery Catalog database>)))
  3. Make sure that ORACLE_SID is set to the database that you are restoring and that ORACLE_HOME is set appropriately. Note the following example for Solaris:
    #export ORACLE_SID= <target database SID>
    #export ORACLE_HOME= <Oracle home directory>

    Note the following example for Windows 2000 machines:
    C:\set ORACLE_SID= <target database SID>
    C:\set ORACLE_HOME= <Oracle home directory>
  4. From Server Manager or SQL Plus on the source machine, create a new user account within the Recovery Catalog for the destination machine by executing the commands in the following display:
    SVRMGR>create user <username> identified by <password>
    2>temporary tablespace <temp_tablespace_name>
    3>default tablespace <default_tablespace_name>
    4>quota unlimited on <default_tablespace_name>;
    Statement processed.
    SVRMGR>grant connect, resource, recovery_catalog_owner to <username>;
    Statement processed.
    Make sure that the <username>you supply for the destination machine is different than the username for the source machine.

    When you are granting the user database permissions, make sure to include the recovery_catalog_owner option shown above.

  5. Transfer the Oracle password file "orapw<Oracle SID name>" from the source machine to the destination machine. Usually this file resides in ORACLE_HOME/dbs.
  6. From the source machine, use the Oracle exp command to export the Recovery Catalog data. You are exporting the data by user. For example, if the user ID for the Recovery Catalog owner is rman, you would export the database backup information for the user rman.
  7. From the source machine, use the Oracle imp command to import the contents of the file you created in the previous step into the new user account for the destination machine. Depending on the version of Oracle that you are running, you may receive the following error when you run the imp command:
    IMP-00044: unable to allocate enough memory for statement
  8. Perform these steps if you receive an error while running the imp command:
  9. Ensure that the database in NOMOUNT mode in the destination machine.
  10. If you want to perform the cross-machine restore from the CommCell Console then continue on with this procedure. Otherwise, if you want to perform the cross-machine restore from the RMAN command line using your own custom script, then exit this help and run the script now (refer to Oracle's Recovery Manager documentation for more information).
  11. From the CommCell Browser, right-click the instance that contains the database you want to restore and recover to a new host, click All Tasks and then click Restore.
  12. From the Oracle Restore Options (General) dialog box, select or enter the following:
  13. Click the Advanced button and verify the following options are selected in the identified tab for the Oracle Advanced Restore Options dialog box:
  14. Click OK in the Oracle Advanced Restore Options dialog box.
  15. When restoring encrypted data, refer to Data Encryption.
  16. Optionally for Oracle RAC, from the Oracle Restore Options (Stream) dialog box, set the instance restore order per stream allotment.
  17. Begin or schedule the restore.
    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.
  18. View the progress of the restore in the Job Controller window. Perform the following steps if your database is in the NOARCHIVELOG mode.
  19. Manually recover and open the database using the following steps.
  20. From the Server Manager window, execute the command displayed in the following example:
    SVRMGR>recover database using backup control file until cancel;

    Server Manager displays several messages, including the following:
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
  21. Type cancel

    The following message is displayed:
    Media recovery cancelled.
  22. Execute the commands displayed in the following example:
    SVRMGR>alter database open resetlogs;
    SVRMGR>exit
  23. Reset the Recovery Catalog by executing the commands displayed in the following example:
    #rman rcvcat <catalog connect string>
    Recovery Manager: Release 8.1.5.00 - Production
    RMAN-06008: connected to recovery catalog database
    RMAN>connect target;
    RMAN-06005: connected to target database: <database_name> DBID=<##>)
    RMAN> reset database;
    RMAN-03022: compiling command: reset
    RMAN-03023: executing command: reset
    RMAN-08006: database registered in recovery catalog
    RMAN-03023: executing command: full resync
    RMAN-08002: starting full resync of recovery catalog
    RMAN-08004: full resync complete
    RMAN>exit

    Resetting the Recovery Catalog creates a new incarnation of the database. Before you can restore and recover the database to the current time, you must perform another full backup and wait for it to complete successfully.
  24. Perform an immediate offline full backup.

Restore and Recover a Database to a New Host with a Different Directory Structure (Oracle and Oracle RAC)

The following procedure describes the steps involved in restoring and recovering a database (either in ARCHIVELOG or NOARCHIVELOG) mode to a new host, with a different directory structure.

When you are restoring data from a database in NOARCHIVELOG mode, you must always restore and recover the entire database.

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore and recover a database to a new host with a different directory structure:

  1. Copy the init<SID>.ora from the old host to the new host.
  2. Edit the init<SID>.ora file on the new host to reflect all the directory structure changes (i.e., change the path for control files, archivelog destination and *dump destinations).
  3. Create the directory structures as defined in init<SID>.ora file for all paths.
  4. Configure the destination machine's $TNS_ADMIN/tnsnames.ora file to include the Recovery Catalog database's service entry. The easiest way to configure this file is to copy the Recovery Catalog database's service entry from the source machine's tnsnames.ora file and append it to the destination machine's tnsnames.ora file. The Recovery Catalog database's service entry should look similar to the following:
    <service_name> =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = <protocol>)(HOST = <host>) (PORT = <##>))
    (CONNECT_DATA = (SID = <Recovery Catalog database>)))
  5. Make sure that ORACLE_SID is set to the database that you are restoring and that ORACLE_HOME is set appropriately. Note the following example for Solaris:
    #export ORACLE_SID= <target database SID>
    #export ORACLE_HOME= <Oracle home directory>

    Note the following example for Windows 2000 machines:
    C:\set ORACLE_SID= <target database SID>
    C:\set ORACLE_HOME= <Oracle home directory>
  6. From Server Manager or SQL Plus on the source machine, create a new user account within the Recovery Catalog for the destination machine by executing the commands in the following display:
    SVRMGR>create user <username> identified by <password>
    2>temporary tablespace <temp_tablespace_name>
    3>default tablespace <default_tablespace_name>
    4>quota unlimited on <default_tablespace_name>;
    Statement processed.
    SVRMGR>grant connect, resource, recovery_catalog_owner to <username>;
    Statement processed.
    Make sure that the <username>you supply for the destination machine is different than the username for the source machine.

    When you are granting the user database permissions, make sure to include the recovery_catalog_owner option shown above.

  7. Transfer the Oracle password file "orapw<Oracle SID name>" from the source machine to the destination machine. Usually this file resides in ORACLE_HOME/dbs.
  8. From the source machine, use the Oracle exp command to export the Recovery Catalog data. You are exporting the data by user. For example, if the user ID for the Recovery Catalog owner is rman, you would export the database backup information for the user rman.
  9. From the source machine, use the Oracle imp command to import the contents of the file you created in the previous step into the new user account for the destination machine. Depending on the version of Oracle that you are running, you may receive the following error when you run the imp command:
    IMP-00044: unable to allocate enough memory for statement
  10. Perform these steps if you receive an error while running the imp command:
  11. Ensure that the database in NOMOUNT mode in the destination machine.
  12. If you want to perform the cross-machine restore from the CommCell Console then continue on with this procedure. Otherwise, if you want to perform the cross-machine restore from the RMAN command line using your own custom script, then exit this help and run the script now (refer to Oracle's Recovery Manager documentation for more information).

    When performing cross-machine restore, do the following:

  13. From the CommCell Browser, right-click the instance that contains the database you want to restore and recover to a new host, click All Tasks and then click Restore.
  14. From the Oracle Restore Options (General) dialog box, select or enter the following:
  15. Click the Advanced button and verify the following options are selected in the identified tab for the Oracle Advanced Restore Options dialog box:
  16. Click OK on the Oracle Advanced Restore Options dialog box.
  17. When restoring encrypted data, refer to Data Encryption.
  18. Optionally for Oracle RAC, from the Oracle Restore Options (Stream) dialog box, set the instance restore order per stream allotment.
  19. Begin or schedule the restore.
    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.
  20. View the progress of the restore in the Job Controller window. Perform the following steps if your database is in the NOARCHIVELOG mode.
  21. Manually recover and open the database using the following steps.
  22. From the Server Manager window, execute the command displayed in the following example:
    SVRMGR>recover database using backup control file until cancel;

    Server Manager displays several messages, including the following:
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
  23. Type cancel

    The following message is displayed:
    Media recovery cancelled.
  24. Execute the commands displayed in the following example:
    SVRMGR>alter database open resetlogs;
    SVRMGR>exit
  25. Reset the Recovery Catalog by executing the commands displayed in the following example:
    #rman rcvcat <catalog connect string>
    Recovery Manager: Release 8.1.5.00 - Production
    RMAN-06008: connected to recovery catalog database
    RMAN>connect target;
    RMAN-06005: connected to target database: <database_name> DBID=<##>)
    RMAN> reset database;
    RMAN-03022: compiling command: reset
    RMAN-03023: executing command: reset
    RMAN-08006: database registered in recovery catalog
    RMAN-03023: executing command: full resync
    RMAN-08002: starting full resync of recovery catalog
    RMAN-08004: full resync complete
    RMAN>exit

    Resetting the Recovery Catalog creates a new incarnation of the database. Before you can restore and recover the database to the current time, you must perform another full backup and wait for it to complete successfully.
  26. Perform an immediate offline full backup.

Restore and Recover an Entire Database in ARCHIVELOG Mode to a Previous Point-In-Time

The following procedure describes the steps involved in restoring and recovering a database to a previous point-in-time. This procedure restores and recovers the database as follows:

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore and recover an entire database in ARCHIVELOG mode to a previous point-in-time:

  1. From the CommCell Browser, right-click the instance that contains the database you want to restore and recover, click All Tasks and then click Restore.
  2. From the Oracle Restore Options (General) dialog box, select the following options:
  3. Click on the Advanced button.
  4. From the Ctrl & SP Files tab in the Oracle Advanced Restore Options dialog box, select the To Point in Time in the Restore Control File pane and enter the date and time to which you want the Control File(s) restored.
    The control file(s) must be restored to a point-in-time that is later than or equal to the point-in-time set for the Restore Data option in the Restore tab.
  5. From the Restore tab, select the To Point in Time in the Restore Data pane and enter the date and time to which you want the datafiles restored.
    The data must be restored to a point-in-time that is earlier than or equal to the point-in-time set for the Restore Control File option in the Ctrl & SP Files tab.
  6. From the Recover tab, select the To Point in Time in the Recover pane and enter the date and time to which you want the database recovered.
    The point in time that you specify for the Recover option must be later than or equal to the point in time that you specified for the CONTROL FILE in the Ctrl & SP Files tab.
  7. From the Options tab, type or select the database incarnation value in the Set DB Incarnation box, if you want to perform the restore from a backup of a previous incarnation.
  8. Click OK in the Oracle Advanced Restore Options window.
  9. When restoring encrypted data, refer to Data Encryption.
  10. Optionally for Oracle RAC, from the Oracle Restore Options (Stream) dialog box, set the instance restore order per stream allotment.
  11. Begin or schedule the restore.
    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.
  12. While the job is running you can right-click the job in the Job Controller and select Details to view information on the job. After the data has been restored, you will see a job completion message in the Job Controller and Event Viewer.
    If you recover the database to a previous point in time, or restore the control file, then you have to perform a full database backup. This is because a previous point in time recovery or restoring the control file will destroy all previous backups.

Restore and Recover an Entire Database in ARCHIVELOG Mode to the Current Time

The following procedure describes the steps involved in restoring and recovering a database running in ARCHIVELOG mode, with lost data files and control files.

This procedure restores and recovers the database as follows:

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore and recover Restore an entire database in ARCHIVELOG mode to the current time:

  1. From the CommCell Browser, right-click the instance that contains the database you want to restore and recover, click All Tasks and then click Restore.
  2. From the Oracle Restore Options (General) dialog box, select the following options:
  3. Click the Advanced button and verify the following options are selected in the identified tab for the Oracle Advanced Restore Options dialog box:
  4. Click OK in the Oracle Advanced Restore Options window.
  5. When restoring encrypted data, refer to Data Encryption.
  6. Optionally for Oracle RAC, from the Oracle Restore Options (Stream) dialog box, set the instance restore order per stream allotment.
  7. Begin or schedule the restore.
    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.
  8. While the job is running you can right-click the job in the Job Controller and select Details to view information on the job. After the data has been restored, you will see a job completion message in the Job Controller and Event Viewer.

    The system automatically resets the logs and the database. Before you can restore and recover the database to the current time, it is good practice to perform another full backup and wait for it to complete successfully.

NOTES


Restore and Recover an Entire Database in NOARCHIVELOG Mode to the Latest Backup

The following procedure describes the steps involved in restoring and recovering an entire database when all datafiles and control files are lost. This procedure restores and recovers an entire database as follows:

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore and recover an entire database in NOARCHIVELOG mode to the latest backup:

  1. From the CommCell Browser, right-click the instance that contains the database you want to restore and recover, click All Tasks and then click Restore.
  2. From the Oracle Restore Options (General) dialog box, select the following options:
  3. Click the Advanced button and verify the following options are selected in the identified tab for the Oracle Advanced Restore Options dialog box:
  4. Click OK in the Oracle Advanced Restore Options window.
  5. When restoring encrypted data, refer to Data Encryption.
  6. Optionally for Oracle RAC, from the Oracle Restore Options (Stream) dialog box, set the instance restore order per stream allotment.
  7. Begin or schedule the restore.
    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.
  8. While the job is running you can right-click the job in the Job Controller and select Details to view information on the job. After the data has been restored, you will see a job completion message in the Job Controller and Event Viewer.
    If you restore the control file, then you have to perform a full database backup. This is because restoring the control file will destroy all previous backups.

Restore and Recover an Entire Database in NOARCHIVELOG Mode to a Point-In-Time

The following procedure describes the steps involved in restoring and recovering an entire database when all data files and control files are lost. This procedure restores and recovers an entire database as follows:

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore and recover an entire database in NOARCHIVELOG mode to a point-in-time:

  1. From the CommCell Browser, right-click the instance that contains the database you want to restore and recover, click All Tasks and then click Restore.
  2. From the Oracle Restore Options (General) dialog box, select the following options:
  3. Click the Advanced button and verify the following options are selected in the identified tab for the Oracle Advanced Restore Options dialog box:
  4. Click OK in the Oracle Advanced Restore Options window.
  5. When restoring encrypted data, refer to Data Encryption.
  6. Optionally for Oracle RAC, from the Oracle Restore Options (Stream) dialog box, set the instance restore order per stream allotment.
  7. Begin or schedule the restore.
    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.
  8. View the progress of the restore in the Job Controller window.
  9. The job will report the restore as failed. This is because no archive redo log files exist. RMAN will report the following message, in reference to this error:

    RMAN-00569: =========error message stack follows============
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: recover
    RMAN-06038: recovery catalog package detected an error
    RMAN-03013: command type: recover(4)
    RMAN-20242: specification does not match any archivelog in the recovery catalog

    Manually recover and open the database using the following steps.

  10. Make sure that ORACLE_SID is set to the database you are restoring and that ORACLE_HOME is set appropriately. Note the following example:
    #export ORACLE_SID= <target database SID>
    #export ORACLE_HOME= <Oracle home directory>
  11. From the Server Manager window, execute the command displayed in the following example:
    SVRMGR>recover database using backup control file until cancel;

    Server Manager displays several messages, including the following:
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}

  12. Type cancel

    The following message is displayed:
    Media recovery cancelled.

  13. Execute the commands displayed in the following example:
    SVRMGR>alter database open resetlogs;
    SVRMGR>exit
  14. Reset the Recovery Catalog by executing the commands displayed in the following example:
    rman rcvcat <catalog connect string>
    Recovery Manager: Release 8.1.5.00 - Production
    RMAN-06008: connected to recovery catalog database
    RMAN>connect target;
    RMAN-06005: connected to target database: <database_name> DBID=<##>)
    RMAN> reset database;
    RMAN-03022: compiling command: reset
    RMAN-03023: executing command: reset
    RMAN-08006: database registered in recovery catalog
    RMAN-03023: executing command: full resync
    RMAN-08002: starting full resync of recovery catalog
    RMAN-08004: full resync complete
    RMAN>exit

    Resetting the Recovery Catalog creates a new incarnation of the database. Before you can restore and recover the database to the current time, you must perform another full backup and wait for it to complete successfully.

  15. Perform an immediate offline full backup.

Restore and Recover One Control File from an Existing Control File

The following procedure describes the steps involved in restoring one lost control file from other control files that exist.

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore and recover one control file from an existing control file:

  1. Shutdown the database.
  2. Copy one of the existing control files to the missing control file.
  3. Verify that new control file has the same owner, group, and file permissions as the original control file.
  4. Startup the database.

Restore and Recover All Control Files

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore and recover all control files:

  1. Create a new control file using the Oracle create control file command.

    For instructions, refer to your Oracle documentation.

  2. Recover the database.

NOTES


Restore Archive Log Files

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore archive log files using the CommCell Console:

  1. From the CommCell Browser, right-click the instance, select All Tasks then click Restore.
  2. From the Oracle Restore Options (General) tab, select Restore Archive Log. You can also select Restore Data and Recover options if required.
  3. Click Advanced.
  4. From the Advanced Restore Options (Restore) tab, select Restore Archive Logs.
  5. Select any of the following criteria to restore the archive log files:
  6. If you want to save the archive logs in a different location, enter the path in Target Directory field or click Browse to select a new location.
  7. Click OK to save the settings.

Restore Control Files from Autobackup

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore control files from autobackup using the CommCell Console:

  1. From the CommCell Browser, right-click the instance, select All Tasks then click Restore.
  2. From the Oracle Restore Options (General) tab, click Advanced.
  3. Click the Control and SP Files tab of the Oracle Advanced Restore Options dialog box, then select the options for Restore Control File and From Autobackup.
  4. Click the Options tab in the Oracle Advanced Restore Options dialog box, and select Set DBID. This option will distinguish the target database from the rest of the databases that have the same name in the recovery catalog.
  5. Enter or select any other desired options on this tab, then click OK to save the settings.
  6. Begin or schedule the restore.

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore control files from autobackup using RMAN:

  1. Start up the target instance in NOMOUNT mode.
  2. Start RMAN, but do not issue any connect statements.
  3. At the RMAN prompt, set the dbid (if you do not know the dbid, you can get it from the RMAN log of the control file autobackup):

    RMAN> set dbid=<your_DBID>;

  4. After setting the dbid, connect to the target instance that has been started in NOMOUNT mode:

    RMAN> connect target;

  5. Enter the following commands/parameters from the RMAN prompt:

    RMAN> run {
    2> allocate channel ch1 type 'sbt_tape';
    3> restore controlfile from autobackup;
    4> }

  6. Mount the database from the restored control file:

    RMAN> alter database mount;

  7. Restore and recover the database:

    RMAN> run {
    2> allocate channel ch1 type 'sbt_tape';
    3> restore database;
    4> recover database;
    5> alter database open resetlogs;
    6> }

    RMAN> exit


Validate a Backup or Restore

Related Topics

See Also:

Required Capability: See Capabilities and Permitted Actions

To validate a backup:

  1. From the CommCell Browser, right-click the subclient containing the backup data you want to validate, then click Properties.
  2. Click the Backup Arguments tab, then select Validate and click OK.
  3. Start a Backup for the subclient. A Validate job will run, which will cause RMAN to examine the database and scan all of the backup pieces to verify that the backup can be successfully restored.
  4. Once the Validate job completes you can view the log file for the job to determine whether there were any errors in the validation. To view the log file:

Required Capability: See Capabilities and Permitted Actions

To validate a restore:

  1. From the CommCell Browser, right-click the instance whose restore you want to validate, select All Tasks, then click Restore.
  2. From the Restore Options dialog, click Advanced.
  3. Click the Options tab, then select Validate and click OK.

    NOTE: For the Oracle iDataAgent, keep in mind that the Options tab is unavailable when the Duplicate DB option is selected on the Restore Options (General) tab.

  4. Start a Basic Restore for the Instance. A Validate job will run, which will cause RMAN to decide which database pieces need to be restored and then scans them to verify their contents, but no output will be created and no data will be over-written.
  5. Once the Validate job completes you can view the log file for the job to determine whether there were any errors in the validation. To view the log file:

Create a Duplicate Database on a Different Host without the Instance Configured

The following procedure describes the steps involved in creating a duplicate database on a different host without the instance configured.

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To create a duplicate database on a different host without the instance configured:

  1. From the CommCell Console, right-click the source host instance then select All Tasks -> Restore.
  2. From the Oracle Restore Options (General) dialog box, select the Duplicate DB checkbox and click Advanced.
  3. From the Duplicate tab in the Oracle Duplicate Options dialog box, select the Duplicate To checkbox and enter the name for the duplicate database in the Database Name field. Click OK.
  4. From the Oracle Restore Options (General) dialog box, select the Destination Client from the list (when the instance is not configured, the destination client must be the source host) then enter the Catalog Connect string and click Advanced.
  5. From the Duplicate tab in the Oracle Duplicate Options dialog box, configure the following fields:
  6. From the Recover tab in the Advanced Restore Options dialog box, select the appropriate recover option.
  7. Select any other desired options, then click Redirect in the Advanced Restore Options dialog box.
  8. From the Redirect tab, choose one of the following then click OK:
    To redirect the database temp file, use the DB_FILE_NAME_CONVERT parameter in the initial file for the new database instance. Similarly, to redirect the log files, you can either use the LOG_FILE_NAME_CONVERT parameter in the initial file or use the Log File option in the Advanced Restore Options (Duplicate) dialog box. For more information on setting the parameters in the initial file, see Prerequisite Setup Steps for Creating a Duplicate Database.
  9. From the Duplicate DB Options tab in the Oracle Duplicate Options dialog box, configure the following options as desired:
  10. Click OK on the Advanced Restore Options dialog box.
  11. Begin or schedule the restore. Once the job begins, if you see a pop-up message about the database state, ensure that the duplicate database is in NOMOUNT mode then click Yes to continue.
  12. Verify that the restore completed successfully and that the database is restored to the destination host. If you selected the Recover option verify that the database is consistent.

Create a Duplicate Database on a Different Host with the Instance Configured

The following procedure describes the steps involved in creating a duplicate database on a different host with the instance configured.

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To create a duplicate database on a different host with the instance configured:

  1. From the CommCell Console, right-click the source host instance then select All Tasks -> Restore.
  2. From the Oracle Restore Options (General) dialog box, select the Duplicate DB checkbox and click Advanced.
  3. From the Duplicate tab in the Oracle Duplicate Options dialog box, select the Duplicate To checkbox and enter the name for the duplicate database in the Database Name field. Click OK.
  4. From the Oracle Restore Options (General) dialog box, select the Destination Client from the list then enter the Catalog Connect string and click Advanced.
  5. From the Duplicate tab in the Oracle Duplicate Options dialog box, configure the following fields:
  6. From the Recover tab in the Advanced Restore Options dialog box, select the appropriate recover option.
  7. Select any other desired options, then click Redirect in the Advanced Restore Options dialog box.
  8. From the Redirect tab, choose one of the following then click OK:
    To redirect the database temp file, use the DB_FILE_NAME_CONVERT parameter in the initial file for the new database instance. Similarly, to redirect the log files, you can either use the LOG_FILE_NAME_CONVERT parameter in the initial file or use the Log File option in the Advanced Restore Options (Duplicate) dialog box. For more information on setting the parameters in the initial file, see Prerequisite Setup Steps for Creating a Duplicate Database.
  9. From the Duplicate DB Options tab in the Oracle Duplicate Options dialog box, configure the following options as desired:
  10. Click OK on the Advanced Restore Options dialog box.
  11. Begin or schedule the restore. Once the job begins, if you see a pop-up message about the database state, ensure that the duplicate database is in NOMOUNT mode then click Yes to continue.
  12. Verify that the restore completed successfully and that the database is restored to the destination host. If you selected the Recover option verify that the database is consistent.

Create a Duplicate Database on the Same Host without the Instance Configured

The following procedure describes the steps involved in creating a duplicate database on the same host without the instance configured.

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To create a duplicate database on the same host without the instance configured:

  1. From the CommCell Console, right-click the source host instance then select All Tasks -> Restore.
  2. From the Oracle Restore Options (General) dialog box, select the Duplicate DB checkbox then enter the Catalog Connect string and click Advanced.
  3. From the Duplicate tab in the Oracle Duplicate Options dialog box, configure the following fields:
  4. From the Recover tab in the Advanced Restore Options dialog box, select the appropriate recover option.
  5. Select any other desired options, then click Redirect in the Advanced Restore Options dialog box.
  6. From the Redirect tab, choose one of the following then click OK:
    To redirect the database temp file, use the DB_FILE_NAME_CONVERT parameter in the initial file for the new database instance. Similarly, to redirect the log files, you can either use the LOG_FILE_NAME_CONVERT parameter in the initial file or use the Log File option in the Advanced Restore Options (Duplicate) dialog box. For more information on setting the parameters in the initial file, see Prerequisite Setup Steps for Creating a Duplicate Database.
  7. From the Duplicate DB Options tab in the Oracle Duplicate Options dialog box, configure the following options as desired:
  8. Click OK on the Advanced Restore Options dialog box.
  9. Begin or schedule the restore. Once the job begins, if you see a pop-up message about the database state, ensure that the duplicate database is in NOMOUNT mode then click Yes to continue.
  10. Verify that the restore completed successfully and that the database is restored to the destination host. If you selected the Recover option verify that the database is consistent.

Create a Duplicate Database on the Same Host with the Instance Configured

The following procedure describes the steps involved in creating a duplicate database on the same host with the instance configured.

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To create a duplicate database on the same host with the instance configured:

  1. From the CommCell Console, right-click the source host instance then select All Tasks -> Restore.
  2. From the Oracle Restore Options (General) dialog box, select the Duplicate DB checkbox then enter the Catalog Connect string and click Advanced.
  3. From the Duplicate tab in the Oracle Duplicate Options dialog box, configure the following fields:
  4. From the Recover tab in the Advanced Restore Options dialog box, select the appropriate recover option.
  5. Select any other desired options, then click Redirect in the Advanced Restore Options dialog box.
  6. From the Redirect tab, choose one of the following then click OK:
    To redirect the database temp file, use the DB_FILE_NAME_CONVERT parameter in the initial file for the new database instance. Similarly, to redirect the log files, you can either use the LOG_FILE_NAME_CONVERT parameter in the initial file or use the Log File option in the Advanced Restore Options (Duplicate) dialog box. For more information on setting the parameters in the initial file, see Prerequisite Setup Steps for Creating a Duplicate Database.
  7. From the Duplicate DB Options tab in the Oracle Duplicate Options dialog box, configure the following options as desired:
  8. Click OK on the Advanced Restore Options dialog box.
  9. Begin or schedule the restore. Once the job begins, if you see a pop-up message about the database state, ensure that the duplicate database is in NOMOUNT mode then click Yes to continue.
  10. Verify that the restore completed successfully and that the database is restored to the destination host. If you selected the Recover option verify that the database is consistent.

Preview a Script

Related Topics

Required Capability: See Capabilities and Permitted Actions

To preview a backup script:

  1. From the CommCell Browser, right-click the subclient containing the data whose backup script you want to preview, then click Backup.
  2. From the Backup Options dialog, click Script Preview.
  3. To change the script, click OK to close the preview window, then enter the desired changes on the Backup Options and Advanced Backup Options dialogs, and click Script Preview again to see if the script now reflects the configuration you want. Repeat this if necessary to achieve the desired result.
  4. Once you are satisfied with the script, perform one of the following actions:

Required Capability: See Capabilities and Permitted Actions

To preview a restore script:

  1. From the CommCell Browser, right-click the instance containing the data whose restore script you want to preview, select All Tasks, then click Restore (or click Browse Backup Data).
  2. From the Oracle Restore Options (General) dialog, click Script Preview.
  3. To change the script, click OK to close the preview window, then enter the desired changes on the Restore Options and Advanced Restore Options dialogs, and click Script Preview again to see if the script now reflects the restore settings you want. Repeat this if necessary to achieve the desired result.
  4. Once you are satisfied with the script, perform one of the following actions:

NOTES:


Create a Standby Database on a Different Host without the Instance Configured

The following procedure describes the steps involved in creating a standby database on a different host without the instance configured.

Before You Begin

For Oracle 10g, ensure that you set the Standby Role Initialization parameter, DB_FILE_NAME_CONVERT,to add all the temp data files from the primary database location to the standby database location, as follows:

DB_FILE_NAME_CONVERT='<primary_database_temp_datafile_old _location>','<standby_database_temp_datafile_new_location>'

If this parameter is not set, restore will fail with the following error message:

temporary file TEMP01.DBF conflicts with file used by target database

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To create a standby database on a different host without the instance configured:

  1. From the CommCell Console, right-click the source host instance then select All Tasks -> Restore.
  2. From the Oracle Restore Options (General) dialog box, select the Duplicate DB checkbox and enter the Catalog Connect string, then click Advanced.
  3. Click the Duplicate DB Options tab, select the Duplicate For Standby option then enter the Oracle System Identifier for the standby database in the Oracle SID field. Optionally, you may configure any of the following options as desired:
  4. Click the Recover tab, then select the appropriate recover option.
  5. Click the Redirect tab, then choose one of the following and click OK:
  6. Select any other applicable options in the Oracle Duplicate Options dialog box, then click OK.
  7. From the Oracle Restore Options (General) dialog box, select the Destination Client from the list (when the instance is not configured, the destination client must be the source host).
  8. Begin or schedule the restore. Once the job begins, if you see a pop-up message about the database state, ensure that the standby database is in NOMOUNT mode then click Yes to continue.
  9. Verify that the restore completed successfully and that the database is restored to the destination host. If you selected the Recover option verify that the database is consistent.

Create a Standby Database on a Different Host with the Instance Configured

The following procedure describes the steps involved in creating a standby database on a different host with the instance configured.

Before You Begin

For Oracle 10g, ensure that you set the Standby Role Initialization parameter, DB_FILE_NAME_CONVERT,to add all the temp data files from the primary database location to the standby database location, as follows:

DB_FILE_NAME_CONVERT='<primary_database_temp_datafile_old _location>','<standby_database_temp_datafile_new_location>'

If this parameter is not set, restore will fail with the following error message:

temporary file TEMP01.DBF conflicts with file used by target database

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To create a standby database on a different host with the instance configured:

  1. From the CommCell Console, right-click the source host instance then select All Tasks -> Restore.
  2. From the Oracle Restore Options (General) dialog box, select the Duplicate DB checkbox and enter the Catalog Connect string, then click Advanced.
  3. Click the Duplicate DB Options tab, select the Duplicate For Standby option then enter the Oracle System Identifier for the standby database in the Oracle SID field. Optionally, you may configure any of the following options as desired:
  4. Click the Recover tab, then select the appropriate recover option.
  5. Click the Redirect tab, then choose one of the following and click OK:
  6. Select any other applicable options in the Oracle Duplicate Options dialog box, then click OK.
  7. Begin or schedule the restore. Once the job begins, if you see a pop-up message about the database state, ensure that the standby database is in NOMOUNT mode then click Yes to continue.
  8. Verify that the restore completed successfully and that the database is restored to the destination host. If you selected the Recover option verify that the database is consistent.

Create a Standby Database on the Same Host without the Instance Configured

The following procedure describes the steps involved in creating a standby database on the same host without the instance configured.

Before You Begin

For Oracle 10g, ensure that you set the Standby Role Initialization parameter, DB_FILE_NAME_CONVERT,to add all the temp data files from the primary database location to the standby database location, as follows:

DB_FILE_NAME_CONVERT='<primary_database_temp_datafile_old _location>','<standby_database_temp_datafile_new_location>'

If this parameter is not set, restore will fail with the following error message:

temporary file TEMP01.DBF conflicts with file used by target database

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To create a standby database on the same host without the instance configured:

  1. From the CommCell Console, right-click the source host instance then select All Tasks -> Restore.
  2. From the Oracle Restore Options (General) dialog box, select the Duplicate DB checkbox and enter the Catalog Connect string, then click Advanced.
  3. Click the Duplicate DB Options tab, select the Duplicate For Standby option then enter the Oracle System Identifier for the standby database in the Oracle SID field. Optionally, you may configure any of the following options as desired:
  4. Click the Recover tab, then select the appropriate recover option.
  5. Click the Redirect tab, then choose one of the following and click OK:
  6. Select any other applicable options in the Oracle Duplicate Options dialog box, then click OK.
  7. Begin or schedule the restore. Once the job begins, if you see a pop-up message about the database state, ensure that the standby database is in NOMOUNT mode then click Yes to continue.
  8. Verify that the restore completed successfully and that the database is restored to the destination host. If you selected the Recover option verify that the database is consistent.

Create a Standby Database on the Same Host with the Instance Configured

The following procedure describes the steps involved in creating a standby database on the same host with the instance configured.

Before You Begin

For Oracle 10g, ensure that you set the Standby Role Initialization parameter, DB_FILE_NAME_CONVERT,to add all the temp data files from the primary database location to the standby database location, as follows:

DB_FILE_NAME_CONVERT='<primary_database_temp_datafile_old _location>','<standby_database_temp_datafile_new_location>'

If this parameter is not set, restore will fail with the following error message:

temporary file TEMP01.DBF conflicts with file used by target database

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To create a standby database on the same host with the instance configured:

  1. From the CommCell Console, right-click the source host instance then select All Tasks -> Restore.
  2. From the Oracle Restore Options (General) dialog box, select the Duplicate DB checkbox and enter the Catalog Connect string, then click Advanced.
  3. Click the Duplicate DB Options tab, select the Duplicate For Standby option then enter the Oracle System Identifier for the standby database in the Oracle SID field. Optionally, you may configure any of the following options as desired:
  4. Click the Recover tab, then select the appropriate recover option.
  5. Click the Redirect tab, then choose one of the following and click OK:
  6. Select any other applicable options in the Oracle Duplicate Options dialog box, then click OK.
  7. Begin or schedule the restore. Once the job begins, if you see a pop-up message about the database state, ensure that the standby database is in NOMOUNT mode then click Yes to continue.
  8. Verify that the restore completed successfully and that the database is restored to the destination host. If you selected the Recover option verify that the database is consistent.

Back to Top