最近搭建的級聯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;