<?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: But it&#8217;s in the manual!</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Wed, 19 Jun 2013 11:02:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Book Review: Oracle Database 11g Performance Tuning Recipes &#171; Charles Hooper&#039;s Oracle Notes</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-41676</link>
		<dc:creator><![CDATA[Book Review: Oracle Database 11g Performance Tuning Recipes &#171; Charles Hooper&#039;s Oracle Notes]]></dc:creator>
		<pubDate>Sat, 10 Sep 2011 21:13:49 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-41676</guid>
		<description><![CDATA[[...] Tuning Manual (with a small, but notable correction), but that SQL statement potentially produces misleading information. (pages [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Tuning Manual (with a small, but notable correction), but that SQL statement potentially produces misleading information. (pages [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-30610</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Fri, 21 Mar 2008 06:41:48 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-30610</guid>
		<description><![CDATA[Alan,
From 9i onwards, you might want to look at v$segstat rather than v$bh, it&#039;s a more direct representation of the information you want.

You might want to look at what I&#039;ve done in &lt;a href=&quot;http://jonathanlewis.wordpress.com/2007/05/16/vsession_wait_history/&quot; rel=&quot;nofollow&quot;&gt;this post&lt;/a&gt; to avoid using tables for holding intermediate results - you may be able to use a /*+ no_merge */ union all view with a delay built in to do the job of your two scratch tables.]]></description>
		<content:encoded><![CDATA[<p>Alan,<br />
From 9i onwards, you might want to look at v$segstat rather than v$bh, it&#8217;s a more direct representation of the information you want.</p>
<p>You might want to look at what I&#8217;ve done in <a href="http://jonathanlewis.wordpress.com/2007/05/16/vsession_wait_history/" rel="nofollow">this post</a> to avoid using tables for holding intermediate results &#8211; you may be able to use a /*+ no_merge */ union all view with a delay built in to do the job of your two scratch tables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Kendall</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-30605</link>
		<dc:creator><![CDATA[Alan Kendall]]></dc:creator>
		<pubDate>Thu, 20 Mar 2008 23:23:06 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-30605</guid>
		<description><![CDATA[By taking a snapshot of v$bh, you get what is being read into memory at this moment.  So v$bh and dba_objects can be used to identify what is in memory, and what is doing disk reads. This can be very handy to see what is running at this moment. In the following example the system is almost idle in I/O, reading in only 68 blocks.

&lt;code&gt;
SQL &gt; @v$bh2

BUFFERS_READ_INTO_MEMORY OBJECT_IN_MEMORY
------------------------ ----------------------------------------
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;  2 IDX_LINKAGES_RELATION_NAME
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 66 ALAN9
------------------------
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 68

COLUMN OBJECT_in_memory FORMAT A40
COLUMN NUMBER_OF_BLOCKS FORMAT 999,999,999,999
column buffers_read_into_memory format 9999999999

break on report
compute sum of buffers_read_into_memory on report

set termout off
drop table alan9;
drop table alan10;

create table alan9 nologging as 
select OBJD,FILE#,BLOCK# from v$bh;

create table alan10 nologging as
select OBJD,FILE#,BLOCK# from v$bh
minus
select OBJD,FILE#,BLOCK# from alan9;

set termout on

SELECT COUNT(*) buffers_read_into_memory,
o.OBJECT_NAME Object_in_Memory
&#160; &#160;  FROM DBA_OBJECTS o, alan10 bh
&#160; &#160; WHERE o.DATA_OBJECT_ID = bh.OBJD
&#160; &#160; &#160; AND o.OWNER&#160; &#160; &#160; &#160;  != &#039;SYS&#039;
&#160; &#160; GROUP BY o.OBJECT_NAME
&#160; &#160; having count(*)&gt;0
&#160; &#160; ORDER BY COUNT(*);

set termout off
drop table alan9;
drop table alan10;
set termout on
&lt;/code&gt;
]]></description>
		<content:encoded><![CDATA[<p>By taking a snapshot of v$bh, you get what is being read into memory at this moment.  So v$bh and dba_objects can be used to identify what is in memory, and what is doing disk reads. This can be very handy to see what is running at this moment. In the following example the system is almost idle in I/O, reading in only 68 blocks.</p>
<p><code><br />
SQL &gt; @v$bh2</p>
<p>BUFFERS_READ_INTO_MEMORY OBJECT_IN_MEMORY<br />
------------------------ ----------------------------------------<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  2 IDX_LINKAGES_RELATION_NAME<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 66 ALAN9<br />
------------------------<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 68</p>
<p>COLUMN OBJECT_in_memory FORMAT A40<br />
COLUMN NUMBER_OF_BLOCKS FORMAT 999,999,999,999<br />
column buffers_read_into_memory format 9999999999</p>
<p>break on report<br />
compute sum of buffers_read_into_memory on report</p>
<p>set termout off<br />
drop table alan9;<br />
drop table alan10;</p>
<p>create table alan9 nologging as<br />
select OBJD,FILE#,BLOCK# from v$bh;</p>
<p>create table alan10 nologging as<br />
select OBJD,FILE#,BLOCK# from v$bh<br />
minus<br />
select OBJD,FILE#,BLOCK# from alan9;</p>
<p>set termout on</p>
<p>SELECT COUNT(*) buffers_read_into_memory,<br />
o.OBJECT_NAME Object_in_Memory<br />
&nbsp; &nbsp;  FROM DBA_OBJECTS o, alan10 bh<br />
&nbsp; &nbsp; WHERE o.DATA_OBJECT_ID = bh.OBJD<br />
&nbsp; &nbsp; &nbsp; AND o.OWNER&nbsp; &nbsp; &nbsp; &nbsp;  != 'SYS'<br />
&nbsp; &nbsp; GROUP BY o.OBJECT_NAME<br />
&nbsp; &nbsp; having count(*)&gt;0<br />
&nbsp; &nbsp; ORDER BY COUNT(*);</p>
<p>set termout off<br />
drop table alan9;<br />
drop table alan10;<br />
set termout on<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saibabu Devabhaktuni</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-22578</link>
		<dc:creator><![CDATA[Saibabu Devabhaktuni]]></dc:creator>
		<pubDate>Tue, 16 Oct 2007 08:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-22578</guid>
		<description><![CDATA[Jonathan,

_db_block_max_cr_dba is literally killing our database performance, too much CPU is being burned to identify the right buffer , waiting on cache buffer chains latch. We are on Oracle 8i. Even though the default value of _db_block_max_cr_dba is 6, it is not going up after 8 in 10g and in Oracle 8i it is limiting at around 30. How do we get rid of the cloned buffers, setting SGA to a lower value would help but it causes physical I/O to go up. Appreciate your thoughts on this.

Thanks,
 Sai.]]></description>
		<content:encoded><![CDATA[<p>Jonathan,</p>
<p>_db_block_max_cr_dba is literally killing our database performance, too much CPU is being burned to identify the right buffer , waiting on cache buffer chains latch. We are on Oracle 8i. Even though the default value of _db_block_max_cr_dba is 6, it is not going up after 8 in 10g and in Oracle 8i it is limiting at around 30. How do we get rid of the cloned buffers, setting SGA to a lower value would help but it causes physical I/O to go up. Appreciate your thoughts on this.</p>
<p>Thanks,<br />
 Sai.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cache Buffers Chains and Latch Spelunking : Ardent Performance Computing</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-20666</link>
		<dc:creator><![CDATA[Cache Buffers Chains and Latch Spelunking : Ardent Performance Computing]]></dc:creator>
		<pubDate>Fri, 14 Sep 2007 14:59:04 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-20666</guid>
		<description><![CDATA[[...] But it’s in the manual! [...]]]></description>
		<content:encoded><![CDATA[<p>[...] But it’s in the manual! [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-73</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Sat, 04 Nov 2006 16:24:44 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-73</guid>
		<description><![CDATA[Following up a comment to the &lt;a href=&quot;http://jonathanlewis.wordpress.com/2006/11/02/clarity-clarity-clarity/#comment-53&quot; rel=&quot;nofollow&quot;&gt;Clarity, Clarity, Clarity&lt;/a&gt; post - I might also point out that:
(a) I would normally swap the order of the objects in the &lt;em&gt;where&lt;/em&gt; clause to indicate the expected order of execution, and
(b) I don&#039;t normally write keywords in capitals and right-align them.
]]></description>
		<content:encoded><![CDATA[<p>Following up a comment to the <a href="http://jonathanlewis.wordpress.com/2006/11/02/clarity-clarity-clarity/#comment-53" rel="nofollow">Clarity, Clarity, Clarity</a> post &#8211; I might also point out that:<br />
(a) I would normally swap the order of the objects in the <em>where</em> clause to indicate the expected order of execution, and<br />
(b) I don&#8217;t normally write keywords in capitals and right-align them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christo Kutrovsky</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-64</link>
		<dc:creator><![CDATA[Christo Kutrovsky]]></dc:creator>
		<pubDate>Fri, 03 Nov 2006 21:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-64</guid>
		<description><![CDATA[Jonathan,

Your post reminded me on something I&#039;ve developed a while ago. So I made a post about it.

Basically same idea, but enable it for RAC + some cache fusion efficiency numbers that you can extract:

http://www.pythian.com/blogs/282/oracle-rac-cache-fusion-efficiency-a-buffer-cache-analysis-for-rac]]></description>
		<content:encoded><![CDATA[<p>Jonathan,</p>
<p>Your post reminded me on something I&#8217;ve developed a while ago. So I made a post about it.</p>
<p>Basically same idea, but enable it for RAC + some cache fusion efficiency numbers that you can extract:</p>
<p><a href="http://www.pythian.com/blogs/282/oracle-rac-cache-fusion-efficiency-a-buffer-cache-analysis-for-rac" rel="nofollow">http://www.pythian.com/blogs/282/oracle-rac-cache-fusion-efficiency-a-buffer-cache-analysis-for-rac</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-56</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Fri, 03 Nov 2006 08:18:22 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-56</guid>
		<description><![CDATA[Mladen,
I think the book by Dan Tow is worth reading. I don&#039;t agree 100% with some of his side-comments, but the analytical method he describes is very useful.]]></description>
		<content:encoded><![CDATA[<p>Mladen,<br />
I think the book by Dan Tow is worth reading. I don&#8217;t agree 100% with some of his side-comments, but the analytical method he describes is very useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mladen Gogala</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-49</link>
		<dc:creator><![CDATA[Mladen Gogala]]></dc:creator>
		<pubDate>Fri, 03 Nov 2006 03:46:25 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-49</guid>
		<description><![CDATA[Jonathan, thanks for adding a new page to my everyday reading routine.I am looking for articles about the general principles of writing SQL. Do you have any site or article that might help me with that?]]></description>
		<content:encoded><![CDATA[<p>Jonathan, thanks for adding a new page to my everyday reading routine.I am looking for articles about the general principles of writing SQL. Do you have any site or article that might help me with that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug C</title>
		<link>http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-47</link>
		<dc:creator><![CDATA[Doug C]]></dc:creator>
		<pubDate>Fri, 03 Nov 2006 00:52:35 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2006/11/02/but-its-in-the-manual/#comment-47</guid>
		<description><![CDATA[I just want to say.. I am THRILLED you have this new blog.  I will read it every day.]]></description>
		<content:encoded><![CDATA[<p>I just want to say.. I am THRILLED you have this new blog.  I will read it every day.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
