Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> why different db cache hit ratios?

why different db cache hit ratios?

From: Ibrahim DOGAN <idogan_tech_at_yahoo.com>
Date: 23 Dec 2003 08:15:08 -0800
Message-ID: <6bf58828.0312230815.1d41295d@posting.google.com>


the calculation of db cache hit ratios using following methods produce different results?

1- using v$sysstat:
SELECT 100*(1- ((p.value - l.value - d.value) / s.value)) "Buffer Cache Hit Ratio"
FROM v$sysstat s, v$sysstat l, v$sysstat d, v$sysstat p WHERE s.name = 'session logical reads'

AND d.name = 'physical reads direct'
AND l.name = 'physical reads direct (lob)'
AND p.name = 'physical reads';


2- using v$buffer_pool_statistics

select (1-(physical_reads/(db_block_gets+consistent_gets)))*100 cache_hit_ratio
from v$buffer_pool_statistics;

Thanks,
i.d. Received on Tue Dec 23 2003 - 10:15:08 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US