oracle试图--v$event_histogram
来源:互联网 发布:儿童牙刷推荐 知乎 编辑:程序博客网 时间:2024/06/03 14:52
V$EVENT_HISTOGRAM
已等待为基础,显示等待的次数,最大等待,总等待时间的直方图,单位是毫秒。时间间隔为< 1 ms, < 2 ms, < 4 ms, < 8 ms, ... < 221 ms,< 222 ms, and >= 222 ms。
TIMED_STATISTICS初始化参数设置为true,才会统计直方图。
Column
Datatype
Description
EVENT#
NUMBER
Event number
EVENT
VARCHAR2(64)
Name of the Event
WAIT_TIME_MILLI
NUMBER
Amount of time the bucket represents (in milliseconds). If the duration = num, then this column represents waits of duration < num that are not included in any smaller bucket.
WAIT_COUNT
NUMBER
Number of waits of the duration belonging to the bucket of the histogram
LAST_UPDATE_TIME
VARCHAR2(64)
Indicates the last time the bucket was updated (the ending timestamp of the last wait falling into the bucket's duration)
CON_ID
NUMBER
The ID of the container to which the data pertains. Possible values include:
0: This value is used for rows containing data that pertain to the entire CDB. This value is also used for rows in non-CDBs.
1: This value is used for rows containing data that pertain to only the root
n: Where n is the applicable container ID for the rows containing data
列的解释
WAIT_TIME_MILLI:单位毫秒,在这个bucket区间(<num)的直方图。
WAIT_COUNT:在这个bucket区间等待的次数。
LAST_UPDATE_TIME:bucket的最后一次更新时间(最后一次等待落入bucket区间的结束时间戳)。
TIMED_STATISTICS
Property
Description
Parameter type
Boolean
Default value
If STATISTICS_LEVEL is set to TYPICAL or ALL, then true
If STATISTICS_LEVEL is set to BASIC, then false
Modifiable
ALTER SESSION, ALTER SYSTEM
Modifiable in a PDB
Yes
Range of values
true | false
Basic
No
Values
true
统计信息被收集并存储在跟踪文件中或显示在V$SESSTATS和V$SYSSTATS动态性能视图中。false
所有时间相关统计信息的值设置为零。此设置使Oracle避免了从操作系统请求时间的开销。
更多
从版本11.1.0.7.0开始,如果STATISTICS_LEVEL的值设置为TYPICAL或ALL,则TIMED_STATISTICS参数的值不能设置为false。
在某些具有非常快的定时器访问的系统上,即使将此参数设置为false,Oracle也可能启用定时。在这些系统上,将参数设置为true有时可以为长操作产生更准确的统计信息。
示例:
如下log file sync,大部分等待小于16ms,说明这个是正常的。
EVENT
WAIT_TIME_MILLI
WAIT_COUNT
LAST_UPDATE_TIME
log file sync
1
2853759659
09-5月 -17 03.49.52.456773 下午 +08:00
log file sync
2
2460852221
09-5月 -17 03.49.52.757307 下午 +08:00
log file sync
4
2005459279
09-5月 -17 03.49.52.789929 下午 +08:00
log file sync
8
1718079553
09-5月 -17 03.49.52.783671 下午 +08:00
log file sync
16
1135553265
09-5月 -17 03.49.52.327942 下午 +08:00
log file sync
32
386020063
09-5月 -17 03.49.50.334719 下午 +08:00
log file sync
64
41530665
09-5月 -17 03.49.41.857935 下午 +08:00
log file sync
128
1391206
09-5月 -17 03.30.04.133470 下午 +08:00
log file sync
256
216167
09-5月 -17 11.00.01.471816 上午 +08:00
log file sync
512
30375
08-5月 -17 08.44.50.348928 下午 +08:00
log file sync
1024
1170
08-5月 -17 08.44.50.349377 下午 +08:00
log file sync
2048
2225
08-5月 -17 08.44.50.350464 下午 +08:00
log file sync
4096
5652
08-5月 -17 08.44.50.358355 下午 +08:00
log file sync
8192
10919
08-5月 -17 08.44.50.361524 下午 +08:00
log file sync
16384
13246
22-1月 -17 10.39.53.424109 下午 +08:00
- oracle试图--v$event_histogram
- Oracle试图--v$event_name
- Oracle试图--v$system_event
- Oracle试图--V$SESSION_EVENT
- v$event_histogram柱状图分析
- 通过v$session和v$session_wait_class,v$system_event,v$event_histogram来确定锁等待
- 通过v$session、v$session_wait_class,v$system_event,v$event_histogram来确定锁等待
- Oracle试图
- 查询oracle中的DBA_SEGMENTS试图
- oracle不可更新的试图
- oracle 表或试图不存在
- Oracle v$session v$mystat v$process
- oracle数据库生产树结构试图
- Oracle数据字典和动态性试图
- 纪念下 恶心的oracle试图排序
- Oracle数据库中同义词、试图和序列
- Oracle V$SESSION详解
- oracle v$librarycache详解
- iOS开发常用的加密方式介绍和使用
- Linux学习之五(bash特性详解)
- Smack 报错:Exception in loadSmackClass
- 注册表操作
- 解析Javascript事件冒泡机制
- oracle试图--v$event_histogram
- mysql_每隔十分钟定时器
- Problem : 平面上的点和线——Point类、Line类 (VII)
- 1101. Quick Sort (25)[快排]
- C++: 类的继承派生
- 微信小程序TLS版本大于1.2
- HAWQ与Hive查询性能对比测试
- ALV中的fieldcat常用字段属性选项大全
- Error fetching https://ruby.taobao.org/:no such name淘宝镜源无效解决