MRP0: Background Managed Standby Recovery process started (newccs) Managed Standby Recovery not using Real Time Apply Datafile 1 (ckpscn 11616999957302) is orphaned on incarnation#=2 MRP0: Background Media Recovery terminated with error 19909 Tue Mar 17 14:48:41 2015 Errors in file /u01/admin/newccs/bdump/newccs_mrp0_50208.trc: ORA-19909: datafile 1 belongs to an orphan incarnation ORA-01110: data file 1: '/u01/oradata/newccs/system01.dbf' Tue Mar 17 14:48:41 2015 Errors in file /u01/admin/newccs/bdump/newccs_mrp0_50208.trc: ORA-19909: datafile 1 belongs to an orphan incarnation ORA-01110: data file 1: '/u01/oradata/newccs/system01.dbf' Tue Mar 17 14:48:41 2015 MRP0: Background Media Recovery process shutdown (newccs)
今天数据库主库服务器挂了,重启主库切换为备库,最初执命令时,提示控制文件为备库控制文件
Tue Mar 17 14:36:14 2015 ORA-1665 signalled during: alter database recover managed standby database disconnect from session...
根据错误描述:
[oracle@SH-SRV-APPDB:/dba/app/oracle/product/10204]$oerr ora 1665 01665, 00000, "control file is not a standby control file" // *Cause: Attempting to mount, recover or activate a standby database // without a standby control file. // *Action: Create a standby control file before attempting to use the database // as a standby database.
创建备库用的控制文件,并替换。
alter database create standby controlfile as '/u01/temp/control01.ctl'
恢复主备
startup nomount alter database mount standby database; alter database recover managed standby database disconnect from session;
结果出现上面的报错,MRP进程也没有启用。解决方式如下:
RMAN> list incarnation of database; RMAN> reset database to incarnation 2 告警里已经提示了DATAFILE1的检查点在incarnation#=2。所以恢复数据库到2号角色。
恢复后重启数据库到mount,恢复MRP。