<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Faulty Quotes 4 &#8211; Buffer Cache Hit Ratio (BCHR)</title>
	<atom:link href="http://hoopercharles.wordpress.com/2009/12/22/faulty-quotes-4-buffer-cache-hit-ratio-bchr/feed/" rel="self" type="application/rss+xml" />
	<link>http://hoopercharles.wordpress.com/2009/12/22/faulty-quotes-4-buffer-cache-hit-ratio-bchr/</link>
	<description>Miscellaneous Random Oracle Topics: Stop, Think, ... Understand</description>
	<lastBuildDate>Thu, 13 Jun 2013 22:46:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: After all these years, the BCHR still looks good&#8230;. &#171; Dallas Deeds&#8217;s Blog</title>
		<link>http://hoopercharles.wordpress.com/2009/12/22/faulty-quotes-4-buffer-cache-hit-ratio-bchr/#comment-1746</link>
		<dc:creator><![CDATA[After all these years, the BCHR still looks good&#8230;. &#171; Dallas Deeds&#8217;s Blog]]></dc:creator>
		<pubDate>Thu, 26 Aug 2010 18:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=438#comment-1746</guid>
		<description><![CDATA[[...] the exhaustive discussion, Charles Hooper has pulled everything together for you.          Leave a [...]]]></description>
		<content:encoded><![CDATA[<p>[...] the exhaustive discussion, Charles Hooper has pulled everything together for you.          Leave a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2009/12/22/faulty-quotes-4-buffer-cache-hit-ratio-bchr/#comment-138</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Thu, 07 Jan 2010 02:27:16 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=438#comment-138</guid>
		<description><![CDATA[Joel, thanks for sharing the script.  The 60% to 70% suggestion seems to be much lower than the other recommendations on this page.]]></description>
		<content:encoded><![CDATA[<p>Joel, thanks for sharing the script.  The 60% to 70% suggestion seems to be much lower than the other recommendations on this page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joel garry</title>
		<link>http://hoopercharles.wordpress.com/2009/12/22/faulty-quotes-4-buffer-cache-hit-ratio-bchr/#comment-135</link>
		<dc:creator><![CDATA[joel garry]]></dc:creator>
		<pubDate>Wed, 06 Jan 2010 23:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=438#comment-135</guid>
		<description><![CDATA[From tftsmstat.sql (unsupported Tales From The Script health check on metalink), circa 1993-1996:
[code]
column xn1 format a50
column xn2 format a50
column xn3 format a50
column xv1 new_value xxv1 noprint
column xv2 new_value xxv2 noprint
column xv3 new_value xxv3 noprint
column d1  format a50
column d2  format a50

prompt HIT RATIO: 
prompt
prompt Values Hit Ratio is calculated against:
prompt

      37 opens of replaced files
         8          0

        38 db block gets
         8     416712

        39 consistent gets
         8  124025843


select lpad(name,20,&#039; &#039;)&#124;&#124;&#039;  =  &#039;&#124;&#124;value xn1, value xv1
from   v$sysstat
where  statistic# = 38
/ 
-- was where  statistic# = 37

select lpad(name,20,&#039; &#039;)&#124;&#124;&#039;  =  &#039;&#124;&#124;value xn2, value xv2
from   v$sysstat
where  statistic# = 39
/ 

-- was 38
select lpad(name,20,&#039; &#039;)&#124;&#124;&#039;  =  &#039;&#124;&#124;value xn3, value xv3
from   v$sysstat b 
where  statistic# = 40
/ 
-- was 39

set pages 60 

select &#039;Logical reads = db block gets + consistent gets &#039;,
        lpad (&#039;Logical Reads = &#039;,24,&#039; &#039;)&#124;&#124;to_char(&amp;xxv1+&amp;xxv2) d1
from    dual 
/ 

select &#039;Hit Ratio = (logical reads - physical reads) / logical reads&#039;,
        lpad(&#039;Hit Ratio = &#039;,24,&#039; &#039;)&#124;&#124;
        round( (((&amp;xxv2+&amp;xxv1) - &amp;xxv3) / (&amp;xxv2+&amp;xxv1))*100,2 )&#124;&#124;&#039;%&#039; d2
from    dual 
/ 

prompt If the hit ratio is less than 60%-70%, increase the initialization
prompt parameter DB_BLOCK_BUFFERS.  ** NOTE:  Increasing this parameter will
prompt increase the SGA size.
prompt 
[/code]

In my 1997 edition of Advanced Oracle Tuning by Aronoff et al (signed by the authors :-) they give a hit ratio tuning, but enough caveats to almost negate it.  One interesting thing they point out is how temp segments are not recorded as logical reads, since they are unformatted gets and so don&#039;t need a consistency mechanism.  But they are physical reads, so it becomes possible to have a negative hit ratio.  Perhaps a clue of too small sort_area_size.]]></description>
		<content:encoded><![CDATA[<p>From tftsmstat.sql (unsupported Tales From The Script health check on metalink), circa 1993-1996:</p>
<pre class="brush: plain; title: ; notranslate">
column xn1 format a50
column xn2 format a50
column xn3 format a50
column xv1 new_value xxv1 noprint
column xv2 new_value xxv2 noprint
column xv3 new_value xxv3 noprint
column d1  format a50
column d2  format a50

prompt HIT RATIO: 
prompt
prompt Values Hit Ratio is calculated against:
prompt

      37 opens of replaced files
         8          0

        38 db block gets
         8     416712

        39 consistent gets
         8  124025843


select lpad(name,20,' ')||'  =  '||value xn1, value xv1
from   v$sysstat
where  statistic# = 38
/ 
-- was where  statistic# = 37

select lpad(name,20,' ')||'  =  '||value xn2, value xv2
from   v$sysstat
where  statistic# = 39
/ 

-- was 38
select lpad(name,20,' ')||'  =  '||value xn3, value xv3
from   v$sysstat b 
where  statistic# = 40
/ 
-- was 39

set pages 60 

select 'Logical reads = db block gets + consistent gets ',
        lpad ('Logical Reads = ',24,' ')||to_char(&amp;amp;xxv1+&amp;amp;xxv2) d1
from    dual 
/ 

select 'Hit Ratio = (logical reads - physical reads) / logical reads',
        lpad('Hit Ratio = ',24,' ')||
        round( (((&amp;amp;xxv2+&amp;amp;xxv1) - &amp;amp;xxv3) / (&amp;amp;xxv2+&amp;amp;xxv1))*100,2 )||'%' d2
from    dual 
/ 

prompt If the hit ratio is less than 60%-70%, increase the initialization
prompt parameter DB_BLOCK_BUFFERS.  ** NOTE:  Increasing this parameter will
prompt increase the SGA size.
prompt 
</pre>
<p>In my 1997 edition of Advanced Oracle Tuning by Aronoff et al (signed by the authors <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  they give a hit ratio tuning, but enough caveats to almost negate it.  One interesting thing they point out is how temp segments are not recorded as logical reads, since they are unformatted gets and so don&#8217;t need a consistency mechanism.  But they are physical reads, so it becomes possible to have a negative hit ratio.  Perhaps a clue of too small sort_area_size.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2009/12/22/faulty-quotes-4-buffer-cache-hit-ratio-bchr/#comment-29</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Wed, 23 Dec 2009 11:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=438#comment-29</guid>
		<description><![CDATA[Uwe,
I appreciate the comments about my posts on the OTN forums, and about the blog. 

Hopefully, people are finding that the randomness of the topics on this blog continues to keep the blog interesting. There are many great blogs on the Internet with a significant level of detail and research backing each post. And this blog, well, its &lt;em&gt;Miscellaneous Random Oracle Topics&lt;/em&gt;, and will sometimes refer back to those other blogs that are backed by detail and research.]]></description>
		<content:encoded><![CDATA[<p>Uwe,<br />
I appreciate the comments about my posts on the OTN forums, and about the blog. </p>
<p>Hopefully, people are finding that the randomness of the topics on this blog continues to keep the blog interesting. There are many great blogs on the Internet with a significant level of detail and research backing each post. And this blog, well, its <em>Miscellaneous Random Oracle Topics</em>, and will sometimes refer back to those other blogs that are backed by detail and research.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paresh Sarma</title>
		<link>http://hoopercharles.wordpress.com/2009/12/22/faulty-quotes-4-buffer-cache-hit-ratio-bchr/#comment-26</link>
		<dc:creator><![CDATA[Paresh Sarma]]></dc:creator>
		<pubDate>Wed, 23 Dec 2009 10:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=438#comment-26</guid>
		<description><![CDATA[Very nice article]]></description>
		<content:encoded><![CDATA[<p>Very nice article</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Uwe Hesse</title>
		<link>http://hoopercharles.wordpress.com/2009/12/22/faulty-quotes-4-buffer-cache-hit-ratio-bchr/#comment-25</link>
		<dc:creator><![CDATA[Uwe Hesse]]></dc:creator>
		<pubDate>Tue, 22 Dec 2009 19:16:25 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=438#comment-25</guid>
		<description><![CDATA[Charles,
I have just discovered your Blog. For already a while, I was following your answers on OTN with great interest, as I have found them always very good and thoroughly. So I really appreciate that you have chosen to write your own Blog. Keep up the good work!

Kind regards
Uwe]]></description>
		<content:encoded><![CDATA[<p>Charles,<br />
I have just discovered your Blog. For already a while, I was following your answers on OTN with great interest, as I have found them always very good and thoroughly. So I really appreciate that you have chosen to write your own Blog. Keep up the good work!</p>
<p>Kind regards<br />
Uwe</p>
]]></content:encoded>
	</item>
</channel>
</rss>
