DG Broker管理dataguard注意事项

    Once you start using the Broker you must always use the Broker to make any changes to your Data Guard configuration. This means that you must use Grid Control or the Broker CLI DGMGRL to change any Data Guard settings. If you use SQL*Plus to make configuration changes, the Broker will put things back the way it sees the world or this will lead to inconsistencies between the Broker configuration parameters and the database.

    一旦开始使用Broker,就必须一直使用它修改DG的配置,这意味着必须使用grid control或者dgmgrl修改DG的配置,如果使用sqlplus修改配置,broker会将配置改回原样,或者导致broker配置参数与数据库之间不一致


    此例记录修改保护模式,由最高可用降级为最大性能

    

  1. DGMGRL> show configuration;
  2. Configuration - minconf
  3. Protection Mode: MaxAvailability
  4. Databases:
  5. minstd - Primary database
  6. min - Physical standby database
  7. Fast-Start Failover: DISABLED
  8. Configuration Status:
  9. SUCCESS
  10. DGMGRL> EDIT DATABASE 'minstd' SET PROPERTY 'LogXptMode'='ASYNC';
  11. Property "LogXptMode" updated
  12. DGMGRL> EDIT DATABASE 'min' SET PROPERTY 'LogXptMode'='ASYNC';
  13. Error: ORA-16805: change of LogXptMode property violates overall protection mode
  14. Failed.
  15. DGMGRL> EDIT CONFIGURATION SET PROTECTION MODE AS MaxPerformance;
  16. Succeeded.
  17. DGMGRL> show configuration;
  18. Configuration - minconf
  19. Protection Mode: MaxPerformance
  20. Databases:
  21. minstd - Primary database
  22. min - Physical standby database
  23. Fast-Start Failover: DISABLED
  24. Configuration Status:
  25. SUCCESS

使用broker修改会使LOG_ARCHIVE_DEST_2参数变得较为复杂,例如

service="minstd", LGWR SYNC AFFIRM delay=0 optional compression=disable max_failure=0 max_connections=1 reopen=300 db_unique_name="minstd" net_timeout=30, valid_for=(all_logfiles,primary_role)

而且修改后在sqlplus中show parameter LOG_ARCHIVE_DEST_2仅有主库显示更改之后的状态,而备库还保留原样,但是在show database verbose中是修改好的,仅当在发生切换时,备库变为主库时才会更正参数,可见最好使用broker来管理配置

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26838672/viewspace-2108154/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26838672/viewspace-2108154/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值