您的位置:首页 > 其它

ORA-10458,ORA-01196,ORA-01110处理

2016-03-01 21:24 302 查看
事情起因:是因为主备dg机器要换新位置,运维直接关机搬服务器修改ip地址,系统起来后,备库启动报错.
ORA-10458: standby database requires recovery
ORA-01196: file 1 is inconsistent due to a failed media recovery session
ORA-01110: data file 1: '/u01/app/oracle/oradata/rong/system01.dbf'


原因:日志的scn跟控制文件不一致导致


处理步骤:
1:分别修改tns里对应主备的ip地址为新地址
2:主库可以正常启动,备库启动到mount状态,启动监听,tnsping测试互通
3:备库启用日志应用 
alter database recover managed standby database disconnect from session;


alert日志有如下应用日志的提示
Attempt to start background Managed Standby Recovery process (rong)
Tue Mar 01 15:14:56 2016
MRP0 started with pid=26, OS id=3933 
MRP0: Background Managed Standby Recovery process started (rong)
 started logmerger process
Tue Mar 01 15:15:01 2016
Managed Standby Recovery not using Real Time Apply
Parallel Media Recovery started with 24 slaves
Waiting for all non-current ORLs to be archived...
All non-current ORLs have been archived.
Media Recovery Log /u01/app/arch/1_137_899302231.dbf
Media Recovery Waiting for thread 1 sequence 138
Completed: alter database recover managed standby database disconnect from session
并会根据gap里差的日志一致应用到最新的归档


当看到 in transit字样说明已经到最新日志了
Media Recovery Log /u01/app/arch/1_142_899302231.dbf
Media Recovery Waiting for thread 1 sequence 143 (in transit)


4:停止应用日志
alter database recover managed standby database cancel


5:启动到open并再次应用日志
alter database open
alter database recover managed standby database using current logfile disconnect from session;


Mos上的参考文档
Open Standby Database Fails due to ORA-1110/ORA-1196/ORA-10458 (文档 ID 2047793.1)




Problem happens with following conditions.
    Physical Standby Database
    Standby Database is terminated
    Standby Controlfile is re-created or restored from backup
    Try to Open Standby Database as READ ONLY mode


CAUSE


This is an expected limitation.
When Standby Database is terminated and standby controlfile must be restored, crash recovery is required 


to open Standby Database as READ ONLY.
But datafiles remains as FUZZY, and it is not recoverable.


Solution


Restore backup of all datafiles and control files when standby controlfile must be restored and the 


Standby Database crashed before

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/61604/viewspace-2021591/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/61604/viewspace-2021591/

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: