12C RAC+DG+Broker 修改歸檔日誌路徑的方法。

一、環境描述
12C RAC + DATAGUARD+ Broker

二、修改歸檔日誌路徑
以下爲模擬生產環境,方法是相同的。
--主庫RAC
1、Oracle用戶執行,先修改主庫參數文件

sqlplus / as sysdba
alter system set log_archive_dest_1='LOCATION=+datadg/arch VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=orcl';

2、Oracle用戶執行,修改broker配置參數

DGMGRL> edit instance orcl1 on database orcl  set property StandbyArchiveLocation='+datadg/arch';
DGMGRL> edit instance orcl2 on database orcl  set property StandbyArchiveLocation='+datadg/arch';

--備庫單實例
1、Oracle用戶,再修改備庫

sqlplus / as sysdba
alter system set log_archive_dest_1='LOCATION=++datadg/arch VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=orcldg';

2、Oracle用戶執行,修改broker配置參數

DGMGRL> edit database orcldg set property StandbyArchiveLocation='+datadg/arch';

三、遇到的報錯

報錯1:
OERR: ORA-16582 "cannot change instance-specific property" (varies by version) Reference Note (文檔 ID 172958.1)

Error Text, Cause and Action from Message File/s for ORA-16582
Versions 11.1, 11.2, 12.1
Error:  ORA-16582 cannot change instance-specific property 
Cause:  An attempt was made to change an instance-specific property for a 
database that had more than one instance. 
Action: Retry the command and identify a specific instance whose property 
        value is to be changed. 
解決方法:RAC環境下修改歸檔路徑使用edit instance xxx ,不要使用edit database         

報錯2:
      Warning: ORA-16714: the value of property StandbyArchiveLocation is inconsistent with the database setting
      Warning: ORA-16714: the value of property AlternateLocation is inconsistent with the database setting
解決方法:同時修改broker配置。    

四、小結:
1、RAC+DG+Broker 這樣的環境需要注意部分參數需要再數據庫中修改同時需要再broker裏修改。
2、遇到問題不要緊,我們不可能什麼問題都遇到,關鍵在於培養自己解決問題的能力。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章