Wednesday, 17 July 2013

RMAN-00571 auxiliary file name xxx conflicts with a file used by the target database

While duplicating, RMAN was continuously  giving the error "RMAN-00571 auxiliary file name xxx conflicts tiwh a file used by the target database"


Here is what oerr utility has to say about the error

oerr RMAN 5001

5001, 1, "auxiliary file name %s conflicts with a file used by the target database"
// *Cause: RMAN is attempting to use the specified file name as a restore
//         destination in the auxiliary database, but this name is already
//         in use by the target database.
// *Action: Use the CONFIGURE AUXNAME command to specify a name for the data
//          file that does not conflict with a file name in use by the
//          target db.

 



The cause of the error was the database file name. Rman by default prevents the datafiles and online redo logs  to have the same name as target to avoid overwriting of original database files.

I was actually duplicating to a different host with same location as target database with the same file name so rman was not allowing to complete the duplicating.

see "NOFILENAMECHECK" at   DUPLICATE and nofilenamecheck option to have better understanding .

As i was doing it on different host i don't mind it using same filename as target so i used NOFILENAMECHECK option with the duplicate command and rman completed the duplication successfully.



ex:
run
{
duplicate database to dup
backup location '/u01/oracle/bkp/DUP/'
spfile

NOFILENAMECHECK;
}


Use this option with care, if you are on duplicating same host this will overwrite original database files.




No comments:

Post a Comment