oracle 11.1.0.6 版本中的resmgr:cpu quantum 等待事件
前幾天,幫客戶看套生產系統,系統是部署在windows 64bit+oracle 11.1.0.6下的,反映非常慢 1.看awr報告
Instance Efficiency Percentages (Target 100%)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffer Nowait %: 100.00 Redo NoWait %: 100.00
Buffer Hit %: 100.00 In-memory Sort %: 100.00
Library Hit %: 92.40 Soft Parse %: 95.18
Execute to Parse %: 20.30 Latch Hit %: 99.47
Parse CPU to Parse Elapsd %: 0.01 % Non-Parse CPU: 98.31
Shared Pool Statistics Begin End
------ ------
Memory Usage %: 10.60 49.48
% SQL with executions>1: 47.69 89.24
% Memory for SQL w/exec>1: 48.49 89.16
Top 5 Timed Foreground Events
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Avg
wait % DB
Event Waits Time(s) (ms) time Wait Class
------------------------------ ------------ ----------- ------ ------ ----------
resmgr:cpu quantum 4,960,271 241,511 49 70.4 Scheduler
DB CPU 42,635 12.4
enq: TX - row lock contention 82 41,544 5.1E+05 12.1 Applica
SQL*Net more data to client 3,738,976 16,080 4 4.7 Network
SQL*Net break/reset to client 418,805 9,469 23 2.8 Applicatio
發現resmgr:cpu quantum 等待事件非常高,而且佔用db時間達到70%以上
透過查metalink,這是啟用了11g 功能resouce plan資源計劃管理功能
透過取消這項功能,resmgr:cpu quantum 等待事件消失,以下為具體命令
alter system set resource_manager_plan='';
execute dbms_scheduler.set_attribute('WEEKNIGHT_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('WEEKEND_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('MONDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('TUESDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('WEDNESDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('THURSDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('FRIDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('SATURDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('SUNDAY_WINDOW','RESOURCE_PLAN','');
Instance Efficiency Percentages (Target 100%)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffer Nowait %: 100.00 Redo NoWait %: 100.00
Buffer Hit %: 100.00 In-memory Sort %: 100.00
Library Hit %: 92.40 Soft Parse %: 95.18
Execute to Parse %: 20.30 Latch Hit %: 99.47
Parse CPU to Parse Elapsd %: 0.01 % Non-Parse CPU: 98.31
Shared Pool Statistics Begin End
------ ------
Memory Usage %: 10.60 49.48
% SQL with executions>1: 47.69 89.24
% Memory for SQL w/exec>1: 48.49 89.16
Top 5 Timed Foreground Events
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Avg
wait % DB
Event Waits Time(s) (ms) time Wait Class
------------------------------ ------------ ----------- ------ ------ ----------
resmgr:cpu quantum 4,960,271 241,511 49 70.4 Scheduler
DB CPU 42,635 12.4
enq: TX - row lock contention 82 41,544 5.1E+05 12.1 Applica
SQL*Net more data to client 3,738,976 16,080 4 4.7 Network
SQL*Net break/reset to client 418,805 9,469 23 2.8 Applicatio
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-665417/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 11g rac 等待事件resmgr:cpu quantum事件
- [20191203]大量resmgrcpu quantum等待事件.txt事件
- 【TUNE_ORACLE】等待事件之等待事件類別Oracle事件
- ORACLE 常見等待事件Oracle事件
- Oracle常見UNDO等待事件Oracle事件
- Oracle 19c中的等待事件分類 Event WaitsOracle事件AI
- Oracle等待事件之enq: TM – contentionOracle事件ENQ
- oracle等待事件之enq: CF – contentionOracle事件ENQ
- 【TUNE_ORACLE】等待事件之日誌等待“log file sync”Oracle事件
- 【TUNE_ORACLE】等待事件之IO等待“read by other session”Oracle事件Session
- 【TUNE_ORACLE】等待事件之IO等待“direct path read”Oracle事件
- 【TUNE_ORACLE】等待事件之IO等待“direct path write”Oracle事件
- 【TUNE_ORACLE】等待事件之日誌等待“log file parallel write”Oracle事件Parallel
- 【TUNE_ORACLE】等待事件之IO等待“db file scattered read”Oracle事件
- 【TUNE_ORACLE】等待事件之IO等待“direct path write temp”Oracle事件
- 【TUNE_ORACLE】等待事件之IO等待“db file sequential read”Oracle事件
- 【TUNE_ORACLE】等待事件之IO等待“db file parallel write”Oracle事件Parallel
- Oracle面試寶典-等待事件篇Oracle面試事件
- 【Oracle】Windows安裝oracle11gR1 database 11.1.0.6OracleWindowsDatabase
- oracle等待事件之cursor:pin S wait on XOracle事件AI
- 【TUNE_ORACLE】等待事件之“library cache lock”Oracle事件
- 【TUNE_ORACLE】等待事件之“buffer busy waits”Oracle事件AI
- 【TUNE_ORACLE】等待事件之“library cache pins”Oracle事件
- oracle 11.2.0.4 rac叢集等待事件enq: TM - contentionOracle事件ENQ
- Solidity事件,等待事件Solid事件
- Selenium等待事件Waits事件AI
- Oracle10g等待事件型別wait_class說明Oracle事件型別AI
- [20191125]探究等待事件的本源.txt事件
- read by other session等待事件Session事件
- log file sync等待事件事件
- latch等待事件彙總事件
- Latch free等待事件(轉)事件
- gc cr request等待事件GC事件
- 【等待事件】library cache pin事件
- 【等待事件】log file sync事件
- 宜信DBA實踐|全面解析Oracle等待事件的分類、發現及優化Oracle事件優化
- Latch free等待事件四(轉)事件
- Latch free等待事件三(轉)事件
- db file scattered read等待事件事件