Oracle動態效能檢視學習筆記(9)_v$system_event
Oracle動態效能檢視學習筆記(9)_v$system_event
目錄
參考文件<>Chapter 24
##################################################################
1 Overview
##################################################################
This view is a summary of waits for an event by an instance.
While v$session_wait shows the current waits on the system,
v$system_event provides a summary of all the event waits on the instance since it started.
It is useful to get a historical picture of waits on the system. By taking two snapshots and doing the delta on the
waits,
you can determine the waits on the system in a givent time interval.
##################################################################
2 Userful Columns for v$session
##################################################################
1) Event: Name of the wait event
2) Total_Waits: Total number of waits for this event
3) Time_waited: Total time waited for this event(In hundredths of a second)
4) Average_wait: Average amount of time waited for this event by this session(In hundredths of a second)
5) Total_timeouts: Number of times the wait timed out
##################################################################
3 示例
##################################################################
1)Finding the Total Waits on the System
SELECT event, total_waits waits, total_timeouts timeouts,
time_waited total_time, average_wait avg
FROM V$SYSTEM_EVENT
ORDER BY 4 DESC;
比如,透過checkpoint completed、log file switch(checkpoint incomplete)可以檢視檢查點程式的效能。透過log file
parallel write、log file switch completed可以檢視聯機重做日誌檔案的效能。透過log file switch(archiving needed)事件
可以檢查歸檔程式的效能。
找出瓶頸:
1。透過Statspack列出空閒事件。
2。檢查不同事件的等待時間開銷。
3。檢查每條等待記錄的平均用時,因為某些等待事件(比較log file switch completion)可能週期性地發生,但發生時卻造成了嚴
重的效能損耗。
##################################################################
4 v$session_wait, v$session_event,v$system_event的差別
##################################################################
1) V$SESSION_WAIT is a current state view. It lists either the event currently being waited for or the event last
waited for on each session
當前會話
2) V$SESSION_EVENT lists the cumulative history of events waited for on each session. After a session exits, the
wait event statistics for that session are
removed from this view.
當前仍然連線的所有會話,當會話退出,資料被移除
3) V$SYSTEM_EVENT lists the events and times waited for by the whole instance (that is, all session wait events data
rolled up) since instance startup.
自系統啟動以來的等待事件
Because V$SESSION_WAIT is a current state view, it also contains a finer-granularity of information than
V$SESSION_EVENT or V$SYSTEM_EVENT. It includes additional identifying data for the current event in three parameter
columns: P1, P2, and P3.
For example, V$SESSION_EVENT can show that session 124 (SID=124) had many waits on the db file scattered read event,
but it does not show which file and block number. However, V$SESSION_WAIT shows the file number in P1, the block
number read in P2, and the number of blocks read in P3 (P1 and P2 let you determine for which segments the wait
event is occurring).
V$SESSION_WAIT 的事件的描述最詳細。
目錄
參考文件<
##################################################################
1 Overview
##################################################################
This view is a summary of waits for an event by an instance.
While v$session_wait shows the current waits on the system,
v$system_event provides a summary of all the event waits on the instance since it started.
It is useful to get a historical picture of waits on the system. By taking two snapshots and doing the delta on the
waits,
you can determine the waits on the system in a givent time interval.
##################################################################
2 Userful Columns for v$session
##################################################################
1) Event: Name of the wait event
2) Total_Waits: Total number of waits for this event
3) Time_waited: Total time waited for this event(In hundredths of a second)
4) Average_wait: Average amount of time waited for this event by this session(In hundredths of a second)
5) Total_timeouts: Number of times the wait timed out
##################################################################
3 示例
##################################################################
1)Finding the Total Waits on the System
SELECT event, total_waits waits, total_timeouts timeouts,
time_waited total_time, average_wait avg
FROM V$SYSTEM_EVENT
ORDER BY 4 DESC;
比如,透過checkpoint completed、log file switch(checkpoint incomplete)可以檢視檢查點程式的效能。透過log file
parallel write、log file switch completed可以檢視聯機重做日誌檔案的效能。透過log file switch(archiving needed)事件
可以檢查歸檔程式的效能。
找出瓶頸:
1。透過Statspack列出空閒事件。
2。檢查不同事件的等待時間開銷。
3。檢查每條等待記錄的平均用時,因為某些等待事件(比較log file switch completion)可能週期性地發生,但發生時卻造成了嚴
重的效能損耗。
##################################################################
4 v$session_wait, v$session_event,v$system_event的差別
##################################################################
1) V$SESSION_WAIT is a current state view. It lists either the event currently being waited for or the event last
waited for on each session
當前會話
2) V$SESSION_EVENT lists the cumulative history of events waited for on each session. After a session exits, the
wait event statistics for that session are
removed from this view.
當前仍然連線的所有會話,當會話退出,資料被移除
3) V$SYSTEM_EVENT lists the events and times waited for by the whole instance (that is, all session wait events data
rolled up) since instance startup.
自系統啟動以來的等待事件
Because V$SESSION_WAIT is a current state view, it also contains a finer-granularity of information than
V$SESSION_EVENT or V$SYSTEM_EVENT. It includes additional identifying data for the current event in three parameter
columns: P1, P2, and P3.
For example, V$SESSION_EVENT can show that session 124 (SID=124) had many waits on the db file scattered read event,
but it does not show which file and block number. However, V$SESSION_WAIT shows the file number in P1, the block
number read in P2, and the number of blocks read in P3 (P1 and P2 let you determine for which segments the wait
event is occurring).
V$SESSION_WAIT 的事件的描述最詳細。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10248702/viewspace-669520/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle動態效能檢視學習筆記(1)_v$sysstatOracle筆記
- Oracle動態效能檢視學習筆記(3)_v$undostatOracle筆記
- Oracle動態效能檢視學習筆記(4)_v$rollstatOracle筆記
- Oracle動態效能檢視學習筆記(6)_v$filestatOracle筆記
- Oracle動態效能檢視學習筆記(7)_v$sessionOracle筆記Session
- Oracle動態效能檢視學習筆記(4)_v$waitstatOracle筆記AI
- Oracle動態效能檢視學習筆記(8)_v$waitstatOracle筆記AI
- Oracle動態效能檢視學習筆記(10)_v$session_waitOracle筆記SessionAI
- Oracle動態效能檢視學習筆記(2)_v$sesstat_v$mystat_v$statnameOracle筆記
- (轉):學習Oracle動態效能表-(20)-V$SYSTEM_EVENTOracle
- 學習動態效能表(18)--V$SYSTEM_EVENT
- Oracle動態效能檢視學習之v$sqltext & v$sqlareaOracleSQL
- (轉)Oracle動態效能檢視學習之v$processOracle
- Oracle動態效能檢視學習之 V$ROLLSTAT -- 轉Oracle
- Oracle動態效能檢視學習之v$lock & v$locked_objectOracleObject
- (轉)Oracle動態效能檢視學習之V$DB_OBJECT_CACHEOracleObject
- Oracle效能優化視訊學習筆記-動態調整SGAOracle優化筆記
- V$PGASTAT動態效能檢視AST
- oracle最重要的9個動態效能檢視Oracle
- 學習oracle動態效能表--v$transactionOracle
- oracle學習筆記——檢視、索引Oracle筆記索引
- Oracle檢視:常用動態效能檢視Oracle
- oracle最重要的9個動態效能檢視(zt)Oracle
- (轉):學習Oracle動態效能表-(9)-V$SESSION_WAIT,V$SESSION_EVENTOracleSessionAI
- (轉)Oracle 動態效能檢視Oracle
- 動態檢視V$SESSION_LONGOPS學習SessionGo
- Oracle動態效能檢視之v$session_longops ztOracleSessionGo
- Oracle的v$動態檢視 收藏Oracle
- (轉):學習Oracle動態效能表-(7)-V$SQLTEXT,V$SQLAREAOracleSQL
- [轉]學習Oracle動態效能表-(6)-V$SQLTEXT,V$SQLAREAOracleSQL
- (轉):學習Oracle動態效能表-(12)-V$PROCESSOracle
- (轉):學習Oracle動態效能表-(10)-V$FILESTATOracle
- (轉):學習Oracle動態效能表-(8)-V$SESSIONOracleSession
- (轉):學習Oracle動態效能表-(5)-V$SESSTATOracle
- (轉)學習Oracle動態效能表-(4)-V$SYSSTATOracle
- (轉):學習Oracle動態效能表-(2)-V$SQLTEXTOracleSQL
- (轉):學習Oracle動態效能表-(1)-V$SQLAREAOracleSQL
- (轉):學習Oracle動態效能表-(21)-V$UNDOSTATOracle