2021-01-26
dg库只用两组standby log
观察了几个dg库的alert,发现不管库有多忙都只用到两组standby log(循环使用);特想问问:创建standby log比redolog多1组的必要性(是不是本身就是个伪需求?)。
我来答
添加附件
收藏
分享
问题补充
3条回答
默认
最新
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
墨值悬赏
观察了几个dg库的alert,发现不管库有多忙都只用到两组standby log(循环使用);特想问问:创建standby log比redolog多1组的必要性(是不是本身就是个伪需求?)。
官方文档中说明如下:
Oracle® Data Guard Concepts and Administration
11g Release 2 (11.2)
E25608-04
6 Redo Transport Services
6.2.3.1 Creating and Managing a Standby Redo Log
The standby redo log must have at least one more redo log group than the redo log at the redo source database, for each redo thread at the redo source database. At the redo source database, query the V$LOG view to determine how many redo log groups are in the redo log at the redo source database and query the V$THREAD view to determine how many redo threads exist at the redo source database.

https://docs.oracle.com/cd/E11882_01/server.112/e41134/log_transport.htm#SBYDB5122
即便配置的备库比主库多一组日志组,但当主库业务高峰时,日志切换频繁,备库日志来不及应用,备库没有多余的 standby log 接收主库传过来的日志,则会导致备库同步应用日志延迟,数据不一致。
主库繁忙时,备库的 standby log 很多均是 active 状态,并非你看到的只有两组。在我的备库中不繁忙也有三组是 active 状态的,下图中则是六组 active 状态。

评论
有用 0
墨值悬赏