RMAN-20201: datafile not found in the recovery catalog

oracle恢复报错如下:

Recovery Manager: Release 10.2.0.4.0 - Production on Fri Aug 28 14:31:31 2015
Copyright (c) 1982, 2007, Oracle.  All rights reserved.
RMAN>
RMAN>
connected to target database: EAS (DBID=1638119992, not open)
using target database control file instead of recovery catalog
RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24> 25> 26> 27>
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of set command at 08/28/2015 14:31:32
RMAN-20201: datafile not found in the recovery catalog
RMAN-06010: error while looking up datafile: /oradata/oradata/eas/EAS_D_CNFANTASIA_STANDARD03
RMAN>
Recovery Manager complete.

1. 此文件对应file#为12,list backup of datafile 12可以看到备份信息。
2. 将其文件进行异机同目录恢复没有问题

3. 将恢复脚本由

SET NEWNAME FOR DATAFILE '/oradata/oradata/eas/EAS_D_CNFANTASIA_STANDARD03' to '/orcl/ordata/EAS_D_CNFANTASIA_STANDARD03' 

改为

SET NEWNAME FOR DATAFILE 12 to '/orcl/ordata/EAS_D_CNFANTASIA_STANDARD03'

恢复正常。

感觉是oracle bug.

 

转载于:https://www.cnblogs.com/tmao/p/4766883.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值