V$SYSTEM_EVENT、V$SESSION_EVENT、V$SESSION_WAIT&V$session、V$WAITSTAT
2012-12-17 19:43
232 查看
1、v$system_event
内容:统计数据,统计instance启动以来每种等待时间的等待次数、时间、平均时间等
目的:用来发现系统级评瓶颈
SQL> desc v$system_event
Name
------------------------
EVENT
TOTAL_WAITS --总等待次数
TOTAL_TIMEOUTS --等待超时次数
TIME_WAITED --总的等待时间,单位是百分之一秒 (最重要考虑)
AVERAGE_WAIT -- 平均等待时间,总的等待时间/总等待次数
TIME_WAITED_MICRO --总的等待时间的微秒形式 1/1000000
常见的等待现象:
latch free
enqueue
free buffer waits
buffer busy waits: 查看V$WAITSTAT
db file sequential read
db file scattered read
2、v$session_event(仅比v$system_event多一个sid字段)
内容:每个session所有等待事件的统计信息
目的:用来诊断缓慢原因
3、v$session或v$session_wait(当前session含 active和inactive)正在等待什么,无等待则显示上一次等待信息
SID: session id
? EVENT: Event the session is currently waiting for, or the last event the session had to wait for
? WAIT_TIME: Time (in hundredths of a second) that the session waited for the event; if the WAIT_TIME is 0, then the session is currently waiting for the event
? SEQ#: Gets incremented with every wait of the session
? P1, P2, P3: Wait event specific details for the wait
? P1TEXT, P2TEXT, P3TEXT: Description of P1,P2,P3 for the given event
WAIT_TIME Meaning Waiting
>0 Time waited in the last wait (in 10 ms clock ticks) No
0 Session is currently waiting for this event Yes
-1 Time waited in the last wait was less than 10 ms No
-2 Timing is not enabled No
4、V$WAITSTAT(统计)
目的:a summary all block buffer waits since instance startup。适于查找buffer busy waits
内容:统计数据,统计instance启动以来每种等待时间的等待次数、时间、平均时间等
目的:用来发现系统级评瓶颈
SQL> desc v$system_event
Name
------------------------
EVENT
TOTAL_WAITS --总等待次数
TOTAL_TIMEOUTS --等待超时次数
TIME_WAITED --总的等待时间,单位是百分之一秒 (最重要考虑)
AVERAGE_WAIT -- 平均等待时间,总的等待时间/总等待次数
TIME_WAITED_MICRO --总的等待时间的微秒形式 1/1000000
常见的等待现象:
latch free
enqueue
free buffer waits
buffer busy waits: 查看V$WAITSTAT
db file sequential read
db file scattered read
2、v$session_event(仅比v$system_event多一个sid字段)
内容:每个session所有等待事件的统计信息
目的:用来诊断缓慢原因
3、v$session或v$session_wait(当前session含 active和inactive)正在等待什么,无等待则显示上一次等待信息
SID: session id
? EVENT: Event the session is currently waiting for, or the last event the session had to wait for
? WAIT_TIME: Time (in hundredths of a second) that the session waited for the event; if the WAIT_TIME is 0, then the session is currently waiting for the event
? SEQ#: Gets incremented with every wait of the session
? P1, P2, P3: Wait event specific details for the wait
? P1TEXT, P2TEXT, P3TEXT: Description of P1,P2,P3 for the given event
WAIT_TIME Meaning Waiting
>0 Time waited in the last wait (in 10 ms clock ticks) No
0 Session is currently waiting for this event Yes
-1 Time waited in the last wait was less than 10 ms No
-2 Timing is not enabled No
4、V$WAITSTAT(统计)
目的:a summary all block buffer waits since instance startup。适于查找buffer busy waits
相关文章推荐
- 通过v$session和v$session_wait_class,v$system_event,v$event_histogram来确定锁等待
- Oracle 动态视图4 V$SESSION_WAIT & V$SESSION_EVENT
- Oracle OWI 等待事件视图(v$session_wait/v$session_event/v$system_event)
- Determine the Blocking Session for Event: 'cursor: pin S wait on X' [ID 786507.1]【每日一译】--20121107
- 通过v$session、v$session_wait_class,v$system_event,v$event_histogram来确定锁等待
- 191 You observed the following output for a user session: SQL > SELECT sid, event, seconds _in _wait
- 学习动态性能表(6)--v$session_wait&v$session_event
- [Oracle]OWI等待事件视图(v$session_wait/v$session_event/v$system_event)
- System.ArgumentException: 回发或回调参数无效。在配置中使用 < pages enableEventValidation="true"/> 或在页面中使用 <% @ Page
- System.ArgumentException: 回发或回调参数无效。在配置中使用 < pages enableEventValidation="true"/>
- 查找出现“wait_event_timeout failed for session X”的原因
- Oracle动态性能表-(8)-V$SESSION_WAIT,V$SESSION_EVENT
- socket模型使归纳(EventSelect—>HPR_WaitForMultipleObjects—>EnumNetworkEvents示例)
- 执行CreateObject("Scripting.FileSystemObject")代码遇到"Operation is disallowed in this session"问题
- V$system_event中Wait事件的一段话和resources_wait.sql
- How to Determine the Blocking Session for Event: 'cursor: pin S wait on X' (文档 ID 786507.1)
- (二十二)unity4.6学习Ugui中文文档-------交互-Eventsystem & Binding
- 最常用的性能视图——v$system_event、v$session_event(3)!
- 学习Oracle动态性能表-(8)-V$SESSION_WAIT,V$SESSION_EVENT
- 10g wait event: read by other session