Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 


 
 

Creating a Duplicate Database on a Remote host with a different directory structure

Expert Oracle Database Tips by Donald BurlesonSeptember 24, 2015



Also see Cloning a database with RMAN  

There are three main ways to create a duplicate database on the remote host with a different directory structure:

  • Making changes to the initialization parameter

  • Using SET NEWNAME command with DUPLICATE command

  • Using CONFIGURE AUXNAME command before running DUPLICATE command

In this example by making changes to the initialization parameter file of the auxiliary instance we make RMAN create all Control Files, Redo Log files and Data Files on the different directory.

In this process, all steps will be the same as they were in the previous example. Except two parameters which will be added to the initialization parameter file such as DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT.

DB_FILE_NAME_CONVERT parameter changes location of datafiles of the production database to a different location on the auxiliary database.

Note: The directories which are different from the production database on the auxiliary server are created manually. New locations on Auxiliary server must be created manually.

LOG_FILE_NAME_CONVERT parameter changes location of redo log files of the production database to a different location on the auxiliary database

At the end, the parameter file will be as  follows:

*.compatible='10.2.0.1.0'

*.control_files='/u03/oracle/new_database/control01.ctl','/u03/oracle/new_database/control02.ctl',

'/u03/oracle/new_database/control03.ctl'

*.db_file_name_convert='/u01/oradata/test/','/u03/oracle/new_database/'

*.log_file_name_convert='/u01/oradata/test/','/u03/oracle/new_database/'

*.db_block_size=8192

*.db_name='test'

*.sga_target=285212672

Now, if we run DUPLICATE COMMAND as in the previous example, all database files will be created on the /u03/oracle/new_database directory. It can be seen by querying the following views on the auxiliary database.

sys@TEST>SELECT name FROM v$datafile;

NAME

--------------------------------------------------

/u03/oracle/new_database/system01.dbf

/u03/oracle/new_database/undotbs01.dbf

/u03/oracle/new_database/sysaux01.dbf

/u03/oracle/new_database/users01.dbf

 

sys@TEST>SELECT member FROM v$logfile;

MEMBER

-------------------------------------------------

/u03/oracle/new_database/redo03.log

/u03/oracle/new_database/redo02.log

/u03/oracle/new_database/redo01.log

 

sys@TEST>SELECT name FROM v$controlfile;

NAME

-----------------------------------------

/u03/oracle/new_database/control01.ctl

/u03/oracle/new_database/control02.ctl

/u03/oracle/new_database/control03.ctl

 
 
 
Get the Complete
Oracle Backup & Recovery Details 

The landmark book "Oracle Backup & Recovery: Expert secrets for using RMAN and Data Pump " provides real world advice for resolving the most difficult Oracle performance and recovery issues. Buy it for 40% off directly from the publisher.
 


 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2017

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

Remote Emergency Support provided by Conversational

 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster