You are on page 1of 1

4.

0 Create the file structure (directories) as per the new locations specifi
ed in the init.ora file
Example:
$ mkdir /app/oracle/admin/cdump
$ mkdir /app/oracle/admin/udump
$ mkdir /app/oracle/admin/udump
5.0 Set the new SID as the environment variable
export ORACLE_SID=<duplicateDB_SID>
Example:
$ export ORACLE_SID=DUP
6.0 Create the spfile from the pfile for the new duplicate database (DUP)
$ sqlplus /as sysdba
SQL> create spfile from pfile=location for init<duplicated_SID>.ora
Example:
$ sqlplus /as sysdba
SQL> create spfile from pfile=/app/oracle/product/10.2.0/db/dbs/initDUP.ora;
7.0 Startup the duplicate database (DUP) in NOMOUNT state
SQL> startup force nomount;
8.0 Connect to RMAN using target, catalog and auxiliary command
$ rman target username/pwd@<sourceDB_SID>
RMAN> connect catalog username/pwd@<catalogDB_SID>
RMAN>connect auxiliary username/password@<duplicateDB_SID>
Example:
$ rman target sys/oracle@PROD
RMAN> connect catalog catalog_owner/oracle@CATDB
RMAN>connect auxiliary sys/oracle@DUP
Note: The password for <duplicateDB_SID> is the one that was specified in the pa
ssword file in step 1.
9.0 Issue the DUPLICATE command to create the clone DB
RMAN> DUPLICATE TARGET DATABASE TO <duplicateDB_SID>
Example:
RMAN> DUPLICATE TARGET DATABASE TO DUP
The new duplicate database will be created and opened in READ_WRITE mode.

You might also like