1. db file scattered read-DB 文件分散读取
这种情况通常显示与全表扫描相关的等待。
当数据库进行全表扫时,基于性能的考虑,数据会分散(scattered)读入Buffer Cache。如果这个等待事件比较显著,可能说明对于某些全表扫描的表,没有创建索引或者没有创建合适的索引,我们可能需要检查这些数据表已确定是否进行了正确的设置。
然而这个等待事件不一定意味着性能低下,在某些条件下Oracle 会主动使用全表扫描来替换索引扫描以提高性能,这和访问的数据量有关,在CBO 下Oracle 会进行更为智能的选择,在RBO 下Oracle 更倾向于使用索引。
因为全表扫描被置于LRU(Least Recently Used,最近最少适用)列表的冷端(cold end),对于频繁访问的较小的数据表,可以选择把他们Cache 到内存中,以避免反复读取。
当这个等待事件比较显著时,可以结合v$session_longops 动态性能视图来进行诊断,该视图中记录了长时间(运行时间超过6 秒的)运行的事物,可能很多是全表扫描操作(不管怎样,这部分信息都是值得我们注意的)。
2. db file sequential read-DB 文件顺序读取。
这一事件通常显示与单个数据块相关的读取操作(如索引读取)。
如果这个等待事件比较显著,可能表示在多表连接中,表的连接顺序存在问题,可能没有正确的使用驱动表;或者可能说明不加选择地进行索引。
在
大多数情况下我们说,通过索引可以更为快速的获取记录,所以对于一个编码规范、调整良好的数据库,这个等待很大是很正常的。但是在很多情况下,使用索引并
不是最佳的选择,比如读取较大表中大量的数据,全表扫描可能会明显快于索引扫描,所以在开发中我们就应该注意,对于这样的查询应该进行避免使用索引扫描。
db file scattered read一般是在一次性读取多个连续的BLOCK的时候,产生的等待事件。很多网友喜欢把这个事件和全表扫描划等
号,这其实是不全面的。全表扫描一般来说会产生db file scattered read,但是全索引扫描,索引范围扫描也会产生
db file scattered read。db file sequential read是数据库中最常见的等待事件,一个状态良好的系统,这个
等待应该占比较高的比重,排在所有等待事件的第一位(没有什么业务的系统可能除外)。
分享到:
相关推荐
数据库 等待事件Db file sequential read的介绍。The db file sequential read Oracle metric event signifies that the user process is reading buffers into the SGA buffer cache and is waiting for a physical...
db file sequential read(ms) log file parallel write(ms) log file sync(ms) db file scattered read(ms) #IO WorkLoad Oracle IOPS Oracle MBPS db file sequential read db file scattered read log file ...
buffer busy waits db file parallel write db file single write db file scattered read db file sequential read diret path write/read enqueue
队列等待之TX - allocate ITL entry引起的死锁处理 ...Db file sequential read异常等待事件分析与处理。 Db file scattered read异常等待事件分析与处理。 Direct path read异常等待事件分析与处理。
看书笔记db file scattered read DB ,db file sequential read DB,free buffer waits,log buffer space,log file switch,log file sync 我们可以通过视图v$session_wait来查看系统当前的等待事件,以及与等待事件相...
Scattered Data Interpolation in Three or More VariablesScattered Data Interpolation in Three or More Variables
MATLAB 三维点云重构Surface recostruction from scattered points cloud MyCrust090209(matlab).zip
9.5.1 db file sequential read(数据文件顺序读取) 439 9.5.2 db file scattered read等待事件 440 9.5.3 direct path read/write(直接路径读/写) 444 9.5.4 日志文件相关等待 453 9.5.5 Enqueue(队列等待)...
Static Hand Gesture Recognition with Electromagnetic Scattered Field via Complex Attention Convolutional Neural Network
径向基函数 (RBF) 可用于散点数据的插值和近似,即数据不需要位于任何规则网格上。 同一个函数可以处理任何维度的数据插值。 有关更多示例,请参阅文件 rbftest.m。 1. 创建 RBF 插值使用rbf=rbfcreate(x, f); ?X...
Python分散文件
对QAM的频谱、散图、眼图以及误码率进行了仿真。使用matlab语言。
散射系数的计算,以及散射光强分布场的计算。一整套程序
用Shepard方法实现散乱数据的曲面拟合
宝丽来_画廊 Scattered Polaroid Gallery,使用 CSS3 和 Javascript/jQuery 开发的动画 演示: :
开源项目-abourget-getting-started-with-golang.zip,Installing Go tools for Sublime is scattered all around.. help me have a definitive guide.
For tissue imaging,the least-scattered photons arriving at a detector may have a significant effect on the development of imaging algorithms. Tracing least-scattered photons may be helpful for ...
Scattered pilot detection of CMMB signals based on data smoothing in cognitive radio networks
To date, however, no literature has studied near-zone evanescent waves scattered from a spatially deterministic and anisotropic medium. In this Letter, integral expressions are derived to represent ...
使用 Mie 系列解决方案计算系数(An 和 Bn)和复值散射远场(PEC)以及分层(分层)电介质球(有或没有 PEC 核心)的脚本。 遵循第 3 章中的处理 鲁克等。 阿尔。 “雷达横截面手册”,全体会议出版社,1970年。 ...