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 


 

 

 


 

 

 
 

RMAN - cloning on a Remote Host

Expert Oracle Database Tips by Donald BurlesonMarch 25, 2015

RMAN - Creating a Duplicate Database on a Remote Host

There are mainly three ways for creating duplicate databases on the remote host with different directory structure:

1.      Making changes to the initialization parameter

2.      Using the set newname command with the duplicate command

3.      Using the configure auxname command before running the duplicate command

Now each of these methods will be demonstrated with real examples.

Duplicating Database to the Remote Host with Different Directory Structure

In this example, by making changes to the initialization parameter file of the auxiliary instance, RMAN is made to 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.
  • log_file_name_convert parameter changes location of redo log files of the production database to a different location on the auxiliary database.

Note: Make sure the directories, which are different than the production database, on the auxiliary server should be created manually, i.e. new locations on the auxiliary server must be created manually.

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 the duplicate command is run 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

Creating Duplicate Database with Different Directory Structure

In the previous example, the creation of database files at a different location in the auxiliary server was accomplished by making changes to the parameter file. However, this is not the only way to achieve it. It can be performed directly from RMAN as follows:

  1. Use db_file_name_convert and logfile parameters in the duplicate database command.

  2. Use the set newname command to change location of files of the auxiliary database directly from RMAN.

The first way will be explained under this subtopic.  The second way will be shown on the next duplicating database on a local host? subtopic.  To use the first solution, perform all the steps which were mentioned in the beginning of this chapter until the duplicate command. Change the duplicate command and make it as follows:

RMAN> duplicate target database to clone_db

db_file_name_convert=('/u01/oradata/test/','/
u03/oradata/new_database/')

LOGFILE '/u03/oradata/new_database/redo01.log' size 5m,
'/u03/oradata /new_database/redo02.log' size 5m,'/u03/oradata new_database/redo03.log' size 5m;

While running this command, all files will be created on the /u03/oradata /new_database directory.

 

 

 
 
 
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 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster