ITPub博客

首页 > 数据库 > Oracle > 11g 最大保护模式 standby database网络故障导致主库宕机

11g 最大保护模式 standby database网络故障导致主库宕机

原创 Oracle 作者:哎呀我的天呐 时间:2015-06-12 10:14:38 0 删除 编辑
主库:

点击(此处)折叠或打开

  1. [oracle@primary ~]$ sqlplus / as sysdba

  2. SQL*Plus: Release 11.2.0.3.0 Production on Fri Jun 12 10:04:03 2015

  3. Copyright (c) 1982, 2011, Oracle. All rights reserved.


  4. Connected to:
  5. Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
  6. With the Partitioning, OLAP, Data Mining and Real Application Testing options

  7. SQL> select status from v$instance;

  8. STATUS
  9. ------------
  10. MOUNTED

  11. SQL> alter database open;
  12. alter database open
  13. *
  14. ERROR at line 1:
  15. ORA-03113: end-of-file on communication channel
  16. Process ID: 3896
  17. Session ID: 1 Serial number: 5
open不了

主备库之间网络中断,网络弄好后,重启备库并应用,其实备库是不会被关闭的,这是我重启的备库。

点击(此处)折叠或打开

  1. [oracle@standby ~]$ sqlplus / as sysdba

  2. SQL*Plus: Release 11.2.0.3.0 Production on Fri Jun 12 10:03:50 2015

  3. Copyright (c) 1982, 2011, Oracle. All rights reserved.

  4. Connected to an idle instance.

  5. SQL> startup;
  6. ORACLE instance started.

  7. Total System Global Area 839282688 bytes
  8. Fixed Size         2233000 bytes
  9. Variable Size         520097112 bytes
  10. Database Buffers     314572800 bytes
  11. Redo Buffers         2379776 bytes
  12. Database mounted.
  13. Database opened.
  14. SQL>
  15. SQL> select protection_mode ,protection_level , open_mode from v$database;

  16. PROTECTION_MODE      PROTECTION_LEVEL      OPEN_MODE
  17. -------------------- -------------------- --------------------
  18. MAXIMUM PROTECTION   MAXIMUM PROTECTION    READ ONLY

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

  20. Database altered.
然后主库启动这样就好了

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

下一篇: 记一次灾备演练
请登录后发表评论 登录
全部评论
https://cloud.tencent.com/developer/inventory/14362

注册时间:2014-10-30

  • 博文量
    403
  • 访问量
    2528764