重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 148|回复: 0
打印 上一主题 下一主题

[Oracle] 等待事件 LGWR all worker groups

[复制链接]
跳转到指定楼层
楼主
发表于 2024-5-15 16:35:37 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
今天在生产系统上看到这个 LGWR all worker groups 等待事件,这个是干什么的?
看看MOS上怎么说的:



APPLIES TO:Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Information in this document applies to any platform.
GOAL
This document explains LGWR worker group.

SOLUTION
LGWR worker group is a new feature of 12c and it is enabled by default in 12c and later.
It is often referred as "LGWR slave group" or "multiple Log Writers."


When it is enabled, at least two more background processes lg00, lg01 are spawned.

% ps -ef | grep ORA1 | grep lg

oracle  8073     1  0  2022 ?        00:02:44 ora_lgwr_ORA1
oracle  8077     1  0  2022 ?        00:01:22 ora_lg00_ORA1
oracle  8079     1  0  2022 ?        00:00:47 ora_lg01_ORA1


In AWR reports, you can see the following wait events related to LGWR worker group.

LGWR intra group sync   
LGWR worker group ordering   
LGWR any worker group   
LGWR intra group IO completion   
LGWR all worker groups



This feature may degrade LGWR performance in some environments.

You can turn off this feature by setting a hidden parameter.

SQL> alter system set "_use_single_log_writer" = true scope=spfile;  

It is set to 'ADPTIVE' by default.
This is a static parameter. You need to restart the instance for the change.

我这里正好是19.3的环境。




分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-6-2 02:09 , Processed in 0.088772 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表