本文共 1691 字,大约阅读时间需要 5 分钟。
一、环境描述
12C RAC + DATAGUARD+ Broker二、修改归档日志路径
以下为模拟生产环境,方法是相同的。 --主库RAC 1、Oracle用户执行,先修改主库参数文件sqlplus / as sysdbaalter 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 sysdbaalter 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-16582Versions 11.1, 11.2, 12.1Error: 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、遇到问题不要紧,我们不可能什么问题都遇到,关键在于培养自己解决问题的能力。