<?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: Adaptive Optimisation ?</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2009/12/16/adaptive-optimisation/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2009/12/16/adaptive-optimisation/</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Wed, 19 Jun 2013 22:21:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2009/12/16/adaptive-optimisation/#comment-40600</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Thu, 02 Jun 2011 20:15:32 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2602#comment-40600</guid>
		<description><![CDATA[Ahmed,

Thanks for the link - it&#039;s a nicely written article.]]></description>
		<content:encoded><![CDATA[<p>Ahmed,</p>
<p>Thanks for the link &#8211; it&#8217;s a nicely written article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ahmed AANGOUR</title>
		<link>http://jonathanlewis.wordpress.com/2009/12/16/adaptive-optimisation/#comment-40570</link>
		<dc:creator><![CDATA[Ahmed AANGOUR]]></dc:creator>
		<pubDate>Fri, 27 May 2011 11:09:02 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2602#comment-40570</guid>
		<description><![CDATA[An article was written recently on this topic on the Optimizer dev team&#039;s blog:

&lt;a HREF=&quot;http://blogs.oracle.com/optimizer/entry/cardinality_feedback&quot; rel=&quot;nofollow&quot;&gt;http://blogs.oracle.com/optimizer/entry/cardinality_feedback&lt;/A&gt;]]></description>
		<content:encoded><![CDATA[<p>An article was written recently on this topic on the Optimizer dev team&#8217;s blog:</p>
<p><a HREF="http://blogs.oracle.com/optimizer/entry/cardinality_feedback" rel="nofollow">http://blogs.oracle.com/optimizer/entry/cardinality_feedback</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Impact of the TRUNC Function on an Indexed Date Column &#171; Charles Hooper&#39;s Oracle Notes</title>
		<link>http://jonathanlewis.wordpress.com/2009/12/16/adaptive-optimisation/#comment-35711</link>
		<dc:creator><![CDATA[Impact of the TRUNC Function on an Indexed Date Column &#171; Charles Hooper&#39;s Oracle Notes]]></dc:creator>
		<pubDate>Mon, 08 Mar 2010 06:05:41 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2602#comment-35711</guid>
		<description><![CDATA[[...] cardinality feedback (apparently not documented) is a new feature in Oracle Database 11.2.0.1 (see here for a related blog article).  The first execution required 2 minutes and 33 seconds, but a [...]]]></description>
		<content:encoded><![CDATA[<p>[...] cardinality feedback (apparently not documented) is a new feature in Oracle Database 11.2.0.1 (see here for a related blog article).  The first execution required 2 minutes and 33 seconds, but a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blogroll Report 11/12/2009-18/12/2009 &#171; Coskan&#8217;s Approach to Oracle</title>
		<link>http://jonathanlewis.wordpress.com/2009/12/16/adaptive-optimisation/#comment-35150</link>
		<dc:creator><![CDATA[Blogroll Report 11/12/2009-18/12/2009 &#171; Coskan&#8217;s Approach to Oracle]]></dc:creator>
		<pubDate>Sat, 02 Jan 2010 17:50:44 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2602#comment-35150</guid>
		<description><![CDATA[[...] 19-How does auto cardinality feedback works in 11GR2? &#8211;read the comments Jonathan Lewis-Adaptive Optimisation ? [...]]]></description>
		<content:encoded><![CDATA[<p>[...] 19-How does auto cardinality feedback works in 11GR2? &#8211;read the comments Jonathan Lewis-Adaptive Optimisation ? [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2009/12/16/adaptive-optimisation/#comment-35052</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Tue, 22 Dec 2009 09:38:58 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2602#comment-35052</guid>
		<description><![CDATA[It&#039;s obvious, with hind-sight, where the information is coming from. The VLDB paper that Greg linked to supplies the clue - and Iggy even quoted the relevant phrase in his extract:
&lt;i&gt;monitoring is enabled for the cursor&lt;/i&gt;.

This is 11g - with SQL monitoring. You don&#039;t look in v$sql_plan_statistics(_all), you look in &lt;em&gt;&lt;strong&gt;v$sql_monitor &lt;/strong&gt;&lt;/em&gt;and &lt;em&gt;&lt;strong&gt;v$sql_plan_monitor&lt;/strong&gt;&lt;/em&gt;.]]></description>
		<content:encoded><![CDATA[<p>It&#8217;s obvious, with hind-sight, where the information is coming from. The VLDB paper that Greg linked to supplies the clue &#8211; and Iggy even quoted the relevant phrase in his extract:<br />
<i>monitoring is enabled for the cursor</i>.</p>
<p>This is 11g &#8211; with SQL monitoring. You don&#8217;t look in v$sql_plan_statistics(_all), you look in <em><strong>v$sql_monitor </strong></em>and <em><strong>v$sql_plan_monitor</strong></em>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2009/12/16/adaptive-optimisation/#comment-35051</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Tue, 22 Dec 2009 09:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2602#comment-35051</guid>
		<description><![CDATA[Randolf,
That seems perfectly plausible.  Anything to do with multi-column selectivity (without a helpful index) could turn into a threat. 

In fact, thinking about the possibilities, you have to start wondering more about why the feature WON&#039;T switch on automatically.
]]></description>
		<content:encoded><![CDATA[<p>Randolf,<br />
That seems perfectly plausible.  Anything to do with multi-column selectivity (without a helpful index) could turn into a threat. </p>
<p>In fact, thinking about the possibilities, you have to start wondering more about why the feature WON&#8217;T switch on automatically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randolf Geist</title>
		<link>http://jonathanlewis.wordpress.com/2009/12/16/adaptive-optimisation/#comment-35046</link>
		<dc:creator><![CDATA[Randolf Geist]]></dc:creator>
		<pubDate>Mon, 21 Dec 2009 10:22:23 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2602#comment-35046</guid>
		<description><![CDATA[By the way, thinking about it a bit further, this might be the first time that having suboptimal statistics in Oracle eventually leads to superior execution plans - depending on the thresholds defined when the difference between actual and estimated cardinalities is significant.

I think there was some time ago a thread on CDOS http://groups.google.com/group/comp.databases.oracle.server/browse_thread/thread/6aac0570974c9d62/ where this might have been the case - depending on how the SQL was using multi-column joins the &quot;cardinality feedback&quot; correction kicked in or not.

Randolf]]></description>
		<content:encoded><![CDATA[<p>By the way, thinking about it a bit further, this might be the first time that having suboptimal statistics in Oracle eventually leads to superior execution plans &#8211; depending on the thresholds defined when the difference between actual and estimated cardinalities is significant.</p>
<p>I think there was some time ago a thread on CDOS <a href="http://groups.google.com/group/comp.databases.oracle.server/browse_thread/thread/6aac0570974c9d62/" rel="nofollow">http://groups.google.com/group/comp.databases.oracle.server/browse_thread/thread/6aac0570974c9d62/</a> where this might have been the case &#8211; depending on how the SQL was using multi-column joins the &#8220;cardinality feedback&#8221; correction kicked in or not.</p>
<p>Randolf</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randolf Geist</title>
		<link>http://jonathanlewis.wordpress.com/2009/12/16/adaptive-optimisation/#comment-35021</link>
		<dc:creator><![CDATA[Randolf Geist]]></dc:creator>
		<pubDate>Fri, 18 Dec 2009 21:23:28 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2602#comment-35021</guid>
		<description><![CDATA[I&#039;ve already came across this &quot;cardinality feedback&quot; keyword that made me wonder when examining some 10046 traces of the DBMS_XPLAN.DISPLAY function - so at least that function was already prepared for that in some earlier releases - off the top of my head I&#039;m not sure if it was 10.2 or 11.1 where I saw this in the query executed by DBMS_XPLAN.DISPLAY - I guess it was 11.1.

Randolf]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve already came across this &#8220;cardinality feedback&#8221; keyword that made me wonder when examining some 10046 traces of the DBMS_XPLAN.DISPLAY function &#8211; so at least that function was already prepared for that in some earlier releases &#8211; off the top of my head I&#8217;m not sure if it was 10.2 or 11.1 where I saw this in the query executed by DBMS_XPLAN.DISPLAY &#8211; I guess it was 11.1.</p>
<p>Randolf</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2009/12/16/adaptive-optimisation/#comment-35019</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Fri, 18 Dec 2009 10:00:59 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2602#comment-35019</guid>
		<description><![CDATA[Iggy,

So all we need to know now is what types of predicate(s) cause this behaviour to appear. It would also be nice to know how close is &quot;relatively&quot; close.

In this case, the query has a predicate:
[sourcecode]
    and t.time_id=trunc(t.time_id,&#039;W&#039;)
[/sourcecode]
This type of expresssion typically makes the optimizer use a selectivity guess of 1% - so it may be this that prompted it to gather run-time stats on the first pass. ]]></description>
		<content:encoded><![CDATA[<p>Iggy,</p>
<p>So all we need to know now is what types of predicate(s) cause this behaviour to appear. It would also be nice to know how close is &#8220;relatively&#8221; close.</p>
<p>In this case, the query has a predicate:</p>
<pre class="brush: plain; title: ; notranslate">
    and t.time_id=trunc(t.time_id,'W')
</pre>
<p>This type of expresssion typically makes the optimizer use a selectivity guess of 1% &#8211; so it may be this that prompted it to gather run-time stats on the first pass. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joel garry</title>
		<link>http://jonathanlewis.wordpress.com/2009/12/16/adaptive-optimisation/#comment-35018</link>
		<dc:creator><![CDATA[joel garry]]></dc:creator>
		<pubDate>Fri, 18 Dec 2009 01:24:14 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2602#comment-35018</guid>
		<description><![CDATA[ORACLE6&gt;  
ORACLE7&gt; ALTER SYSTEM SET OPTIMIZER_MODE=CHOOSE -- CBO has bugs, don&#039;t collect stats, but might use it when bugs are fixed
ORACLE73&gt; ALTER SYSTEM SET OPTIMIZER_MODE=RULE -- CBO still has bugs
ORACLE8&gt; ALTER SYSTEM SET OPTIMIZER_MODE=RULE -- CBO still has bugs - Tim who?
ORACLE81&gt; ALTER SYSTEM SET OPTIMIZER_MODE=RULE -- CBO still has bugs, app not certified
(9,10,11... spend lots of time following Jonathan et al)
ORACLE14R3&gt; ALTER SYSTEM SET OPTIMIZER_MODE=USER_RULE;]]></description>
		<content:encoded><![CDATA[<p>ORACLE6&gt;<br />
ORACLE7&gt; ALTER SYSTEM SET OPTIMIZER_MODE=CHOOSE &#8212; CBO has bugs, don&#8217;t collect stats, but might use it when bugs are fixed<br />
ORACLE73&gt; ALTER SYSTEM SET OPTIMIZER_MODE=RULE &#8212; CBO still has bugs<br />
ORACLE8&gt; ALTER SYSTEM SET OPTIMIZER_MODE=RULE &#8212; CBO still has bugs &#8211; Tim who?<br />
ORACLE81&gt; ALTER SYSTEM SET OPTIMIZER_MODE=RULE &#8212; CBO still has bugs, app not certified<br />
(9,10,11&#8230; spend lots of time following Jonathan et al)<br />
ORACLE14R3&gt; ALTER SYSTEM SET OPTIMIZER_MODE=USER_RULE;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
