重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 722|回复: 0
打印 上一主题 下一主题

[参考文档] Oracle 等待事件 db file sequential read

[复制链接]
跳转到指定楼层
楼主
发表于 2023-10-19 10:39:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
oracle 数据库中的 db file sequential read 事件是指 Oracle 在读取数据库表中存储的数据的过程中发生的一种串行逻辑行为。
此过程通常用于执行文件序列读取操作,以便将返回的一行或更多行数据尽可能快地传输到用户程序。
该操作基本上反映了访问数据库表所花费的时间,并允许您查看客户端和服务器之间在发送和接收数据方面发生的推迟。
所有 SQL 语句都将产生 db file sequential reads 事件,具体取决于应用程序的类型和缓存的大小。
在 Oracle 优化过程中,需要密切关注每个记录访问的相关性能,这包括对 db file sequential reads事件的关注。
由于在执行 db file sequential read 操作时存在潜在的 IO 延迟,因此应尽可能减少 db file sequential reads 事件的发生。

要优化这种事件,Oracle DBA 可以优化以下参数以减少 db file sequential reads 的消耗:
1、使用合理的 DB_CACHE_SIZE 和 DB_nK_CACHE_SIZE 参数,以缓存更多数据,减少真正 IO 的发生。
2、设置 DB_KEEP_CACHE_SIZE 参数来尽可能保留用过的块在SGA中。如果这些块缓存在内存中,则可以避免执行 db file sequential read 操作。
3、使用 SQL 场观点,以实现更好的逻辑读取,并减少实际的 IO 访问次数。
4、调整 I/O 网络,CPU 和存储资源,以改善 Oracle 数据库访问速度。
有时您还需要对 db file sequential reads 事件进行定制。可以禁用此事件,以便 Oracle 不会记录其发出的 SQL 语句中所产生的 IO,目的是消除多余的冗余操作,以提高系统性能。

官方英文解释The session waits while a sequential read from the database is performed. This event is also used for rebuilding the control file, dumping data file headers, and getting the database file headers.
Wait Time: The wait time is the actual time it takes to do the I/O                     

See Also:
  • Oracle Database
                                            Performance Tuning Guide for more information about this wait event                              
  • Oracle Database
                                            Performance Tuning Guide for more information about how this wait event can help identify I/O problems                              
  • Oracle Database
                                            Performance Tuning Guide about potential causes for this wait event                              


Parameter
Description

file#
See “file#”

block#
See “block#”

blocks
This is the number of blocks that the session is trying to read (should be 1)
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-2 22:16 , Processed in 0.100667 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表