记录一次Failover后修复DG同步问题

需要用到的技术:incarnation  reinstated

 

DGMGRL> reinstate database zhztpri
Reinstating database "zhztpri", please wait...
Error: ORA-16653: failed to reinstate database

Failed.
Reinstatement of database "zhztpri" failed
DGMGRL> enable database zhztpri
Error: ORA-16661: the standby database needs to be reinstated

Failed.

DGMGRL> show configuration

Configuration - zwyw

  Protection Mode: MaxPerformance
  Databases:
    zhztstb - Primary database
    zhztpri - Physical standby database (disabled)
      ORA-16661: the standby database needs to be reinstated

Fast-Start Failover: DISABLED

Configuration Status:
SUCCESS

DGMGRL> reinstate database zhztpri
Reinstating database "zhztpri", please wait...
Reinstatement of database "zhztpri" succeeded

 

RMAN> list incarnation of database;


List of Database Incarnations
DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1       1       ZWYWDB   1299176841       PARENT  1          24-AUG-13
2       2       ZWYWDB   1299176841       PARENT  925702     22-JAN-18
3       3       ZWYWDB   1299176841       PARENT  16071537874549 15-SEP-18
4       4       ZWYWDB   1299176841       CURRENT 16221023157093 07-DEC-18

RMAN> reset database to incarnation 3;

RMAN> list incarnation;


List of Database Incarnations
DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1       1       ZWYWDB   1299176841       PARENT  1          24-AUG-13
2       2       ZWYWDB   1299176841       PARENT  925702     22-JAN-18
3       3       ZWYWDB   1299176841       CURRENT 16071537874549 15-SEP-18
4       4       ZWYWDB   1299176841       ORPHAN  16221023157093 07-DEC-18

RMAN> reset database to incarnation 4;

database reset to incarnation 4

RMAN> list incarnation;


List of Database Incarnations
DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1       1       ZWYWDB   1299176841       PARENT  1          24-AUG-13
2       2       ZWYWDB   1299176841       PARENT  925702     22-JAN-18
3       3       ZWYWDB   1299176841       PARENT  16071537874549 15-SEP-18
4       4       ZWYWDB   1299176841       CURRENT 16221023157093 07-DEC-18
 

 

Errors in file /u01/app/oracle/diag/rdbms/zhztpri/zwywdb/trace/zwywdb_ora_9017.trc:
ORA-19909: datafile 1 belongs to an orphan incarnation
ORA-01110: data file 1: '/u01/app/oracle/oradata/zwywdb/system01.dbf'

 

 

 

Errors in file /u01/app/oracle/diag/rdbms/zhztpri/zwywdb/trace/zwywdb_pr00_10742.trc:
ORA-19906: recovery target incarnation changed during recovery

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值