<?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/"
		>
<channel>
	<title>Comments on: The Sin of Band-Aids</title>
	<atom:link href="http://www.oraclealchemist.com/oracle/the-sin-of-band-aids/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oraclealchemist.com/oracle/the-sin-of-band-aids/</link>
	<description>Steve Karam's Oracle Blog</description>
	<lastBuildDate>Thu, 29 Jul 2010 20:12:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Robert</title>
		<link>http://www.oraclealchemist.com/oracle/the-sin-of-band-aids/comment-page-1/#comment-43963</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Mon, 18 Aug 2008 21:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.oraclealchemist.com/?p=84#comment-43963</guid>
		<description>I hav run into this same issue in bith 9i &amp; 10g. A plan will suddenly change for the worse when one or more tables changes by a few percent. My solution in 10g has been to run statistics at a very high (50% to 100%) sample rate. This has given me pretty good results so far. The 9i version of the database got along fine with 10% sample rates.</description>
		<content:encoded><![CDATA[<p>I hav run into this same issue in bith 9i &amp; 10g. A plan will suddenly change for the worse when one or more tables changes by a few percent. My solution in 10g has been to run statistics at a very high (50% to 100%) sample rate. This has given me pretty good results so far. The 9i version of the database got along fine with 10% sample rates.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yue</title>
		<link>http://www.oraclealchemist.com/oracle/the-sin-of-band-aids/comment-page-1/#comment-43934</link>
		<dc:creator>Yue</dc:creator>
		<pubDate>Thu, 24 Jul 2008 19:16:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.oraclealchemist.com/?p=84#comment-43934</guid>
		<description>Have you encountered such situation?

the A and the B provide different plan hash values even at the same time?  

A. 
 select sql_id, plan_hash_value, users_opening,hash_value, child_number
from v$sql 
where sql_id=&#039;4c9k39a1skd9m&#039;
/

SQL_ID        PLAN_HASH_VALUE USERS_OPENING HASH_VALUE CHILD_NUMBER
------------- --------------- ------------- ---------- ------------
4c9k39a1skd9m       814482344             0 2206807347            0
B. 
SELECT * FROM TABLE(dbms_xplan.display_awr(&#039;4c9k39a1skd9m&#039;))
Plan hash value: 1130938188

In my actual production DB, I found that these two produced different plans and the users were experiencing A and not the B which is a better plan.   It seems that the B way is less reliable than A.</description>
		<content:encoded><![CDATA[<p>Have you encountered such situation?</p>
<p>the A and the B provide different plan hash values even at the same time?  </p>
<p>A.<br />
 select sql_id, plan_hash_value, users_opening,hash_value, child_number<br />
from v$sql<br />
where sql_id=&#8217;4c9k39a1skd9m&#8217;<br />
/</p>
<p>SQL_ID        PLAN_HASH_VALUE USERS_OPENING HASH_VALUE CHILD_NUMBER<br />
&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;<br />
4c9k39a1skd9m       814482344             0 2206807347            0<br />
B.<br />
SELECT * FROM TABLE(dbms_xplan.display_awr(&#8216;4c9k39a1skd9m&#8217;))<br />
Plan hash value: 1130938188</p>
<p>In my actual production DB, I found that these two produced different plans and the users were experiencing A and not the B which is a better plan.   It seems that the B way is less reliable than A.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donald K. Burleson</title>
		<link>http://www.oraclealchemist.com/oracle/the-sin-of-band-aids/comment-page-1/#comment-43844</link>
		<dc:creator>Donald K. Burleson</dc:creator>
		<pubDate>Sat, 21 Jun 2008 15:03:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.oraclealchemist.com/?p=84#comment-43844</guid>
		<description>Hi Steve,

Great note, very true of the real world.

Also, let&#039;s not forget to mention that system statistics (dbms_stats.gather_system_stats) can also improve execution plans in very much the same way as optimizer_index_cost_adj.</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>Great note, very true of the real world.</p>
<p>Also, let&#8217;s not forget to mention that system statistics (dbms_stats.gather_system_stats) can also improve execution plans in very much the same way as optimizer_index_cost_adj.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
