session视图中wait_time

V$SESSION
WAIT_TIME
NUMBER
If the session is currently waiting, then the value is 0 . If the session is not in a wait, then the value is as follows:
> 0 - Value is the duration of the last wait in hundredths of a second
-1 - Duration of the last wait was less than a hundredth of a second
-2 - Parameter TIMED_STATISTICS was set to false
This column has been deprecated in favor of the columns WAIT_TIME_MICRO and STATE .
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 if the session was waiting at the time of sampling
Total wait time for the event for which the session last waited if the session was on the CPU when sampled
Whether or not WAIT_TIME = 0 is what is useful to find the SESSION_STATE at the time of sampling, rather than the actual value of WAIT_TIME itself. Maps to V$SESSION.WAIT_TIME .

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 ( 0 if currently waiting)
1.wait_time为0 ,当在采样时,会话状态是waiting。
2.wait_time大于0,当在采样时,会话状态是on cpu,这个值便是从往上最后一次状态为waitting到当前的时间区间。
3.这里的采样频率是10s.

分享名称:session视图中wait_time
文章源于:http://hxwzsj.com/article/pgpphj.html

其他资讯

Copyright © 2025 青羊区翔捷宏鑫字牌设计制作工作室(个体工商户) All Rights Reserved 蜀ICP备2025123194号-14
友情链接: 成都网站设计 成都网站建设 外贸营销网站建设 成都网站设计 网站制作 成都网站制作公司 高端网站建设 品牌网站建设 成都网站建设 成都网站建设公司 网站建设公司 成都品牌网站建设 做网站设计 网站建设公司 攀枝花网站设计 高端网站设计 网站设计公司 网站建设费用 成都定制网站建设 自适应网站设计 成都网站制作 网站制作公司