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、遇到问题不要紧,我们不可能什么问题都遇到,关键在于培养自己解决问题的能力。










本文转自 roidba 51CTO博客,原文链接:http://blog.51cto.com/roidba/2050813,如需转载请自行联系原作者

上一篇:git安装和初次使用


下一篇:Spring Boot 2.x基础教程:配置@Async异步任务的线程池