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

 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
 Oracle Support

 SQL Tuning

 Oracle UNIX
 Oracle Linux
 Remote s
 Remote plans
 Application Server

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

 Remote S


 Consulting Staff
 Consulting Prices
 Help Wanted!


 Oracle Posters
 Oracle Books

 Oracle Scripts

Don Burleson Blog 







Using RMAN to rename datafiles

Expert Oracle Database Tips by Donald BurlesonSeptember 28, 2015

Using CONFIGURE AUXNAME configuration to rename datafiles

It's possible to specify the location of database files of a duplicated database directly from RMAN configuration. By doing so, RMAN will keep these configuration changes and we'll not need to specify them in the future.

To clear the AUXNAME from the default CONFIGURE settings, issue the following command at the RMAN command:

RMAN> configure auxname for datafile <data file number> clear;

Now, perform all steps above till the run block and add the following steps:

  • Make changes to RMAN configuration default settings and configure AUXNAME parameter for each data file.

    • Connect to RMAN and perform the following configuration changes

    CONFIGURE AUXNAME FOR DATAFILE 1 TO '/u03/oracle/clone_db/system01.dbf';

    CONFIGURE AUXNAME FOR DATAFILE 2 TO '/u03/oracle/clone_db/undotbs01.dbf';

    CONFIGURE AUXNAME FOR DATAFILE 3 TO '/u03/oracle/clone_db/sysaux01.dbf';



    Above, we've configured RMAN so that it will change the location of each file specified

  • Run the following block to duplicate the database in the same host

  • Even though, we use AUXNAME for data files, the CONFIGURE AUXNAME can't be used for temp files and redo log files. Thus, for temp files we have to use SET NEWNAME clause and for redo log files we have to use LOGFILE clause.

    RUN {

    SET NEWNAME FOR TEMPFILE 1 TO '/u03/oracle/clone_db/temp01.dbf';



    '/u03/oracle/clone_db/redolog01.log' SIZE 5M, '/u03/oracle/clone_db/redolog02.log' SIZE 5M, '/u03/oracle/clone_db/redolog03.log' SIZE 5M;


    After fulfilling all steps, we get new database on the same host. If we check RMAN configuration for any changes, we'll see that RMAN keeps AUXNAME configuration for each file in its configuration. As it has already been mentioned we'll not need any pre configuration to change file names because all changes reside at RMAN configuration


    RMAN configuration parameters are:

    CONFIGURE AUXNAME FOR DATAFILE '/u02/oradata/test/system01.dbf' TO '/u03/oracle/clone_db/system01.dbf';

    CONFIGURE AUXNAME FOR DATAFILE '/u02/oradata/test/undotbs01.dbf' TO '/u03/oracle/clone_db/undotbs01.dbf';

    CONFIGURE AUXNAME FOR DATAFILE '/u02/oradata/test/sysaux01.dbf' TO '/u03/oracle/clone_db/sysaux01.dbf';

    CONFIGURE AUXNAME FOR DATAFILE '/u02/oradata/test/users01.dbf' TO '/u03/oracle/clone_db/users01.dbf';


    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