11g 最大保護模式 standby database網路故障導致主庫當機

哎呀我的天吶發表於2015-06-12
主庫:

點選(此處)摺疊或開啟

  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部落格 ” ,連結:http://blog.itpub.net/29990276/viewspace-1696517/,如需轉載,請註明出處,否則將追究法律責任。

相關文章