Oracle 空閒等待事件
查v$system_event和v$session_event裡的事件資訊時,有些是空閒事件無需關心。比如說 “SQL*Net message from client”這個事件,是server程式在等待客戶端發sql指令。只要不是網路出問題,這樣的事件不用關心。
可以用statspack的stats$idle_event表裡記錄的專案,來確定哪些是空閒等待事件。在spctab.sql中有stats$idle_event的描述。空閒事件包括有(Oracle 10g):
'smon timer', 'pmon timer', 'rdbms ipc message', 'Null event', 'parallel query dequeue', 'pipe get', 'client message', 'SQL*Net message to client', 'SQL*Net message from client', 'SQL*Net more data from client', 'dispatcher timer', 'virtual circuit status', 'lock manager wait for remote message', 'PX Idle Wait', 'PX Deq: Execution Msg', 'PX Deq: Table Q Normal', 'wakeup time manager', 'slave wait', 'i/o slave wait', 'jobq slave wait', 'null event', 'gcs remote message', 'gcs for action', 'ges remote message', 'queue messages', 'wait for unread message on broadcast channel', 'PX Deq Credit: send blkd', 'PX Deq: Execute Reply', 'PX Deq: Signal ACK', 'PX Deque wait', 'PX Deq Credit: need buffer', 'STREAMS apply coord waiting for slave message', 'STREAMS apply slave waiting for coord message', 'Queue Monitor Wait', 'Queue Monitor Slave Wait', 'wakeup event for builder', 'wakeup event for preparer', 'wakeup event for reader', 'wait for activate message', 'PX Deq: Par Recov Execute', 'PX Deq: Table Q Sample', 'STREAMS apply slave idle wait', 'STREAMS capture process filter callback wait for ruleset', 'STREAMS fetch slave waiting for txns', 'STREAMS waiting for subscribers to catch up', 'Queue Monitor Shutdown Wait', 'AQ Proxy Cleanup Wait', 'knlqdeq', 'class slave wait', 'master wait', 'DIAG idle wait', 'ASM background timer', 'KSV master wait', 'EMON idle wait', 'Streams AQ: RAC qmn coordinator idle wait', 'Streams AQ: qmn coordinator idle wait', 'Streams AQ: qmn slave idle wait', 'Streams AQ: waiting for time management or cleanup tasks', 'Streams AQ: waiting for messages in the queue', 'Streams fetch slave: waiting for txns', 'Streams AQ: deallocate messages from Streams Pool', 'Streams AQ: delete acknowledged messages', 'LNS ASYNC archive log', 'LNS ASYNC dest activation', 'LNS ASYNC end of log', 'LogMiner: client waiting for transaction', 'LogMiner: slave waiting for activate message', 'LogMiner: wakeup event for builder', 'LogMiner: wakeup event for preparer', 'LogMiner: wakeup event for reader'。
通常我們可以用下面的方式來過濾:
event not like 'SQL*NET%' and event not like 'smon%' and event not like 'pmon%' and event not like 'rdbms%' and event not like 'PX%' and event not like 'sbt%' and event not in ('gcs remote message', 'ges remote message', 'virtual circuit status', 'dispatcher timer');
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12238525/viewspace-702953/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【TUNE_ORACLE】等待事件之等待事件類別Oracle事件
- ORACLE 常見等待事件Oracle事件
- Oracle常見UNDO等待事件Oracle事件
- 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等待事件之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事件
- windows計劃任務的“等待空閒時間”已棄用Windows
- Oracle 19c中的等待事件分類 Event WaitsOracle事件AI
- Selenium等待事件Waits事件AI
- Oracle10g等待事件型別wait_class說明Oracle事件型別AI
- 【TUNE_ORACLE】檢視Oracle的壞塊在空閒空間中還是在已用空間中的SQL參考OracleSQL
- read by other session等待事件Session事件
- log file sync等待事件事件
- latch等待事件彙總事件
- Latch free等待事件(轉)事件
- gc cr request等待事件GC事件
- 【等待事件】library cache pin事件
- 【等待事件】log file sync事件
- Latch free等待事件四(轉)事件
- Latch free等待事件三(轉)事件
- db file scattered read等待事件事件
- db file sequential read等待事件事件
- latch:library cache lock等待事件事件
- Latch free等待事件二(轉)事件