Database Duplication from Recovery Appliance
If you need to duplicate a protected database to create a standby database or to clone a protected database to a target host, you can do so by connecting to the Recovery Appliance catalog and using backup-based duplication. By using the catalog, there is no need to connect to the source database. Creating a standby database or a clone both involve running the RMAN DUPLICATE
command.
Note:
DUPLICATE
is the recommended method to create a clone database for standby database, development, or testing purposes, because a new DBID
is created for the clone database.
If the protected database must be restored to a new host following the RMAN
restore and recover to a new host procedure that keeps the same DBID
, you must disconnect from the catalog before performing OPEN RESETLOGS
or use SQL Plus to open the database.
See Also:
-
Oracle Database Backup and Recovery User's Guide for additional information about duplicating databases
-
Oracle Database Backup and Recovery Reference for the syntax of the
DUPLICATE
command
Creating a Standby Database for a Protected Database
When you create a standby database from Recovery Appliance, you connect to the standby (auxiliary instance) and to the Recovery Appliance catalog, and run the RMAN DUPLICATE
command with the FOR STANDBY
option.
Note:
Because the primary database is already registered with the Recovery Appliance catalog, you should not register the standby database with the Recovery Appliance catalog.To create a standby database for a protected database:
Cloning a Protected Database
The example that follows represents the Oracle best practice for cloning a protected database and includes a sample script that you can customize for your scenario.
-
backups of the target database exist on the Recovery Appliance and are available to the auxiliary instance
-
RMAN connection from the auxiliary database to the Recovery Appliance that contains metadata and backups for the target database is available
-
both source and duplicate database use Oracle Managed Files (OMF)
-
operating system used is Linux or UNIX
-
the audit directory is created on the auxiliary database host
-
prerequisites for backup-based duplication are met
-
drops an existing auxiliary database
-
backs up the target database
-
creates a dummy auxiliary instance and opens it in
NOMOUNT
mode -
duplicates the target database using the target database backups and metadata available on the Recovery Appliance
The duplicate database control file is stored as
+REDO/
ORACLE_SID
/CONTROLFILE/cf3.ctl
and the data files are stored in the+DATA
directory. -
verifies that the required objects are created in the duplicate database
To clone a protected database using backup-based duplication without a target connection: