ORACLE 11G dgbroker異常之ORA-16820&ORA-16825&ORA-12541

清風艾艾發表於2018-08-30

       最近,一oracle 11.2.0.4的dg實驗環境出現斷電故障,這套dg環境配置有dg observer,就是dgbroker,啟動恢復的過程中遇到點異常報錯。本博文記錄配置有dg observer的dg環境斷電恢復的異常處理過程。

       1、在主備庫的例項和監聽啟動前,登陸dgmgrl控制檯提示無TNS

        2、啟動observer前,啟動主備庫啟動不了的

        啟動主庫報錯(切記,啟動observer,確定DG主備關係前,不要直接startup):

        啟動備庫報錯(切記,啟動observer,確定DG主備關係前,不要直接startup):

        3、啟動主備庫的監聽

        啟動主備庫的監聽程式後,在啟動主備例項前,dgmgrl控制檯能正常登陸,但是無法檢視配置:

        4、啟動observer觀察者

        在啟動主備例項前,在主庫啟動觀察者,會提示例項未啟動:  

        在未作任何操作的情況下,備庫被提升為主庫

        但是,原主庫未被做調整

        手動發起主庫的startup,提示有主庫已存在:

        dgmgrl控制檯提示,原主庫被降級為standby:

        5、檢視主備庫角色和狀態

        主庫:

        備庫:

        dgmgrl控制檯檢視配置:

        6、另外,如果observer程式異常中斷,檢視主備配置,提示報錯16825&16820,

解決方法是啟動observer,重新登陸dgmgrl控制檯檢視即可:

[oracle@centdgpri ~]$ dgmgrl sys/WaterH2o@dbprimary

DGMGRL for Linux: Version 11.2.0.4.0 - 64bit Production


Copyright (c) 2000, 2009, Oracle. All rights reserved.


Welcome to DGMGRL, type "help" for information.

Connected.

DGMGRL> show configuration;


Configuration - my_dgb


  Protection Mode: MaxPerformance

  Databases:

    orcl  - Primary database

      Error: ORA-16825: multiple errors or warnings, including fast-start failover-related errors or warnings, detected for the database


    orcls - (*) Physical standby database

      Error: ORA-16825: multiple errors or warnings, including fast-start failover-related errors or warnings, detected for the database


Fast-Start Failover: ENABLED


Configuration Status:

ERROR


DGMGRL> show configuration;


Configuration - my_dgb


  Protection Mode: MaxPerformance

  Databases:

    orcl  - Primary database

      Error: ORA-16820: fast-start failover observer is no longer observing this database


    orcls - (*) Physical standby database

      Error: ORA-16820: fast-start failover observer is no longer observing this database


Fast-Start Failover: ENABLED


Configuration Status:

ERROR

    7、總結:一旦oracle 11g dg配置有dgbroker,主備同時出現斷電,為避免主備切換,啟動程式的順序:

        啟動主備的監聽程式

        啟動dg observer

        啟動主庫的例項

        啟動備庫的例項

        校驗dgbroker配置及主備庫狀態


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29357786/viewspace-2213170/,如需轉載,請註明出處,否則將追究法律責任。

相關文章