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.
If you are restoring from a lower version of Oracle to a higher version, use the STARTUP UPGRADE command. After STARTUP UPGRADE, refer to the Oracle documentation for detailed instructions.
Before You Begin
-
Obtain a password to connect to the source database.
-
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.
-
You must use the same SYSDBA password on the source database and the duplicate database instance.
-
If the duplicate database instance is on the local host, provide a net service name to connect RMAN to the duplicate database instance.
-
On the destination host, add an instance on the CommCell Console.
-
Optional: To mask the data, create a masking policy. For more information, see Managing Oracle Data-Masking Policies.
Procedure
-
From the CommCell Browser, go to Client Computers > client > Oracle.
-
Right-click the instance, then go to All Tasks > Browse and Restore.
The Browse and Restore Options dialog box appears.
-
Select Latest Backup, and then click the View Content button.
-
Select the database, and then click the Recover All Selected button.
The Oracle Restore Options dialog box appears.
-
Click RMAN Duplicate DB, and then click Next.
The Oracle RMAN Duplicate DB Options dialog box appears.
-
To obtain the latest database status, click Refresh.
-
In the Duplicate To box select the destination instance.
-
Select Duplicate To.
-
To skip the read-only tables, select the Skip Read Only check box.
-
To open the database in restricted mode, select the Open Restricted check box.
-
In the Pfile box, type the name of the startup parameter file for the duplicate database, or browse to the location.
-
-
Select the Duplicate from Active Database check box.
-
Click Advanced.
The Oracle Duplicate Options dialog box appears.
-
Optional: Have the Commvault software mask the data on the destination.
-
On the General tab, select the Mask Sensitive Data check box.
-
From the Data Masking Policy list, select the policy to mask the data.
-
-
On the Copy Precedence tab, select the Restore from Copy Precedence check box and enter a copy precedence number.
-
Optional: If 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:-
To redirect all data files, select Redirect All Table Spaces/Database to and type the path or Browse to it.
-
Alternatively, click the Redirect checkbox and select individual table spaces and type the path in the New Path box or Browse to it.
-
To redirect multiple table spaces simultaneously, click Find & Replace and replace the existing path with the new path.
-
-
To redirect temporary tablespaces, select Redirect Temp Table Spaces To and type the path or Browse to it.
-
-
Optional: If you want to create online redo logs for the duplicate database, on the Duplicate DB Options tab, select Duplicate to Log File.
-
Select the Group option to use and specify redo log files by using group members and click Add, or the File option to specify redo log files by using a file, and click Add.
-
If you selected the File option, in the Spec Dialog for Oracle Redo Log File box:
-
Type the redo log file name or browse to the location.
-
In the Size box, type the size of the online redo log file.
-
In the SizeSpec list, select the size specification of the file.
-
To allow the database to reuse an existing file, select the Reuse check box.
-
-
If you selected the Group option, in the Spec Dialog for Oracle Redo Log Group box:
-
In the Size box, type the size of the online redo log file.
-
In the SizeSpec list, select the size specification of the file.
-
To allow the database to reuse an existing file, select the Reuse check box.
-
-
-
Click OK to close the Oracle Duplicate Options dialog box.
The Oracle RMAN Duplicate DB Options dialog box appears.
-
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.
-
Click OK to start the restore.