Clone The Database

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

CLONE THE DATABASE

This is use for R & D purpose. Clone means we have to create the identical copy
from existing database. So first we have to select which database we want to
clone.

• Before do the cloning we have to startup the existing database.

• In sql > ALTER DATABASE BACKUP CONTROLFILE TO TRACE


This command will generate the trace file in user_dump_dest.

• After that shutdown the database.

• Check the trace file in $ORACLE_BASE/admin/sidname/user_dump_dest.

• In user_dump_dest, we have to copy and put it ‘Create controlfile’ script


in a separate file. As well as there have a ‘TEMP’ script, this is also put in
a file.
(in this script, we have two options, one is ‘SET’ and next one is ‘REUSE’)

• We have to create the user_demp_dest,background_dump_dest,and


core_demp_dest under admin/newsidname.

• Create the newparameter file in $ORACLE_HOME/dbs.

• Create the newsidname in oradata.

• Copy the DBF,LOG and CONTROLFILES from existing


$ORACLE_BASE/oradata to new oradata.

• Configure the new sidname in envfile.

• Startup the database in nomountstage.

• Run the controlfile script in sql>

• Next ALTER DATABASE OPEN RESET LOGS in mountstage.

• After that run the tempfile script.

• Check the sid whether cloning is succeed or not.

You might also like