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.
\u2022
Before do the cloning we have to startup the existing database.
\u2022
In sql > ALTER DATABASE BACKUP CONTROLFILE TO TRACE
This command will generate the trace file in user_dump_dest.
\u2022
After that shutdown the database.
\u2022
Check the trace file in $ORACLE_BASE/admin/SID/user_dump_dest.
\u2022
In user_dump_dest, we have to copy and put it \u2018Create controlfile\u2019 script in
a separate file. As well as there have a \u2018TEMP\u2019 script; this is also put in a
file.
(In this script, we have two options, one is \u2018SET\u2019 and next one is \u2018REUSE\u2019)
\u2022
We have to create the user_dump_dest, background_dump_dest, and
core_dump_dest under admin/newsidname.
\u2022
Create the newparameter file in $ORACLE_HOME/dbs.
\u2022
Create the newsidname in oradata.
\u2022
Copy the DBF, LOG and CONTROLFILES from existing
$ORACLE_BASE/oradata to new oradata.
\u2022
Configure the new sidname in envfile.
\u2022
Startup the database in nomountstage.
\u2022
Run the controlfile script in sql> Database will be mounted.
\u2022
Next ALTER DATABASE OPEN RESET LOGS in mountstage.
\u2022
Issue the resetlogs.
\u2022
After that run the tempfile script.
Leave a Comment