Oracle Study之--resmgr:cpu quantum等待事件
admin
2023-05-09 16:42:11
0

Oracle Study之--resmgr:cpu quantum等待事件


在AWR Report中出现“resmgr:cpu quantum”等待事件:

Oracle Study之--resmgr:cpu quantum等待事件


“resmgr:cpu quantum”等待事件

参考metalink的解决方案,是oracle资源管理方面的问题,原文如下:


Symptoms


High waits on event 'resmgr:cpu quantum' might be noticed even when resource manager is disabled.     You already have confirmed parameter RESOURCE_MANAGER_PLAN is set to null but still noticing the above wait events.

Top 5 Timed Foreground Events:

Event                    Waits   Time(s)  Avg wait(ms) % DB time Wait Class
------------------------ ------- -------- ------------ -------------- ---------- -----------
resmgr:cpu quantum         1,596  346,281       216968          89.19 Scheduler
db file scattered read   171,071   14,778           86           3.81 User I/O
log file sync             28,575   10,810          378           2.78 Commit
db file sequential read  943,457   6,569             7           1.69 User I/O
DB CPU                     2,133   0.55

Cause

This could be due to DEFAULT_MAINTENANCE_PLAN. From 11g onwards every weekday window has a pre-defined Resource Plan called DEFAULT_MAINTENANCE_PLAN, which will become active once the related window opens.
Following entries can also be noted in alert log at the time of issue.

Wed Sep 16 02:00:00 2009
Clearing Resource Manager plan via parameter:
Wed Sep 16 22:00:00 2009
Setting Resource Manager plan SCHEDULER[0x2C55]:DEFAULT_MAINTENANCE_PLAN via scheduler window
Setting Resource Manager plan DEFAULT_MAINTENANCE_PLAN via parameter
Wed Sep 16 22:00:05 2009
Begin automatic SQL Tuning Advisor run for special tuning task "SYS_AUTO_SQL_TUNING_TASK"


Solution

To disable the DEFAULT_MAINTENANCE_PLAN you can use the below steps as suggested inNote 786346.1
1. Set the current resource manager plan to null (or another plan that is not restrictive):

alter system set resource_manager_plan='';

2. Change the active windows to use the null resource manager plan (or other nonrestrictive plan)
using:3. Then, for each window_name (WINDOW_NAME from DBA_SCHEDULER_WINDOWS), run:

execute dbms_scheduler.set_attribute('WEEKNIGHT_WINDOW','RESOURCE_PLAN',''); execute dbms_scheduler.set_attribute('WEEKEND_WINDOW','RESOURCE_PLAN','');


3. Then, for each window_name (WINDOW_NAME from DBA_SCHEDULER_WINDOWS), run:

execute dbms_scheduler.set_attribute('','RESOURCE_PLAN','');

execute dbms_scheduler.set_attribute('','RESOURCE_PLAN','');


References

NOTE:392037.1 - Database Hangs. Sessions wait for 'resmgr:cpu quantum'
NOTE:756734.1 - 11g: Scheduler Maintenance Tasks or Autotasks
NOTE:786346.1 - Resource Manager and Sql Tunning Advisory DEFAULT_MAINTENANCE_PLAN
NOTE:806893.1 - Large Waits With The Wait Event "Resmgr:Cpu Quantum"
注意:

但是很多用户会发现禁用资源计划很多时候没有作用.可以禁用Oracle缺省启用的资源调度,最后通过以下参数设置解决问题:
_resource_manager_always_on = false


相关内容

热门资讯

燃气热水器需要多少升的 一般在选择燃气热水器的时候,按照家庭内部的使用水的人数来决定,一般如果四个人的话,可以选择40到60...
32升燃气热水器安装方法 燃气热水器是现代家庭生活中非常重要的设备,它不仅方便了我们的生活,提高了生活品质,同时也需要我们重视...
燃气热水器12升和13升的区别... 燃气热水器12升和13升的区别大吗:区别不大。12升就是热水器的额定加热能力是每分钟可以提升水温25...
燃气热水器温度升不上去的原因是... 1、燃气的压力不够大,导致水温无法升高。2、热水器内部的电池电量已经不够运转热水器。3、没有做好卫生...
海尔滚筒洗衣机衣服放进后门锁不... 卡锁松懈或老化故障可以找专业的售后将卡锁部分卸下换一个新的就可以正常使用。可以适当的拿出些许衣服以释...
小米、特斯拉、比亚迪相继调价 ...   小米、特斯拉、比亚迪相继调价  【小米、特斯拉、比亚迪相继调价】2026年5月,中国新能源车市上...
雨雨雨雨雨雨!14日至19日河... 晴雨转换!今天起河南雨雨雨雨雨雨本周河南天气呈现先晴后雨的特点,在经历了前半段晴热模式之后,今天我省...
进出口总量全省第6、鲜苹果出口... 2026年一季度,三门峡市外贸经济稳健向好,交出一份亮眼成绩单:全市实现进出口总值57.9亿元,同比...
法国外交部回应特朗普访华 据凤凰卫视报道,美国总统特朗普访问中国,中美关系走向引发欧洲关注。法国外交部发言人5月13日在巴黎接...
特朗普社媒实际发帖人现身:34... 现年34岁的行政助理娜塔莉·哈普是美国总统特朗普的“资深心腹”,目前已成为协助特朗普在社交平台“真实...