我们可以通过以下语句找出发生db file parallel read等待事件的数据文件和数据块: select p1 "fileid", p2 "block_id", p3 "requests" from v$session_wait where event = 'db file parallel read'; 优化该等待事件的手段可以参考优化db file sequential read等待事件中非SQL优化方法部分。 3.2.4 direct path r...
1、产生原因 db file sequential read这个是非常常见的I/O 相关的等待事件。表示发生了与索引扫描相关的等待。意味着I/O 出现了问题,通常表示I/O竞争或者I/O 需求太多。 db file parallel read这个事件表明会话正在并行执行多个读取的需求。 2、确定产生问题原因的对象 awr报告“SQL ordered by Reads”、v$sql视...
●【等待事件】User I/O类 等待事件(2.1)--db file sequential read(数据文件顺序读) ●【等待事件】User I/O类 等待事件(2.2)--db file scattered read(数据文件离散读) SELECT* FROM v$event_name WHERE NAME IN('db file parallel read'); 在V$SESSION_WAIT这个视图里面,这个等待事件有三个参数P1、P2...
SQL>selectevent#,name,parameter1,parameter2,parameter3fromv$event_namewherename='db file parallel read'; EVENT# NAME PARAMETER1 PARAMETER2 PARAMETER3--- --- --- --- ---120dbfileparallelreadfiles blocks requests 1. db file parallel read Contrary to what the name suggests, the db file par...
Db file parallel read 这是一个很容易引起误导的等待事件,实际上这个等待事件和并行操作(比如并行查询,并行DML)没有关系。 这个事件发生在数据库恢复的时候,当有一些数据块需要恢复的时候,Oracle会以并行的方式把他们从数据文件中读入到内存中进行恢复操作。
Wait Time:Wait until all of the I/Os are completed 解释: db file parallel read这在恢复期间发生。它也可能在缓冲区预取期间发生,作为优化(而不是执行多个单块读取)。从数据库并行读取需要作为恢复一部分进行更改的数据库块。
--//我看了生产系统,查询不到select * from V$ACTIVE_SESSION_HISTORY where event='db file parallel read'.相关等待事件. --//偶然,我发现动态取样会出现这样的等待事件做一个验证: 1.环境 SCOTT@book> @ ver1 PORT_STRING VERSION BANNER --- --- --- x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Da...
changes to the RDBMS itself may produce smaller performance improvements. Identify and resolve any SQL using unselective index scans. Use Ignite to find SQL with a large "db file parallel read" wait time -- indicating a long index scan. Look at the explain plan to see if the index scan is...
db file parallel read 50,524 2 33.74us 0.03 0.00 library cache: bucket mutex X 381 1 3.30ms 0.00 0.00 PX Deq: Signal ACK EXT 2,186 1 571.50us 0.00 0.00 wait list latch free 227 1 5.28ms 0.00 0.00 PX Deq: Slave Session Stats 4,364 1 268.68us 0.00 0.00 row cache lock 2,282 1...
dbfilesequentialread事件的优化(⼀)db file sequential read 事件的优化(⼀)db file sequential read等待事件有3个参数:file#,first block#,和block数量。在10g中,这等待事件受到⽤户I/O等待级别的影响。当处理db file sequential read等待事件的时候,牢记以下关键想法。l Oracle进程需要⼀个当前...