<?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: Everything Changes</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2008/03/11/everything-changes/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2008/03/11/everything-changes/</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Fri, 24 May 2013 13:27:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Log Buffer #89: A Carnival of the Vanities for DBAs</title>
		<link>http://jonathanlewis.wordpress.com/2008/03/11/everything-changes/#comment-53499</link>
		<dc:creator><![CDATA[Log Buffer #89: A Carnival of the Vanities for DBAs]]></dc:creator>
		<pubDate>Tue, 12 Feb 2013 17:12:54 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=349#comment-53499</guid>
		<description><![CDATA[[...] is Oracle&#8217;s ever-evolving Cost Based Optimizer. Jonathan Lewis at Oracle Scratchpad looks at the CBO and its erratic growing pains from version 9 onwards and why it behaves the way it [...]]]></description>
		<content:encoded><![CDATA[<p>[...] is Oracle&#8217;s ever-evolving Cost Based Optimizer. Jonathan Lewis at Oracle Scratchpad looks at the CBO and its erratic growing pains from version 9 onwards and why it behaves the way it [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2008/03/11/everything-changes/#comment-35000</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Wed, 16 Dec 2009 10:37:15 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=349#comment-35000</guid>
		<description><![CDATA[Mukund,

Your observation is correct - this cost is more realistic, and the change is an improvement in the optimizer&#039;s algorithms. 

The point I was trying to make, though, was that any change (even a logical improvement) will be bad news for someone because any change in an execution path may be unlucky for there particular case; so knowing about the existence of the change, and some details of how the change works, is important.]]></description>
		<content:encoded><![CDATA[<p>Mukund,</p>
<p>Your observation is correct &#8211; this cost is more realistic, and the change is an improvement in the optimizer&#8217;s algorithms. </p>
<p>The point I was trying to make, though, was that any change (even a logical improvement) will be bad news for someone because any change in an execution path may be unlucky for there particular case; so knowing about the existence of the change, and some details of how the change works, is important.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mukund</title>
		<link>http://jonathanlewis.wordpress.com/2008/03/11/everything-changes/#comment-34985</link>
		<dc:creator><![CDATA[Mukund]]></dc:creator>
		<pubDate>Tue, 15 Dec 2009 15:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=349#comment-34985</guid>
		<description><![CDATA[I have a basic doubt in the example you have illustrated above.

Is it not true that in 11.1 the Optimizer sees a more realistic value of the index &amp; table selectivity ? Given this, is this plan not better than the ones in 10g. The 10g plans seem to have a lesser cost but they don&#039;t seem to have calculated the selectivity correctly ? 

Please evaluate my understanding.]]></description>
		<content:encoded><![CDATA[<p>I have a basic doubt in the example you have illustrated above.</p>
<p>Is it not true that in 11.1 the Optimizer sees a more realistic value of the index &amp; table selectivity ? Given this, is this plan not better than the ones in 10g. The 10g plans seem to have a lesser cost but they don&#8217;t seem to have calculated the selectivity correctly ? </p>
<p>Please evaluate my understanding.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Prusinski</title>
		<link>http://jonathanlewis.wordpress.com/2008/03/11/everything-changes/#comment-30891</link>
		<dc:creator><![CDATA[Ben Prusinski]]></dc:creator>
		<pubDate>Fri, 25 Apr 2008 20:12:24 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=349#comment-30891</guid>
		<description><![CDATA[Greetings Jonathan,

Thanks for the excellent tip on how the execution plans display differently between Oracle 10gR1 and Oracle 11gR1. By the way hope to see you in San Diego sometime in the future. 

Cheers,
Ben Prusinski, Oracle DBA/Consultant]]></description>
		<content:encoded><![CDATA[<p>Greetings Jonathan,</p>
<p>Thanks for the excellent tip on how the execution plans display differently between Oracle 10gR1 and Oracle 11gR1. By the way hope to see you in San Diego sometime in the future. </p>
<p>Cheers,<br />
Ben Prusinski, Oracle DBA/Consultant</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Log Buffer #89: a Carnival of the Vanities for DBAs</title>
		<link>http://jonathanlewis.wordpress.com/2008/03/11/everything-changes/#comment-30620</link>
		<dc:creator><![CDATA[Log Buffer #89: a Carnival of the Vanities for DBAs]]></dc:creator>
		<pubDate>Fri, 21 Mar 2008 17:00:29 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=349#comment-30620</guid>
		<description><![CDATA[[...] is Oracle&#8217;s ever-evolving Cost Based Optimizer. Jonathan Lewis at Oracle Scratchpad looks at CBO and its erratic growing pains from version 9 onwards and why it behaves the way it [...]]]></description>
		<content:encoded><![CDATA[<p>[...] is Oracle&#8217;s ever-evolving Cost Based Optimizer. Jonathan Lewis at Oracle Scratchpad looks at CBO and its erratic growing pains from version 9 onwards and why it behaves the way it [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Index not used (10g) &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2008/03/11/everything-changes/#comment-30457</link>
		<dc:creator><![CDATA[Index not used (10g) &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Thu, 13 Mar 2008 13:33:46 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=349#comment-30457</guid>
		<description><![CDATA[[...] by Everything Changes &#171; Oracle Scratchpad &#8212; March 13, 2008 @ 1:31 pm UTC Mar [...]]]></description>
		<content:encoded><![CDATA[<p>[...] by Everything Changes &laquo; Oracle Scratchpad &#8212; March 13, 2008 @ 1:31 pm UTC Mar [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2008/03/11/everything-changes/#comment-30454</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Wed, 12 Mar 2008 20:23:35 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=349#comment-30454</guid>
		<description><![CDATA[Alberto,
There are no obvious clues in the 10g trace, but the 11g trace has a comment about &#039;Column Groups&#039; - so the last change may simply be a part of the general enhancement relating to the &quot;extended statistics&quot; (the reference to PredCnt 3 is explained by the actual code I used - see below):
&lt;code&gt;
ColGroup Usage:: PredCnt: 3  Matches Full: #0  Partial:  Sel: 0.0500
&lt;/code&gt;

Scott,
The SQL, excluding the call to dbms_stats, is as follows:
&lt;code&gt;
create table t1 
as
select
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;mod(rownum,20)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;n1,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;mod(rownum,20)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;n2,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;rpad(&#039;x&#039;,40,&#039;x&#039;)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ind_pad,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;rpad(&#039;x&#039;,200)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;padding
from
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;all_objects
where
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;rownum  &lt;= 4000
;

create index t1_i1 on t1(n1, ind_pad, n2) 
pctfree 91
;

select
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;/*+&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;index(t1)&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;*/
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;padding
from
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;t1
where
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;n1&#160;&#160;&#160;&#160;&#160;&#160;=&#160;2
and&#160;&#160;&#160;&#160;&#160;ind_pad&#160;=&#160;rpad(&#039;x&#039;,40,&#039;x&#039;)
and&#160;&#160;&#160;&#160;&#160;n2&#160;&#160;&#160;&#160;&#160;&#160;=&#160;2
;
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>Alberto,<br />
There are no obvious clues in the 10g trace, but the 11g trace has a comment about &#8216;Column Groups&#8217; &#8211; so the last change may simply be a part of the general enhancement relating to the &#8220;extended statistics&#8221; (the reference to PredCnt 3 is explained by the actual code I used &#8211; see below):<br />
<code><br />
ColGroup Usage:: PredCnt: 3  Matches Full: #0  Partial:  Sel: 0.0500<br />
</code></p>
<p>Scott,<br />
The SQL, excluding the call to dbms_stats, is as follows:<br />
<code><br />
create table t1<br />
as<br />
select<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mod(rownum,20)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n1,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mod(rownum,20)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n2,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rpad('x',40,'x')&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ind_pad,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rpad('x',200)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;padding<br />
from<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;all_objects<br />
where<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rownum  &lt;= 4000<br />
;</p>
<p>create index t1_i1 on t1(n1, ind_pad, n2)<br />
pctfree 91<br />
;</p>
<p>select<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*+&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;index(t1)&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;padding<br />
from<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t1<br />
where<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;2<br />
and&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ind_pad&nbsp;=&nbsp;rpad('x',40,'x')<br />
and&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;2<br />
;<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://jonathanlewis.wordpress.com/2008/03/11/everything-changes/#comment-30453</link>
		<dc:creator><![CDATA[Scott]]></dc:creator>
		<pubDate>Wed, 12 Mar 2008 19:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=349#comment-30453</guid>
		<description><![CDATA[I&#039;m not able to reproduce this behavior on my 10.2.0.3.1 instance. Would you please post your table and index create scripts?]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m not able to reproduce this behavior on my 10.2.0.3.1 instance. Would you please post your table and index create scripts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alberto Dell'Era</title>
		<link>http://jonathanlewis.wordpress.com/2008/03/11/everything-changes/#comment-30441</link>
		<dc:creator><![CDATA[Alberto Dell'Era]]></dc:creator>
		<pubDate>Tue, 11 Mar 2008 22:44:42 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=349#comment-30441</guid>
		<description><![CDATA[I have a curiosity if you don&#039;t mind and have some time to &quot;spare&quot; - does the CBO using distinct_keys show up in the 10053 trace as something like &quot;using concatenated index cardinality&quot;, or is this improvement used silently  ?]]></description>
		<content:encoded><![CDATA[<p>I have a curiosity if you don&#8217;t mind and have some time to &#8220;spare&#8221; &#8211; does the CBO using distinct_keys show up in the 10053 trace as something like &#8220;using concatenated index cardinality&#8221;, or is this improvement used silently  ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
