You are on page 1of 1

Cloning a Oracle database using RMAN

Assumptions:
The source database is PROD
The target database (duplicate DB to be created) is DUP
The catalog database is CATDB
The source DB is in ARCHIVELOG mode
The latest RMAN backup for the source DB is available.
The following steps will clone the source database PROD to duplicate database DU
P using the RMAN through catalog database CATDB
1.0 Prepare the password file for the DUP database.
Under the $ORALE_HOME/dbs directory, create the password file as:
$ orapwd file=$ORACLE_HOME/dbs/orapw<duplicateDB_SID>.ora
password=<Password_for_sys> entries=<number>
Example:
$ orapwd file=/app/oracle/product/10.2.0/db/dbs/orapwDUP.ora password=oracle ent
ries=10
2.0 Make the entries for the database DUP in listener.ora and tnsnames.ora f
ile
# added to the listener.ora SID_LIST
(SID_DESC =
(ORACLE_HOME = /u01/app/oracle/product/9.2.0.1.0)
(SID_NAME = DUP)
)
# added to the tnsnames.ora
DUP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = server1.tshcomputing.com)(PORT = 1521))
)
(CONNECT_DATA =
(ORACLE_SID = DUP)
)
)

You might also like