Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Explanation about block_id in dba_extents

user511621Nov 26 2010 — edited Nov 26 2010
I have used below query to find the hot block(p2) and file(p1)

SELECT p1 "file#", p2 "block#", p3 "class#"
FROM v$session_wait
WHERE event ='latch: cache buffers chains';

In order to find the segment name and type we normally use this sql to find, but can any one explain clearly about this stmt.

WHERE file_id = &AFN and &BL between block_id AND block_id + blocks - 1

SELECT tablespace_name, segment_type, owner, segment_name
FROM dba_extents
WHERE file_id = &AFN
and &BL between block_id AND block_id + blocks - 1

wat to give in &BL ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 24 2010
Added on Nov 26 2010
2 comments
4,006 views