Dataguard ORA-19909 ORA-01110
在创建ORACLE 10G Dataguard时,报错:
Datafile 1 (ckpscn 24967685451) is orphaned on incarnation#=6
MRP0: Background Media Recovery terminated with error 19909
Tue Jul 2 17:01:01 2013
Errors in file /app/oracle/admin/BEIACCE/bdump/beiacce1_mrp0_626.trc:
ORA-19909: datafile 1 belongs to an orphan incarnation
ORA-01110: data file 1: '+DATA_DG01/beiacce/system01.dbf'
这个报错是由incarnation引起的。
检查主备库incarnation信息
主库:
ofs00biiacc002>rman target /
Recovery Manager: Release 10.2.0.3.0 - Production on Tue Jul 2 17:04:41 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: BEICENP (DBID=856256703)
RMAN> list incarnation;
using target database control file instead of recovery catalog
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1 1 BEICENP 856256703 PARENT 1 08-JAN-08
2 2 BEICENP 856256703 PARENT 546465844 21-APR-08
3 3 BEICENP 856256703 PARENT 814736381 27-MAY-08
4 4 BEICENP 856256703 PARENT 1052626105 02-JUL-08
5 5 BEICENP 856256703 PARENT 13181993990 09-MAR-11
6 6 BEICENP 856256703 CURRENT 20577771571 03-JUL-12备库:
ofs0accprc01>rman target /
Recovery Manager: Release 10.2.0.4.0 - Production on Tue Jul 2 17:07:06 2013
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: BEICENP (DBID=856256703, not open)
RMAN> list incarnation;
using target database control file instead of recovery catalog
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1 1 BEICENP 856256703 PARENT 1 08-JAN-08
2 2 BEICENP 856256703 PARENT 546465844 21-APR-08
3 3 BEICENP 856256703 PARENT 814736381 27-MAY-08
4 4 BEICENP 856256703 PARENT 1052626105 02-JUL-08
5 5 BEICENP 856256703 PARENT 13181993990 09-MAR-11
6 6 BEICENP 856256703 PARENT 20577771571 03-JUL-12
7 7 BEICENP 856256703 CURRENT 22750858691 13-DEC-12从输出信息可以看出主备库的current incarnation不一致。
reset备库incarnation
RMAN> reset database to incarnation 6;
database reset to incarnation 6
reset备库的incarnation后,Dataguard恢复正常。