<?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"
	>
<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>
	<pubDate>Fri, 04 Jul 2008 20:27:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
		<item>
		<title>By: Ben Prusinski</title>
		<link>http://jonathanlewis.wordpress.com/2008/03/11/everything-changes/#comment-30891</link>
		<dc:creator>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>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>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>[...] 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>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>[...] 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>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>Alberto,
There are no obvious clues in the 10g trace, but the 11g trace has a comment about 'Column Groups' - so the last change may simply be a part of the general enhancement relating to the "extended statistics" (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('x',40,'x')&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ind_pad,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;rpad('x',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  &#60;= 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('x',40,'x')
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; - 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 - 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>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>I'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>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>I have a curiosity if you don't mind and have some time to "spare" - does the CBO using distinct_keys show up in the 10053 trace as something like "using concatenated index cardinality", 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; - 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>
