ORA-19909: datafile 1 belongs to an orphan incarnation 一例

当尝试恢复数据库时遇到ORA-19909错误,原因是数据库的主备角色切换后未正确重置控制文件。通过检查数据库的不同时期(incarnation)并执行reset database to incarnation命令,可以解决这个问题。操作包括列出数据库的化身、将数据库重置到正确的化身、重新执行恢复操作,最终成功打开并重置日志。
摘要由CSDN通过智能技术生成

ORA-19909: datafile 1 belongs to an orphan incarnation

 

SQL> startup mount;

ORACLE instance started.

 

Total System Global Area 6847938560 bytes

Fixed Size                  2219808 bytes

Variable Size            3539992800 bytes

Database Buffers         3288334336 bytes

Redo Buffers               17391616 bytes

Database mounted.

 

SQL> recover database using backup controlfile;

ORA-00283: recovery session canceled due to errors

ORA-19909: datafile 1 belongs to an orphan incarnation

ORA-01110: data file 1: '/u01/app/oracle/oradata/orcl/system01.dbf'

 

 

Cause & Background information 

 

The standby database has been activated previously but since then reverted back into its standby role. Prior to the RMAN duplicate operation the "alter system reset control_files scope=spfile sid='*';" has not been executed (i.e. the control files have not been overwritten). 

Analysis 

 

Primary and standby have different incarnations: 

 

在我的实验中,实验数据库是利用RMAN duplicate 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值