|
|
|
|
|
|
|
Re: How to view the tables which are in the keep buffer cache???? [message #525371 is a reply to message #525324] |
Sat, 01 October 2011 11:28 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
John Watson
Messages: 8965 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Hi - I was working on a slightly different query while Michel was replying. This is my version:
select distinct t.owner, t.table_name
from
v$bh b join dba_objects o on (o.data_object_id = b.objd)
join dba_tables t on (t.table_name = o.object_name and t.owner = o.owner)
where
t.buffer_pool = 'KEEP'
and b.status <> 'free'
order by 1, 2
/
The significant difference is that I'm checking whether the buffer is flagged as 'free'. I think that if it is 'free', then if you need to re-visit it, it must be read from disc again. I've been testing this with ALTER DATABASE FLUSH BUFFER_CACHE, which does not appear to clear the entry from v$bh. I'm open to correction on this.
|
|
|
|
|