标题: 由于物理备库异常关机导致ORA-10458: standby database requires recovery [打印本页] 作者: mahan 时间: 2025-8-31 15:45 标题: 由于物理备库异常关机导致ORA-10458: standby database requires recovery 故障现象
SQL> startup
ORACLE instance started.
Total System Global Area 1970864128 bytes
Fixed Size 2254544 bytes
Variable Size 805308720 bytes
Database Buffers 1157627904 bytes
Redo Buffers 5672960 bytes
SQL> alter database mount;
Database altered.
SQL> alter database open;
alter database open
*
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: '/u01/app/oracle/oradata/DG/system.dbf'
小张我经验不足,没有遇到过这个情况(但是这个故障应该很多dba都遇到过的问题),然后我就去看alert日志。
...
alter database open
AUDIT_TRAIL initialization parameter is changed to OS, as DB is NOT compatible for database opened with read-only access
Beginning Standby Crash Recovery.
Serial Media Recovery started
Managed Standby Recovery starting Real Time Apply
Media Recovery of Online Log [Thread=2, Seq=202]
...
Recovery of Online Redo Log: Thread 2 Group 15 Seq 202 Reading mem 0
...
ORA-16016: archived log for thread 2 sequence# 202 unavailable
...
这个几个信息都指向的2节点的202的日志,是突然备库宕机导致丢失了日志没有应用上,这种情况备库需要进行恢复。