Database Tuning (MOSC)

MOSC Banner

v$session_wait p1 vrs. dba_extents file_id columns

edited Aug 31, 2010 3:04AM in Database Tuning (MOSC) 3 commentsAnswered
 Hi all,

I'm trying to associate the p1 column of v$session_wait to the file_id column of either dba_extents or dba_data_files.

I'm running the following to provide the file_id and block_id for a second query...

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

followed by

SELECT relative_fno, owner, segment_name, segment_type
FROM dba_extents
WHERE file_id = &file AND &block BETWEEN block_id AND block_id + blocks - 1;

The problem I'm having is that the p1 column from v$session_wait is not returning the &AFN (absolute file number).

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center