【RMAN】RMAN-05001: auxiliary filename conflicts with the target database
2017-06-28 18:24
323 查看
oracle 11.2.0.4 运行以下脚本,使用活动数据库复制技术创建dataguard备库报错rman-005001:
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'
;
}
报错信息如下:
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/oracle/oradata/dbking/undotbs01.dbf conflicts with a file used by the target database
RMAN-05001: auxiliary file name /u01/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
原因:如果在RMAN恢复时不指定 nofilenamecheck 参数,则在数据文件相同文件名恢复时会出现RMAN-005001错误,当主库,备库的数据库文件目录是一样的时候,必须使用 nofilenamecheck参数告诉rman主库和被创建的备份库拥有一样的文件目录和文件名。
修改脚本如下,再次尝试创建备库成功:
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'
;
}
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'
;
}
报错信息如下:
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/oracle/oradata/dbking/undotbs01.dbf conflicts with a file used by the target database
RMAN-05001: auxiliary file name /u01/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
原因:如果在RMAN恢复时不指定 nofilenamecheck 参数,则在数据文件相同文件名恢复时会出现RMAN-005001错误,当主库,备库的数据库文件目录是一样的时候,必须使用 nofilenamecheck参数告诉rman主库和被创建的备份库拥有一样的文件目录和文件名。
修改脚本如下,再次尝试创建备库成功:
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
- RMAN-05537: DUPLICATE without TARGET connection when auxiliary instance is started with spfile canno
- ORA-16714: the value of property ArchiveLagTarget is inconsistent with the database setting
- 181 You performed the RMAN database backup with the KEEP option. Which two statements are true about
- RMAN-06217: not connected to auxiliary database with a net service name
- How to identify all the Corrupted Objects in the Database reported with RMAN
- RMAN-06217: not connected to auxiliary database with a net service name
- Hololens错误提示:can't be loaded because it was not built with the right version or build target.
- SPRING IN ACTION 第4版笔记-第十章Hitting the database with spring and jdbc-002-本章的源代码
- DNS Configuration for the SCAN used with Oracle RAC Database 11g Release 2
- The processing instruction must begin with the name of the target.
- windows phone:Using the SQLite database engine with Windows Phone 8 apps
- how to use a SQLite database in a standalone program with an HTML interface and VBScript as the programming language
- MyEclipse中连接mysql数据库提示error while performing database login with the testMySQL driver check your url
- How to create physical standby database with 11g RMAN DUPLICATE FROM ACTIVE DATABASE [ID 747250.1]
- 82.You are managing an Oracle Database 11g database with the following backup strategy: 1) On Sunday
- RMAN-04006: error from auxiliary database
- How to identify all the Corrupted Objects in the Database reported by RMAN
- 记一次Trouble Shooting的过程: LNK1112: module machine type 'x64' conflicts with target module type 'X86'