You are on page 1of 7

RMAN BACKUP BASED CLONING ON SAME SERVER

HOSTNAME : ps2.xpertdba.com

IP : 172.25.254.172

Database Name: hp

Clone DB Name: hpclone

1.Check your database is in Archive log Mode or not .Most of the time you find it enabled in production
database. Also check FRA is set for your database. If it is not enabled then enable it and set FRA.

2.Connect to RMAN and Take Full Database backup including archive log.

Mohammad Ahmed xpertdba.com Page 1


4.Now Create necessary directories where you want to keep your new database files.

we need to create directory in oradata for keeping all physical files for clone database. And directory to
keep pfile for clone database in admin directory. and for audit also

5.Now Create Pfile for clone database. We will create it from the copy of hp database. And make
changes in that file.

6.Now modify following parameters in pfile of clone database.

• db_name
• control_files
• audit_file
• audi_trail

Add below two parameter to convert a path for datafile and logfile for clone database
• db_file_name_convert
• lof_file_name_convert

for your reference i am adding both databases pfile. Compare both the pfile’s for better
understanding.

Mohammad Ahmed xpertdba.com Page 2


HP database Pfile:

HPCLONE database Pfile:

Mohammad Ahmed xpertdba.com Page 3


7.Now Create an instance for clone database. And take your clone database to nomount stage.

8. Configure listener for hpclone database. and start/reload the listener.

Mohammad Ahmed xpertdba.com Page 4


NOTE: Make sure your lsnrctl status for hpclone database is not BLOCKED.if status is showing
BLOCKED then stop the listener and restart it again.

Now configure the tnsnames.ora file on the same machine as we are cloning on the same machine.

now test the connection with tnsping.

9. Now create password file for hp database and make copy for hpclone database.

10. now we connect to target (hp) database and from there we will connect to auxiliary database
(hpclone). Please Verify it when you connect to database. please focus on the red mark. Auxiliary
database status should display the status not mounted.

Mohammad Ahmed xpertdba.com Page 5


11.Now we Will start the process by firing the command. If everything is fine then it will take your
database to open stage from nomount and also create all physical files for hpclone database.

12. Verify it by connecting to clone database that your clone database is up running.

Mohammad Ahmed xpertdba.com Page 6


Thanks And Regards.

Mohammad Ahmed

www.xpertdba.com

ahmed_mad200@yahoo.com

Mohammad Ahmed xpertdba.com Page 7

You might also like