Buffer Hit Ratio


>>Script Language and Platform: Oracle 9i
Oracle9i Buffer Hit Ratio

Author: Prasad Mahale


SELECT A.VALUE + B.VALUE “Logical Reads”,
C.VALUE “Physical Reads”,
ROUND(100 * ((A.VALUE+B.VALUE)-C.VALUE) /
(A.VALUE+B.VALUE)) “Buffer Hit Ratio %”
FROM V$SYSSTAT A,
V$SYSSTAT B,
V$SYSSTAT C
WHERE A.STATISTIC# = 41 –Consistent Gets–
AND B.STATISTIC# = 40 –Db Block Gets–
AND C.STATISTIC# = 42 –Physical Reads–



Disclaimer:
We hope that the information on these script pages is
valuable to you. Your use of the information contained in these pages,
however, is at your sole risk. All information on these pages is provided
“as -is”, without any warranty, whether express or implied, of its accuracy,
completeness, or fitness for a particular purpose…

Disclaimer Continued

Back to Database Journal Home

Get the Free Newsletter!

Subscribe to Cloud Insider for top news, trends & analysis

Latest Articles