码迷,mamicode.com
首页 > 移动开发 > 详细

DG duplicate报错:RMAN-05001:auxiliary file name /u01/app/oracle/oradata/fratbs01.dbf conflicts with a file used by the target database

时间:2019-11-20 23:22:10      阅读:113      评论:0      收藏:0      [点我收藏+]

标签:name   ini   immediate   oracl   参数   target   shu   rod   报错   

问题:rman duplicate时报错:

RMAN-05001:auxiliary file name /u01/app/oracle/oradata/fratbs01.dbf conflicts with a file used by the target database

 

分析:应该是主库的这个数据文件位置没有在参数里面做转换

 

解决:

1)更改参数DB_FILE_NAME_CONVERT

查看原来参数配置:(vi initSBDB1.dbf)

DB_FILE_NAME_CONVERT=‘SBDB1‘,‘PROD1‘      (默认所有的主备库路径

把报错数据文件文件转换加入DB_FILE_NAME_CONVERT

更改为:DB_FILE_NAME_CONVERT=‘SBDB1‘,‘PROD1‘,‘/u01/app/oracle/oradata‘,‘/u01/app/oracle/oradata/SBDB1‘

2)把备库关闭,创建spfile文件,重启到nomount状态

shu immediate;                      create spfile from pfile;          startup nomount;

3)主库重新执行duplicate命令,成功

rman target / auxiliary sys/oracle@sbdb1

duplicate target database for standby from active database;

 

DG duplicate报错:RMAN-05001:auxiliary file name /u01/app/oracle/oradata/fratbs01.dbf conflicts with a file used by the target database

标签:name   ini   immediate   oracl   参数   target   shu   rod   报错   

原文地址:https://www.cnblogs.com/gw666/p/11901708.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!