最近搭建的级联ADG一直不同步,检查源端的v$archive_dest显示status为BAD PARAM,error为:ORA-16053 DB_UNIQUE_NAME is not in the Data Guard Configuration(涉及多重级联,计划使用了DGbroker管理,但是DG Broker还没有完全配置好)。
检查源端、目标端的LOG_ARCHIVE_CONFIG参数,参数也是配置正确的,alert日志也看不出什么问题(查了日志,这个参数有人修改正确的)。
SQL> show parameters LOG_ARCHIVE_CONFIG;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_config string dg_config=(qzcxdb,qzcxdb2,qzcxdb3)
无奈之下,按以下步骤再次走了一遍,日志应用正常。
1、qzcxdb2\qzcxdb3重新设置LOG_ARCHIVE_CONFIG参数:
alter system set LOG_ARCHIVE_CONFIG='dg_config=(qzcxdb,qzcxdb2,qzcxdb3)' scope=both sid='*';
2、qzcxdb2重新设置log_archive_dest_3
alter system set log_archive_dest_3='service="qzcxdb3"','ASYNC NOAFFIRM delay=0 optional compression=enable max_failure=0 max_connections=1 reopen=300 db_unique_name="qzcxdb3" net_timeout=60', 'valid_for=(standby_logfile,all_roles)' scope=both sid='*';
3、重新应用日志
alter database recover managed standby database disconnect;