ITPub博客

首页 > 数据库 > Oracle > 物理备库open ORA-10458

物理备库open ORA-10458

原创 Oracle 作者:dasong2410 时间:2016-05-27 22:02:09 0 删除 编辑


刚创建的物理备库在打开时可能会报 ORA-10458: standby database requires recovery 这个错,此时只要打开备库的 日志恢复,让备库apply重做日志即可。

[oracle@n2 ~]$ sqlplus / as sysdba


SQL*Plus: Release 11.2.0.4.0 Production on Wed May 25 09:52:17 2016


Copyright (c) 1982, 2013, Oracle.  All rights reserved.


Connected to an idle instance.


SQL> startup
ORACLE instance started.


Total System Global Area  630501376 bytes
Fixed Size                  2255872 bytes
Variable Size             234882048 bytes
Database Buffers          390070272 bytes
Redo Buffers                3293184 bytes
Database mounted.
ORA-10458: standby database requires recovery
ORA-01196: file 1 is inconsistent due to a failed media recovery session
ORA-01110: data file 1: '/oracle/db/oradata/orcl/system01.dbf'


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


Database altered.


SQL> alter database recover managed standby database cancel;


Database altered.


SQL> alter database open;


Database altered.


SQL> 


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

请登录后发表评论 登录
全部评论

注册时间:2011-05-12

  • 博文量
    66
  • 访问量
    349769