重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1868|回复: 2
打印 上一主题 下一主题

[备份恢复] ORA-19906: recovery target incarnation changed during recovery

[复制链接]
跳转到指定楼层
楼主
发表于 2023-9-8 11:51:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 jiawang 于 2023-9-10 16:21 编辑

问题现象:
TEST> recover database using backup controlfile;
ORA-00279: change 440517936 generated at 01/03/2014 20:05:55 needed for thread 1
ORA-00289: suggestion : /prod/oracle/fast_recovery_area/TEST/archivelog/2014_01_03/o1_mf_1_2154_%u_.arc
ORA-00280: change 440517936 for thread 1 is in sequence #2154


Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/backup/group_3.258.817172153
ORA-00283: recovery session canceled due to errors
ORA-19906: recovery target incarnation changed during recovery


解决方法

如果出现上面的情况,需要在RMAN中使用reset database to incarnation x;或者删除数据之前陈旧,用不到的那些归档等干扰因素。
RMAN> list incarnation;找到当前的incarnation
RMAN> reset database to incarnation x;

再次恢复
TEST> recover database using backup controlfile;
ORA-00279: change 440517936 generated at 01/03/2014 20:05:55 needed for thread 1
ORA-00289: suggestion : /prod/oracle/fast_recovery_area/TEST/archivelog/2014_01_04/o1_mf_1_2154_%u_.arc
ORA-00280: change 440517936 for thread 1 is in sequence #2154


Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/backup/group_3.258.817172153
ORA-00279: change 440517936 generated at 01/03/2014 12:54:07 needed for thread 2
ORA-00289: suggestion : /backup/thread_2_seq_1742.398.835905959
ORA-00280: change 440517936 for thread 2 is in sequence #1742


Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/backup/thread_2_seq_1742.398.835905959
ORA-00279: change 440517956 generated at 01/03/2014 20:05:58 needed for thread 2
ORA-00289: suggestion : /prod/oracle/fast_recovery_area/TEST/archivelog/2014_01_04/o1_mf_2_1743_%u_.arc
ORA-00280: change 440517956 for thread 2 is in sequence #1743
ORA-00278: log file '/backup/thread_2_seq_1742.398.835905959' no longer needed for this recovery


Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/backup/group_7.262.817172167
Log applied.
Media recovery complete.


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
发表于 2023-9-8 19:40:26 | 只看该作者
这个是MYSQL 吧 ,怎么发到ORACLE板块里面来了
回复 支持 反对

使用道具 举报

板凳
发表于 2023-9-8 19:41:10 | 只看该作者
标题和内容不符合吧
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-25 07:05 , Processed in 0.106088 second(s), 22 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表