dataguard中出现gap后,采用基于scn的备份和恢复的方法进行恢复.
在恢复的过程中出现报错:
RMAN> recover database noredo;Starting recover at 05-FEB-20
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
using channel ORA_DISK_4
using channel ORA_DISK_5
using channel ORA_DISK_6
using channel ORA_DISK_7
using channel ORA_DISK_8
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 02/05/2020 12:12:28
RMAN-06094: datafile 71 must be restored
查询数据字典 发现这个数据文件为新增的数据文件,standby端还没有此数据文件,所以需要先将此datafile进restore,否则无法recover:
解决办法:
找到所有gap之后新增的数据文件,例如71-77号数据文件,先进行restore:
restore datafile 71;
restore datafile 72;
restore datafile 73;
restore datafile 74;
restore datafile 75;
restore datafile 76;
restore datafile 77;
然后再进行recover即可.
久违的太阳 发布了159 篇原创文章 · 获赞 31 · 访问量 30万+ 关注