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

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 410|回复: 0
打印 上一主题 下一主题

[Oracle] 报告ORA-19906: recovery target incarnation ch...

[复制链接]
跳转到指定楼层
楼主
发表于 2024-6-30 16:21:20 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
RMAN对进行数据库改名恢复的时候,报告ORA-19906: recovery target incarnation changed during recovery

问题描述

q1ebsdb.imc.com | TEST | /home/oratest > sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Fri Jan 3 22:10:48 2014

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

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


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

q1ebsdb.imc.com | TEST | /backup > sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Sat Jan 4 00:02:46 2014

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

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空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-24 22:12 , Processed in 0.126802 second(s), 20 queries .

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

© 2001-2020

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