千家信息网

12c broker 配置文件损坏处理

发表于:2025-01-31 作者:千家信息网编辑
千家信息网最后更新 2025年01月31日,一、问题描述1.查看broker日志发现报错tail -f drcorcl.log>> Starting Data Guard Broker bootstrap < show configuratio
千家信息网最后更新 2025年01月31日12c broker 配置文件损坏处理

一、问题描述
1.查看broker日志发现报错

tail -f drcorcl.log>> Starting Data Guard Broker bootstrap <

2.查看broker是否正常

DGMGRL> show configuration;Configuration - dg_config  Protection Mode: MaxAvailability  Members:  orcl   - Primary database    orcldg - Physical standby database Fast-Start Failover: DISABLEDConfiguration Status:SUCCESS   (status updated 57 seconds ago)       --正常可用。因为设置了两个broker文件,所以损坏了一个文件没所谓。

二、处理过程

1.停掉dmon进程

SQL> alter system set dg_broker_start=false;System altered.

2.复制配置文件

    $asmcmd -plsASMCMD [+] > DATADG/ASMCMD [+] > cd datadgASMCMD [+datadg] > lsASM/ORCL/arcch/arch/orapwasmASMCMD [+datadg] > cd orclASMCMD [+datadg/orcl] > lsARCHIVELOG/CONTROLFILE/DATAFILE/DATAGUARDCONFIG/ONLINELOG/PARAMETERFILE/TEMPFILE/dr1.datASMCMD [+datadg/orcl] > cp dr1.dat dr2.dat  

3.启动dmon

SQL> alter system set dg_broker_start=true;System altered.SQL> !ps -ef|grep dmonoracle   31088     1  0 17:40 ?        00:00:00 ora_dmon_orcloracle   31120 25505  0 17:40 pts/0    00:00:00 /bin/bash -c ps -ef|grep dmonoracle   31122 31120  0 17:40 pts/0    00:00:00 grep dmonSQL> 

4.查看broker日志

12/02/2017 17:38:05Data Guard Broker shutting downRSM0 successfully terminated2017-12-02 17:38:08.711                      >> DMON Process Shutdown <<2017-12-02 17:38:09.710                      Fore Deregistering service orcl_DGB with listener(s)2017-12-02 17:38:09.711                      Fore: Executing SQL [ALTER SYSTEM REGISTER]2017-12-02 17:38:09.711                      SQL [ALTER SYSTEM REGISTER] Executed successfully2017-12-02 17:40:04.954                      LGWR: Creating Data Guard Broker Monitor Process (DMON)2017-12-02 17:40:07.977                      >> Starting Data Guard Broker bootstrap <<2017-12-02 17:40:07.977                      Broker Configuration File Locations:2017-12-02 17:40:07.977                            dg_broker_config_file1 = "+DATADG/orcl/dr1.dat"2017-12-02 17:40:07.977                            dg_broker_config_file2 = "+DATADG/orcl/dr2.dat"2017-12-02 17:40:07.977                      DMON: Attach state object2017-12-02 17:40:07.978                      DMON: rfafoGetLocks reinitializing dubious PMYSHUT lock value block contents: sts=0, flags=0x0, spare1=0x0, spare2=0x0, cksm=0x0, rndm=0x02017-12-02 17:40:07.978                      DMON: Broker state reconciled, version = 0, state = 000000002017-12-02 17:40:07.978                      DMON: Broker State Initialized2017-12-02 17:40:07.978                            Version = 12017-12-02 17:40:07.978                            State = 000000002017-12-02 17:40:07.978                      DMON: Entered rfm_get_chief_lock() for CTL_BOOTSTRAP, reason 22017-12-02 17:40:07.978 7fffffff           0 DMON: Entered rfm_get_chief_lock() for CTL_BOOTSTRAP, reason 02017-12-02 17:40:11.012 7fffffff           0 DMON: start task execution: broker initialization2017-12-02 17:40:11.013                      DMON: Boot configuration (0.0.0), loading from "+DATADG/orcl/dr1.dat"2017-12-02 17:40:11.027                      DMON Registering service orcl_DGB with listener(s)2017-12-02 17:40:11.027                      DMON: Executing SQL [ALTER SYSTEM REGISTER]2017-12-02 17:40:11.027                      SQL [ALTER SYSTEM REGISTER] Executed successfully12/02/2017 17:40:11Broker Configuration:       "dg_config"      Protection Mode:            Maximum Availability      Fast-Start Failover (FSFO): Disabled, flags=0x0, version=0      Primary Database:           orcl (0x01010000)12/02/2017 17:40:15Version Check Results:      Database orcldg returned ORA-00000Creating process RSM0
0