Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: buffer cache
p,
this query will tell you how many blocks are in cache for each segment. multiply by your db_block_size and divide that number by 1048576 to get megabytes.
remember that full table scan blocks get put on the LRU end of the LRU list (pre-816) so they might not be represented fairly by this query.
hth,
jack silvey
select
e.owner||'.'||e.segment_name segment_name,
sum(cnt) all_buffers, sum(hot) hot_buffers, sum(tch) touches
min(file#||'.'||dbablk) fb, count(*) cnt, sum(decode(lru_flag, 8, 1, 0)) hot, sum(tch) tch from sys.x_$bh where inst_id = userenv('Instance') and state in (1, 3) group by obj, class
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jack Silvey INET: jack_silvey_at_yahoo.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Jun 11 2002 - 22:03:21 CDT