TEST
Powered by Blogger.
Responsive Ad
Responsive Ad

Author Profile

About Me

Start Sharing

Start Sharing

Drive Traffic on Social Platforms

Blog Archive

Blog Journey

Blog Journey

Learn how to start a perfect Blog

Work Smart, Not Hard - Let's See

Make your Blogging experience faster and easiest …
Work Smart, Not Hard - Let's See
Design by - Blogger Templates | Distributed by Free Blogger Templates

Made with Love by

Material UI Template is Designed Theme for Giving Enhanced look Various Features are available Whic…

Random Posts

Ads Section

HOME > > Database Cloning to Same Host through Cold Backup

Database Cloning to Same Host through Cold Backup

Anup - Monday, 23 May 2011

Source database Details:

Host: SUN1
Database SID=PROD
Data file Mount Point = /DB/PROD

Target (Clone) Database Details:

Host: SUN1
Database SID=CLONE
Data file Mount Point: /DB/CLONE

Step 1 Create control file scripts on Primary instance.

SQL> alter database backup controlfile to trace;

Note: Above command will generate a cerate controlfile scripts in USER_DUMP_DISTINATION folder.

Step 2 Update create controle file scripts.

Step 3 If your Primary database using Spfile , then create pfile.

SQL> if your database is using spfile then create pfile from spfile.

Note: this Will generate initPROD.ora file

Step4 Rename initPROD.ora to initCLONE.ora file and update DB_NAME and CONTROL_FILE parameter.

Step 5 Set ORACLE_SID=CLONE on terminal and execute create controlfile script.

# export ORACLE_SID=CLONE
#sqlplus /nolog
SQL> conn / as sysdba
SQL>@

Step 6 open the database with resetlogs options

SQL> alter database open resetlogs;

Contact me

Get in Touch

Need to get touch with me? Please fill out the form with your enquiry.

Name
Anup Srivastav
Address
Lucknow - Utter Pradesh
Email
myindiandba@gmail.com
Message me