Oracle 视图 V$SESSION_EVENT 官方解释,作用,如何使用详细说明
本站中文解释
也叫V$SYSTEM_EVENT视图,用于显示会话等待事件的信息,其中 V$SESSION_EVENT.EVENT即做为事件名称,有些事件是比较常被其他程序使用,比如SQL*Net message from client,Oracle系统自执行的sql会有不同的等待事件,比如
library cache pin、direct path read/write 等。可以用如下查询来查看有关的会话的等待事件情况:
SELECT s.sid,
s.serial#,
se.event,
se.seconds_in_wait,
se.state
FROM v$session s,
v$session_event se
WHERE s.sid = se.sid
AND s.serial# = se.serial#;
官方英文解释
V$SESSION_EVENT
displays information on waits for an event by a session. Note that the TIME_WAITED
and AVERAGE_WAIT
columns will contain a value of zero on those platforms that do not support a fast timing mechanism. If you are running on one of these platforms and you want this column to reflect true wait times, then you must set TIMED_STATISTICS
to true
in the parameter file; doing this will have a small negative effect on system performance.
See Also:
“TIMED_STATISTICS”
Column | Datatype | Description |
---|---|---|
|
|
Session identifier |
|
|
Name of the wait event; derived statistic name from See Also: “Oracle Wait Events” |
|
|
Total number of waits for the event by the session |
|
|
Total number of timeouts for the event by the session |
|
|
Total amount of time waited for the event by the session (in hundredths of a second) |
|
|
Average amount of time waited for the event by the session (in hundredths of a second) |
|
|
Maximum amount of time waited for the event by the session (in hundredths of a second) |
|
|
Total amount of time waited for the event by the session (in microseconds) |
|
|
Total amount of CPU time consumed by the session while implementing the wait event itself (in microseconds) |
|
|
Identifier of the wait event |
|
|
Identifier of the wait class of the wait event |
|
|
Number of the wait class of the wait event |
|
|
Name of the wait class of the wait event |
|
|
The ID of the container to which the data pertains. Possible values include:
|