ORA-10458 ORA-01196 ORA-01110 處理

今天有個dataguard庫,啓動備庫的時候報錯:

ERROR at line 1:
ORA-10458: standby database requires recovery
ORA-01196: file 1 is inconsistent due to a failed media recovery session
ORA-01110: data file 1: '/oradata/prov/system01.dbf'

原因:日誌的scn跟控制文件不一致導致

1、主庫可以正常起來,並正常啓動主庫的監聽,確保主庫監聽正常。

2、備庫啓動到mount階段,並啓動備庫的監聽,確保備庫的監聽也正常。

3、備庫啓動日誌應用:

SQL> alter database recover managed standby database disconnect from session;

Database altered.

4、檢查主庫日誌序號:

select name,SEQUENCE#,APPLIED from v$archived_log order by sequence#;

檢查備庫alert日誌:

日誌的最後一個序號跟主庫檢查的一致即可。

5、備庫停止應用日誌

SQL> alter database recover managed standby database cancel
  2  ;

Database altered.
 

6、備庫啓動到open並再次應用日誌

SQL> alter database open
  2  ;

Database altered.

SQL> alter database recover managed standby database using current logfile disconnect from session;

Database altered.

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章