V$SESSION
WAIT_TIME |
NUMBER |
If the session is currently waiting, then the value is > -1 -2 This column has been deprecated in favor of the columns |
1.当会话的state为waiting时,wait_time为0.
2.wait_time 大于0时,指的是从上一次waiting到当前非waiting状态的间隔时间,单位为1/100秒。
3.wait_time为-1时,指的是从上一次waiting到当前非waiting状态的间隔时间小于1/100秒。
4.wait_time为-2时,TIMED_STATISTICS 设成了fasle。
V$ACTIVE_SESSION_HISTORY
WAIT_TIME |
NUMBER |
0 Total wait time for the event for which the session last waited if the session was on the CPU when sampled Whether or not |
1.wait_time为0 ,当在采样时,会话状态是waiting。
2.wait_time大于0,当在采样时,会话状态是on cpu,这个值便是从往上最后一次状态为waitting到当前的时间区间。
3.这里的采样频率是1s.
DBA_HIST_ACTIVE_SESS_HISTORY
WAIT_TIME |
NUMBER |
Total wait time (in microseconds) for the event for which the session last waited ( |
1.wait_time为0 ,当在采样时,会话状态是waiting。
2.wait_time大于0,当在采样时,会话状态是on cpu,这个值便是从往上最后一次状态为waitting到当前的时间区间。
3.这里的采样频率是10s.