Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: db file scattered/sequential read wait
I think you want a minus one in the second term.
Let's see, if block_id = 1 and you read 8 blocks, then 1...9, is *not* what
you want, so yeah, (block_id+blocks-1)
would tighten up that predicate.
mwf
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Jamadagni, Rajendra
Sent: Wednesday, June 16, 2004 1:00 PM
To: oracle-l_at_freelists.org
Subject: RE: db file scattered/sequential read wait
P1 is the file#, p2 is the block number and p3 is number of blocks being read in the current call.
Select owner, segment_name, segment_type
from dba_extents
where file_id = <p1>
and p2 between block_id and (block_id+blocks)
/
Should get you closer.
Raj
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of solbeach_at_cox.net
Sent: Wednesday, June 16, 2004 12:54 PM
To: oracle-l_at_freelists.org
Subject: db file scattered/sequential read wait
How do I determine which database object is being accessed when v$session_wait reports a "db file * read" is in progress?
![]() |
![]() |