<?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: first_rows_n</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2008/11/11/first_rows_n/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2008/11/11/first_rows_n/</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Sat, 18 May 2013 11:04:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: First_rows hash &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2008/11/11/first_rows_n/#comment-45415</link>
		<dc:creator><![CDATA[First_rows hash &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Mon, 12 Mar 2012 01:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=717#comment-45415</guid>
		<description><![CDATA[[...] the internet from time to time along the lines of &#8220;first_rows_N is for OLTP systems&#8221; (that&#8217;s not really correct, by the way), it&#8217;s probably best to stick with all_rows unless you can come up with a very [...]]]></description>
		<content:encoded><![CDATA[<p>[...] the internet from time to time along the lines of &#8220;first_rows_N is for OLTP systems&#8221; (that&#8217;s not really correct, by the way), it&#8217;s probably best to stick with all_rows unless you can come up with a very [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: True or False &#8211; Optimizer Mode and Tuning Goals &#171; Charles Hooper&#039;s Oracle Notes</title>
		<link>http://jonathanlewis.wordpress.com/2008/11/11/first_rows_n/#comment-36206</link>
		<dc:creator><![CDATA[True or False &#8211; Optimizer Mode and Tuning Goals &#171; Charles Hooper&#039;s Oracle Notes]]></dc:creator>
		<pubDate>Thu, 13 May 2010 06:02:16 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=717#comment-36206</guid>
		<description><![CDATA[[...] http://jonathanlewis.wordpress.com/2008/11/11/first_rows_n/ [...]]]></description>
		<content:encoded><![CDATA[<p>[...] <a href="http://jonathanlewis.wordpress.com/2008/11/11/first_rows_n/" rel="nofollow">http://jonathanlewis.wordpress.com/2008/11/11/first_rows_n/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: first_rows_N again &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2008/11/11/first_rows_n/#comment-35205</link>
		<dc:creator><![CDATA[first_rows_N again &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Sun, 10 Jan 2010 19:03:40 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=717#comment-35205</guid>
		<description><![CDATA[[...] effects and first_rows_n, and an example of the problem in this item on the OTN database forum.    Leave a [...]]]></description>
		<content:encoded><![CDATA[<p>[...] effects and first_rows_n, and an example of the problem in this item on the OTN database forum.    Leave a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2008/11/11/first_rows_n/#comment-34924</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Mon, 30 Nov 2009 09:58:12 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=717#comment-34924</guid>
		<description><![CDATA[For anyone at the&lt;em&gt; &lt;strong&gt;&lt;a href=&quot;http://www.ukoug.org&quot; rel=&quot;nofollow&quot;&gt;UKOUG &lt;/a&gt;&lt;/strong&gt;&lt;/em&gt;conference, &lt;strong&gt;&lt;a href=&quot;http://oracle-randolf.blogspot.com/&quot; rel=&quot;nofollow&quot;&gt;Randolf Geist&lt;/a&gt; &lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;will be doing a presentation all about first_rows_N optimization at 11:05 on Tuesday.]]></description>
		<content:encoded><![CDATA[<p>For anyone at the<em> <strong><a href="http://www.ukoug.org" rel="nofollow">UKOUG </a></strong></em>conference, <strong><a href="http://oracle-randolf.blogspot.com/" rel="nofollow">Randolf Geist</a> </strong>will be doing a presentation all about first_rows_N optimization at 11:05 on Tuesday.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lothar</title>
		<link>http://jonathanlewis.wordpress.com/2008/11/11/first_rows_n/#comment-34908</link>
		<dc:creator><![CDATA[Lothar]]></dc:creator>
		<pubDate>Thu, 26 Nov 2009 11:17:55 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=717#comment-34908</guid>
		<description><![CDATA[There are indeed some strnage effects when cost gets adjusted to first_k_rows.
The optimzer went for highly inselective Indexes first.
Look for the token &quot;First K Rows: &quot; in 10053.
It seems to be related to Histograms on these uselective columns, in which way is not entirely clear. 
The issue seems to go away after I got rid of Histograms, but not immediatly, it could take some hours although I fluhsed the shared pool.
Note that you can set a ALL_ROWS hint in Siebel at Business component level.]]></description>
		<content:encoded><![CDATA[<p>There are indeed some strnage effects when cost gets adjusted to first_k_rows.<br />
The optimzer went for highly inselective Indexes first.<br />
Look for the token &#8220;First K Rows: &#8221; in 10053.<br />
It seems to be related to Histograms on these uselective columns, in which way is not entirely clear.<br />
The issue seems to go away after I got rid of Histograms, but not immediatly, it could take some hours although I fluhsed the shared pool.<br />
Note that you can set a ALL_ROWS hint in Siebel at Business component level.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rownum effects &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2008/11/11/first_rows_n/#comment-34472</link>
		<dc:creator><![CDATA[Rownum effects &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Mon, 21 Sep 2009 11:11:30 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=717#comment-34472</guid>
		<description><![CDATA[[...] Execution plans, Hints &#8212; Jonathan Lewis @ 7:21 pm UTC Aug 7,2009   A few months ago, I wrote a note about setting the optimizer_mode to one of the first_rows_N values (first_rows_1, first_rows_10, first_rows_100, or [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Execution plans, Hints &#8212; Jonathan Lewis @ 7:21 pm UTC Aug 7,2009   A few months ago, I wrote a note about setting the optimizer_mode to one of the first_rows_N values (first_rows_1, first_rows_10, first_rows_100, or [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Coffey</title>
		<link>http://jonathanlewis.wordpress.com/2008/11/11/first_rows_n/#comment-34099</link>
		<dc:creator><![CDATA[Joe Coffey]]></dc:creator>
		<pubDate>Mon, 10 Aug 2009 13:43:10 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=717#comment-34099</guid>
		<description><![CDATA[Thanks for the note and I will keep an eye on Randolf&#039;s blog as well.  Since this problem is 
1.  Usually limited to a few queries per installation and easily remedied by stored outline
and
2.  Seems to not re-occur often (only once in my sphere) since Siebel customers started using 10g.

I suspect that this will remain one of those where resolution &lt; root cause solution.  

If I do have opportunity to expose more on it, I&#039;ll post back here, but it does look like something related in the optimizer changed for the better between 9i and 10g.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the note and I will keep an eye on Randolf&#8217;s blog as well.  Since this problem is<br />
1.  Usually limited to a few queries per installation and easily remedied by stored outline<br />
and<br />
2.  Seems to not re-occur often (only once in my sphere) since Siebel customers started using 10g.</p>
<p>I suspect that this will remain one of those where resolution &lt; root cause solution.  </p>
<p>If I do have opportunity to expose more on it, I&#39;ll post back here, but it does look like something related in the optimizer changed for the better between 9i and 10g.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timur Akhmadeev</title>
		<link>http://jonathanlewis.wordpress.com/2008/11/11/first_rows_n/#comment-34073</link>
		<dc:creator><![CDATA[Timur Akhmadeev]]></dc:creator>
		<pubDate>Fri, 07 Aug 2009 07:34:03 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=717#comment-34073</guid>
		<description><![CDATA[Hi Joe,
&lt;a href=&quot;http://forums.oracle.com/forums/thread.jspa?threadID=934895&amp;start=0&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; is recent OTN thread which looks very similar to your problem.]]></description>
		<content:encoded><![CDATA[<p>Hi Joe,<br />
<a href="http://forums.oracle.com/forums/thread.jspa?threadID=934895&amp;start=0" rel="nofollow">here</a> is recent OTN thread which looks very similar to your problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2008/11/11/first_rows_n/#comment-34064</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Thu, 06 Aug 2009 17:15:35 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=717#comment-34064</guid>
		<description><![CDATA[Joe,

I don&#039;t have any definite information about this but there is a new parameter in 10g called &lt;i&gt;&quot;_first_k_rows_dynamic_proration&quot;&lt;/i&gt; which has the description: &quot;enable the use of dynamic proration of join cardinalities&quot;. That sounds as if it might be relevant.

I know that &lt;a href=&quot;http://oracle-randolf.blogspot.com/&quot; rel=&quot;nofollow&quot;&gt;&lt;em&gt;&lt;strong&gt;Randolf Geist&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt; has been doing some work on first_rows_k in the last couple of weeks - I don&#039;t think he&#039;s published anything about it, but it might be worth keeping an eye on his blog.]]></description>
		<content:encoded><![CDATA[<p>Joe,</p>
<p>I don&#8217;t have any definite information about this but there is a new parameter in 10g called <i>&#8220;_first_k_rows_dynamic_proration&#8221;</i> which has the description: &#8220;enable the use of dynamic proration of join cardinalities&#8221;. That sounds as if it might be relevant.</p>
<p>I know that <a href="http://oracle-randolf.blogspot.com/" rel="nofollow"><em><strong>Randolf Geist</strong></em></a> has been doing some work on first_rows_k in the last couple of weeks &#8211; I don&#8217;t think he&#8217;s published anything about it, but it might be worth keeping an eye on his blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Coffey</title>
		<link>http://jonathanlewis.wordpress.com/2008/11/11/first_rows_n/#comment-34035</link>
		<dc:creator><![CDATA[Joe Coffey]]></dc:creator>
		<pubDate>Tue, 04 Aug 2009 15:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=717#comment-34035</guid>
		<description><![CDATA[Jonathan,

One application that makes extensive use of this is Siebel.  You made some comments here (http://www.freelists.org/post/oracle-l/ORDER-BY-and-first-rows-10-madness,4) on how the optimizer behaves in this mode.

Indeed, the problem that the original poster in that thread had was quite common when running Siebel on Oracle 9i, but I haven&#039;t seen it recently (corresponding to 10g installs). That is, execpt of course in one isolated instance that came to my attention yesterday - hence why I thought to post a note here...  The basic problem is that the optimizer chooses an index that covers the sort rather than a selective filter.

Certainly, this could be influenced by statistics.  But what we seem to have is a case of the same query and generally the same data pattern (its a package...) driving to a different (better) plan in 10g than in 9i.  I&#039;m wondering if there was an underlying improvement in the algorithm for this feature from 9i to 10g.  Are you aware of any such change?]]></description>
		<content:encoded><![CDATA[<p>Jonathan,</p>
<p>One application that makes extensive use of this is Siebel.  You made some comments here (<a href="http://www.freelists.org/post/oracle-l/ORDER-BY-and-first-rows-10-madness,4" rel="nofollow">http://www.freelists.org/post/oracle-l/ORDER-BY-and-first-rows-10-madness,4</a>) on how the optimizer behaves in this mode.</p>
<p>Indeed, the problem that the original poster in that thread had was quite common when running Siebel on Oracle 9i, but I haven&#8217;t seen it recently (corresponding to 10g installs). That is, execpt of course in one isolated instance that came to my attention yesterday &#8211; hence why I thought to post a note here&#8230;  The basic problem is that the optimizer chooses an index that covers the sort rather than a selective filter.</p>
<p>Certainly, this could be influenced by statistics.  But what we seem to have is a case of the same query and generally the same data pattern (its a package&#8230;) driving to a different (better) plan in 10g than in 9i.  I&#8217;m wondering if there was an underlying improvement in the algorithm for this feature from 9i to 10g.  Are you aware of any such change?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
