温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

12C RAC+DG+Broker 修改归档日志路径的方法。

发布时间:2020-04-08 15:34:49 来源:网络 阅读:3695 作者:roidba 栏目:关系型数据库

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

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI