檢視系統中各種等待時間佔用的資料庫時間比例

heroqsx發表於2008-07-23

-- 摘自Performance Tuning Guide

SELECT EVENT, WAIT_CLASS,
TIME_WAITED_MICRO,ROUND(TIME_WAITED_MICRO*100/S.DBTIME,1) PCT_DB_TIME
FROM V$SYSTEM_EVENT E, V$EVENT_NAME N,
(SELECT VALUE DBTIME FROM V$SYS_TIME_MODEL WHERE STAT_NAME = 'DB time') S
WHERE E.EVENT_ID = N.EVENT_ID
AND N.WAIT_CLASS NOT IN ('Idle', 'System I/O')
ORDER BY PCT_DB_TIME ASC;

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/136097/viewspace-1007697/,如需轉載,請註明出處,否則將追究法律責任。

相關文章