Oracle 11.2.0.4 runs the following script to create a dataguard standby error rman-005001 using active database replication technology:
run{
Duplicate target Database
For standby
From active database
SPFile
Set Db_unique_name= ' DBKINGSTD '
Set Log_file_name_convert '/u01/app/oracle/oradata/dbking ', '/u01/app/oracle/oradata/dbking '
Set Db_file_name_convert '/u01/app/oracle/oradata/dbking ', '/u01/app/oracle/oradata/dbking '
Set control_files= '/u01/app/oracle/oradata/dbking/control.ctl '
Set log_archive_dest_2= ' Service=dbkingpri lgwr async valid_for= (online_logfiles,primary_role) db_unique_name= Dbkingpri '
Set fal_client= ' DBKINGSTD '
Set fal_server= ' Dbkingpri '
;
}
The error message is as follows:
rman-05538:warning:implicitly using Db_file_name_convert
RMAN-00571: ====================================== =====================
RMAN-00569: =============== ERROR MESSAGE STACK follows ===============
RMAN-00571: ===== ======================================================
Rman-03002:failure of Duplicate Db command at 06/28/2017 17:51:19
rman-05501:aborting Duplication of target database
Rman-05001:auxiliary file name/u01/app/oracle/ ORADATA/DBKING/USERS01.DBF conflicts with a file used by the target database
Rman-05001:auxiliary file name/u01/app/o RACLE/ORADATA/DBKING/UNDOTBS01.DBF conflicts with a file used by the target database
Rman-05001:auxiliary file name/u 01/APP/ORACLE/ORADATA/DBKING/SYSAUX01.DBF conflicts with a file used by the target database
Rman-05001:auxiliary file NAME/U01/APP/ORACLE/ORADATA/DBKING/SYSTEM01.DBF conflicts with a file used by the target database
Cause: If the Nofilenamecheck parameter is not specified during Rman recovery, a RMAN-005001 error occurs when the same file name of the data file is restored, and when the main library, the repository's database file directory is the same, you must use The Nofilenamecheck parameter tells the Rman Main library to have the same file directory and file name as the backup library being created.
Modify the script as follows and try again to create the repository successfully:
run{
Duplicate target Database
For standby Nofilenamecheck
From active database
SPFile
Set Db_unique_name= ' DBKINGSTD '
Set Log_file_name_convert '/u01/app/oracle/oradata/dbking ', '/u01/app/oracle/oradata/dbking '
Set Db_file_name_convert '/u01/app/oracle/oradata/dbking ', '/u01/app/oracle/oradata/dbking '
Set control_files= '/u01/app/oracle/oradata/dbking/control.ctl '
Set log_archive_dest_2= ' Service=dbkingpri lgwr async valid_for= (online_logfiles,primary_role) db_unique_name= Dbkingpri '
Set fal_client= ' DBKINGSTD '
Set fal_server= ' Dbkingpri '
;
}
RMAN rman-05001:auxiliary filename conflicts with the target database