V11 SP8
Loading...

Duplicating an Oracle Database from an Active Database without a Configured Instance

Create a duplicate database for testing, and demonstrations.

When you duplicate a database from an active database, no backup is required. The duplicate database is a copy of the current data on the target database.

A duplicate (auxiliary) database is a copy or a subset of the target database with a unique DBID. It is independent of the primary database, and can be registered in the same recovery catalog as the primary database.

Before You Begin

  1. Provide a password to connect to the source database.
  2. The source database must be in ARCHIVELOG mode if it is open. When the source database is in NOARCHIVELOG mode, perform a clean shut down and place it in MOUNT mode.
  3. If the auxiliary database instance is on the local host, provide a net service name to connect RMAN to the auxiliary database instance.
  4. The source database and the duplicate database instance must use the same SYSDBA password.
  5. Create an Auxiliary Instance for the duplicate database.
  6. Set the source and destination client install paths to the same value. For more information, see Setting the sNOSBTLIBNAME Additional Setting to Skip Passing SBT_LIBRARY to the Allocate Channel Command.
  7. Run the Ora_install.sh on the duplicate database client.
  8. Run the database readiness check on the auxiliary instance to verify that the instance is ready for backup and restore operations.

Procedure

  1. From the CommCell Browser, expand Client Computers > client > Oracle.
  2. Right-click the instance, point to All Tasks and then click Browse and Restore.
  3. Select Latest Backup and click View Content.
  4. Select the database and click Recover All Selected.
  5. On the Restore Options dialog box:
    1. Select the Duplicate DB check box.
    2. To get the latest database status, click Refresh.
    3. Click Advanced.

      The Oracle Duplicate Options dialog box appears.

  6. On the Duplicate tab:
    1. Select the Duplicate To check box.
    2. In the Database Name box, enter the name of duplicate database.
    3. In the Pfile box enter the name of startup parameter file for the duplicate database.
    4. To skip the read-only tables, select the Duplicate to Skip Read-Only check box.
    5. To open the database in restricted mode, select the Duplicate to Restricted check box.
  7. On the Duplicate DB Options tab select the Duplicate from Active Database check box.
  8. Optional: Select the duplication options.
    Expand All

    Disable filename validation

    By default, RMAN verifies the datafiles on the source and target database do not have the same names. This option enables the Oracle NOFILENAMECHECK option.

    Set this option when the source and target databases need to have the same names.

    On the Duplicate tab, select the No Filename Check check box.

    Exclude Oracle pluggable databases (PDBs) from the duplicate database

    On the Duplicate tab:

    Select the select the Duplicate To Skip PDB check box and then click Add.

    The PDB dialog box appears. Select the PDBs that you want to exclude and then click OK.

    Redirect the datafiles and tablespaces

    Use this option when you do not want to use the DB_FILE_NAME_CONVERT option to restore all the data and temp files to a different directory structure from the source database.

    On the Redirect tab, select the redirected data:

    1. To redirect all data files, select Redirect All Table Spaces/Database to and type the path.
    2. To redirect temp tablespaces, select Redirect Temp Table Spaces To and type the path.

      Alternatively, select individual table spaces and type the path in the New Path box.

      To redirect multiple table spaces simultaneously, click Find & Replace and provide to replace the existing path with the new path.

    Create online redo logs for the duplicate database

    Select the Group option to use and specify redo log files by using group members, or the File option to specify redo log files by using a file, and click Add.

    1. If you selected the File option, in the Spec Dialog for Oracle Redo Log File box, type the redo log file name.
    2. In the Size box, type the size of the online redo log file.
    3. In the SizeSpec list, select the size specifications of the file.
    4. To allow the database to reuse an existing file, select the Reuse check box.
  9. Optional: View or customize the RMAN script that is automatically generated from the selected options For more information, see Viewing Oracle Restore RMAN Scripts and Customizing Oracle Restore RMAN Scripts.
  10. Click OK to close the Oracle Duplicate Options dialog box.
  11. Click OK to close the Restore Options dialog box and start the restore.

What to Do Next