标题: 进入dgmgrl: ORA-16603: Data Guard broker detected a mismatch in configuration ID [打印本页] 作者: 郑全 时间: 2019-3-26 19:03 标题: 进入dgmgrl: ORA-16603: Data Guard broker detected a mismatch in configuration ID 环境:11g dg
进入dg备库,显示配置就报:
ORA-16603: Data Guard broker detected a mismatch in configuration ID
具体如下:
DGMGRL> connect sys/oracle@sbdb1
Connected.
DGMGRL> show configuration;
Configuration - prod1
Protection Mode: MaxPerformance
Databases:
prod1 - Primary database
sbdb1 - Physical standby database
Fast-Start Failover: DISABLED
Configuration Status:
ORA-16603: Data Guard broker detected a mismatch in configuration ID
ORA-16625: cannot reach database "prod1"
DGM-17017: unable to determine configuration status
DGMGRL>
1.在主备库都执行以下命令:
SQL> alter system set dg_broker_start=false;
2.在主 备 库手工删除broker配置文件
SQL> show parameter brok
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
dg_broker_config_file1 string /u01/app/oracle/fast_recovery_
area/dr1prod1.dat
dg_broker_config_file2 string /u01/app/oracle/fast_recovery_
area/dr2prod1.dat
SQL> ! rm -fr /u01/app/oracle/fast_recovery_area/dr1prod1.dat /u01/app/oracle/fast_recovery_area/dr2prod1.dat
SQL> ! ls -ltr /u01/app/oracle/fast_recovery_area/dr1prod1.dat /u01/app/oracle/fast_recovery_area/dr2prod1.dat
ls: /u01/app/oracle/fast_recovery_area/dr1prod1.dat: No such file or directory
ls: /u01/app/oracle/fast_recovery_area/dr2prod1.dat: No such file or directory
3.在主备库都再执行以下命令
SQL> alter system set dg_broker_start=true;
4.连接到主库重新去配置broker
DGMGRL> connect sys/oracle@prod1
DGMGRL> CREATE CONFIGURATION cfgocm1 as PRIMARY DATABASE IS prod1 CONNECT IDENTIFIER IS prod1;
DGMGRL> ADD DATABASE sbdb1 as CONNECT IDENTIFIER IS sbdb1;
Database "sbdb1" added