Resolving Issues Where Application Queries are Waiting Too Frequently for 'db file sequential read'

昨天有篇“db file sequential read”的介绍,还有一篇类似的:Resolving Issues Where Application Queries are Waiting Too Frequently for 'db file sequential read' Operations (文档 ID 1475825.1)

诊断“db file sequential read”的步骤

简述

低效的SQL会引起不同节点间非常多的块读。

问题确认

花费在本地数据库的active时间非常明显。

仅一些session,查询或job变慢(不是整个数据库)。

“db file sequential read”等待是整个DB time中占比最大的组件。

“db file sequential read”等待操作不慢(IO的平均时间没超过标准IO性能(例如少于20毫秒))。

等待“db file sequential read”操作太频繁的应用查询

等待“db file sequential read”事件指的是一个session正在等待一次从磁盘读到内存的单块读以满足查询的要求。

假设完成一次IO操作的平均时间是正常的(例如单次IO花费时间少于20毫秒),那么相比于单次IO操作的时间,花费在“db file sequential read”的总时间必须降到与IO次数相匹配。

如果“db file sequential read”等待次数太多,单条SQL又极消耗资源,那么这些查询的确可能需要调优以选择一种更能接受的执行路径,减少资源消耗。

为了确定哪些查询等待“db file sequential read”最多,需要采集与AWR报告相同时间段的ASH报告。在报告中,查找等待次数最多的查询。可以与AWR报告关联起来,根据CPU,IO和SQL统计节中的buffer gets的标准测量,判断查询的总体性能。

一旦有问题的语句已经确认,可以参考Document 223117.1 Troubleshooting I/O-related waits的“Reduce the I/O requirements of the database by tuning SQL”节中的方法,使用其中的方法提高这些语句的性能。

如果相比于太多这种等待事件,IO确实存在问题,那么可以参考下面的细节:

Document 1476092.1 Troubleshooting IO Performance Problems Impacting Scattered Reads

Document 262687.1 How to use the Sql Tuning Advisor

Document 1195363.1 Database Performance and SQL

衡量正确性

一旦已经尝试如上方法,对比最新的AWR与标准AWR(AWR是基线)。查找这种等待事件总体时间减少的百分比。如果仍有问题,需要重新分析这些问题,根据他们具体的现象定位具体的问题。

时间: 2024-07-30 18:36:41

Resolving Issues Where Application Queries are Waiting Too Frequently for 'db file sequential read'的相关文章

[文档]Resilience Issues for Application Workflows on Clouds

Resilience Issues for Application Workflows on Clouds Toàn Nguyên  Jean-Antoine-Désidéri This paper presents existing concepts and open issues related to the design, implementation and deployment of a fault-tolerant application framework on cloud com

Streams AQ: qmn coordinator waiting for slave to start等待事件

       Streams AQ: qmn coordinator waiting for slave to start等待事件很少见到,今天在查看一个客户的AWR报告中发现了这个等待事件,AWR报告的TOP如下:                        Event Waits Time(s) Avg wait (ms) % DB time Wait Class DB CPU   308   62.85   db file sequential read 92,033 96 1 19.6

Systemwide Tuning using STATSPACK Reports [ID 228913.1]

Systemwide Tuning using STATSPACK Reports [ID 228913.1]   修改时间 09-MAR-2012     类型 BULLETIN     状态 ARCHIVED   Systemwide Tuning using StatsPack Reports PURPOSE This article is a reference to understand the output generated by the STATSPACK utility. Si

Oracle AWR报告详细分析 (文档 ID 1523048.1)

Oracle AWR报告详细分析  (文档 ID 1523048.1) AWR 是 Oracle  10g 版本 推出的新特性, 全称叫Automatic Workload Repository-自动负载信息库 AWR 是通过对比两次快照(snapshot)收集到的统计信息,来生成报表数据,生成的报表包括多个部分. WORKLOAD REPOSITORY report for  DB Name DB Id Instance Inst num Release RAC Host ICCI 13140

【锁】Oracle锁系列

[锁]Oracle锁系列 1  BLOG文档结构图           2  前言部分 2.1  导读和注意事项 各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其它你所不知道的知识,~O(∩_∩)O~: ① 锁的概念.分类.及其模拟 ② 查询锁的视图及视图之间的关联 ③ 锁的参数(DML_LOCKS.DDL_LOCK_TIMEOUT) ④ FOR UPDATE及FOR UPDATE OF系列 ⑤ 带ONLINE和不带ONLINE创建索引的锁情况(是否阻塞DML操作) ⑥ 包或存

【等待事件】等待事件系列(1)--User I/O类型

[等待事件]等待事件系列(1)--User I/O类型 1  BLOG文档结构图     2  前言部分   2.1  导读和注意事项 各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其它你所不知道的知识,~O(∩_∩)O~: ①  等待事件系列(1)--User I/O类型     Tips: ① 本文在ITpub(http://blog.itpub.net/26736162).博客园(http://www.cnblogs.com/lhrbest)和微信公众号(xiaomaim

11.2.0.1 大量的 Mutex S 并且和Sys.Aud$有关

今天网友给我一份AWRRPT TOP5如下: cursor: mutex S 71,373,261 295,337 4 73.78 Concurrency DB CPU   30,974   7.74   library cache lock 560,800 18,037 32 4.51 Concurrency db file sequential read 1,168,603 8,481 7 2.12 User I/O enq: TX - row lock contention 11 8,10

时延、IOPS、带宽等词具体是个神马意思?

剪辑自: http://www.violin-memory.com/blog/the-fundamental-characteristics-of-storage/ Storage for DBAs: As a rule of thumb, pretty much any storage system can be characterised by three fundamental properties: Latency is a measurement of delay in a syste

小麦苗BLOG文章索引

小麦苗BLOG文章索引            自从2014年7月1号开始写blog到2015年5月5日,历时10个月的时间,大概写了90篇文章,这blog多了就乱了,今天抽空出来整理整理,方便大家也方便自己阅读,本文将一直更新,另外,最后我把所有的blog文章全列出来,可能会有用.    小麦苗的所有文章:itpub文章链接-小麦苗.zip     2015年06月03日更新一次,我写的blog数量:109 篇    2015年07月03日更新一次,我写的blog数量:126 篇    2016