<?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: I&#8217;ll Gladly Pay You Tuesday for a Hamburger Today</title>
	<atom:link href="http://kerryosborne.oracle-guy.com/2009/05/ill-gladly-pay-you-tuesday-for-a-hamburger-today/feed/" rel="self" type="application/rss+xml" />
	<link>http://kerryosborne.oracle-guy.com/2009/05/ill-gladly-pay-you-tuesday-for-a-hamburger-today/</link>
	<description>Just another Oracle blog</description>
	<pubDate>Thu, 09 Sep 2010 23:34:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Larry</title>
		<link>http://kerryosborne.oracle-guy.com/2009/05/ill-gladly-pay-you-tuesday-for-a-hamburger-today/#comment-5136</link>
		<dc:creator>Larry</dc:creator>
		<pubDate>Sat, 26 Sep 2009 18:21:07 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1383#comment-5136</guid>
		<description>I know virtually nothing about Oracle, programming, or statistics, but being old and coming out of the humanities, I do know something about disco dancing, hamburgers, and Wimpy.  Much earlier than 1970s disco, Wimpy's "famous line...was first introduced to the cartoons in 1934's We Aim to Please." See "J. Wellington Wimpy" in Wikipedia, which has a screen shot that may be even more symbolic of "paying the price for our bad/missing statistics."</description>
		<content:encoded><![CDATA[<p>I know virtually nothing about Oracle, programming, or statistics, but being old and coming out of the humanities, I do know something about disco dancing, hamburgers, and Wimpy.  Much earlier than 1970s disco, Wimpy&#8217;s &#8220;famous line&#8230;was first introduced to the cartoons in 1934&#8217;s We Aim to Please.&#8221; See &#8220;J. Wellington Wimpy&#8221; in Wikipedia, which has a screen shot that may be even more symbolic of &#8220;paying the price for our bad/missing statistics.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Log Buffer #147: a Carnival of the Vanities for DBAs &#124; Pythian Group Blog</title>
		<link>http://kerryosborne.oracle-guy.com/2009/05/ill-gladly-pay-you-tuesday-for-a-hamburger-today/#comment-1913</link>
		<dc:creator>Log Buffer #147: a Carnival of the Vanities for DBAs &#124; Pythian Group Blog</dc:creator>
		<pubDate>Fri, 22 May 2009 16:44:49 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1383#comment-1913</guid>
		<description>[...] &#8220;I’ll Gladly Pay You Tuesday for a Hamburger Today,&#8221; quotes Kerry Osborne, who was in a Wimpy frame of mind at the time. The analogy to J. Wellington Wimpy&#8217;s burger-mooching , Kerry writes, applies to, &#8220;&#160;.&#160;.&#160;.&#160;paying the price for our bad/missing statistics.&#8221; [...]</description>
		<content:encoded><![CDATA[<p>[...] &#8220;I’ll Gladly Pay You Tuesday for a Hamburger Today,&#8221; quotes Kerry Osborne, who was in a Wimpy frame of mind at the time. The analogy to J. Wellington Wimpy&#8217;s burger-mooching , Kerry writes, applies to, &#8220;&nbsp;.&nbsp;.&nbsp;.&nbsp;paying the price for our bad/missing statistics.&#8221; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2009/05/ill-gladly-pay-you-tuesday-for-a-hamburger-today/#comment-1912</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Fri, 22 May 2009 16:17:20 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1383#comment-1912</guid>
		<description>Tom,

Most of the scripts are already on the site in other posts but here is a list of the ones that I used in this post, linked to the script itself.

&lt;a href="http://www.oracle-guy.com/scripts/find_sql_acs.sql" rel="nofollow"&gt;find_sql_acs.sql&lt;/a&gt;
&lt;a href="http://www.oracle-guy.com/scripts/dplan.sql" rel="nofollow"&gt;dplan.sql&lt;/a&gt;
&lt;a href="http://www.oracle-guy.com/scripts/child_load_time.sql" rel="nofollow"&gt;child_load_time.sql&lt;/a&gt;
&lt;a href="http://www.oracle-guy.com/scripts/diff_table_stats.sql" rel="nofollow"&gt;diff_table_stats.sql&lt;/a&gt;
&lt;a href="http://www.oracle-guy.com/scripts/flush_sql.sql" rel="nofollow"&gt;flush_sql.sql&lt;/a&gt;
&lt;a href="http://www.oracle-guy.com/scripts/find_sql_by_cost.sql" rel="nofollow"&gt;find_sql_by_cost.sql&lt;/a&gt;
&lt;a href="http://www.oracle-guy.com/scripts/find_sql.sql" rel="nofollow"&gt;find_sql.sql&lt;/a&gt;

Note that I change these little scripts occasionally, so the output may not exactly match the session above, but it should be very close.

Kerry</description>
		<content:encoded><![CDATA[<p>Tom,</p>
<p>Most of the scripts are already on the site in other posts but here is a list of the ones that I used in this post, linked to the script itself.</p>
<p><a href="http://www.oracle-guy.com/scripts/find_sql_acs.sql"  rel="nofollow">find_sql_acs.sql</a><br />
<a href="http://www.oracle-guy.com/scripts/dplan.sql"  rel="nofollow">dplan.sql</a><br />
<a href="http://www.oracle-guy.com/scripts/child_load_time.sql"  rel="nofollow">child_load_time.sql</a><br />
<a href="http://www.oracle-guy.com/scripts/diff_table_stats.sql"  rel="nofollow">diff_table_stats.sql</a><br />
<a href="http://www.oracle-guy.com/scripts/flush_sql.sql"  rel="nofollow">flush_sql.sql</a><br />
<a href="http://www.oracle-guy.com/scripts/find_sql_by_cost.sql"  rel="nofollow">find_sql_by_cost.sql</a><br />
<a href="http://www.oracle-guy.com/scripts/find_sql.sql"  rel="nofollow">find_sql.sql</a></p>
<p>Note that I change these little scripts occasionally, so the output may not exactly match the session above, but it should be very close.</p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://kerryosborne.oracle-guy.com/2009/05/ill-gladly-pay-you-tuesday-for-a-hamburger-today/#comment-1908</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Fri, 22 May 2009 13:34:02 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1383#comment-1908</guid>
		<description>Kerry,

Those are pretty cool scripts. Would you mind sharing them? :)

Thanks!</description>
		<content:encoded><![CDATA[<p>Kerry,</p>
<p>Those are pretty cool scripts. Would you mind sharing them? :)</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2009/05/ill-gladly-pay-you-tuesday-for-a-hamburger-today/#comment-1885</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Thu, 21 May 2009 20:46:33 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1383#comment-1885</guid>
		<description>Narendra,

  NO_INVALIDATE has been around for a while as part of the DBMS_STATS package. If I remember correctly, the default value was FALSE in 9i and changed to AUTO_INVALIDATE in 10g. This basically allows cursors to not be invalidated when stats are generated. There is a related hidden parameter (_optimizer_invalidation_period) which defaults to 1800 seconds (5 hours) that tells Oracle how long to allow the affected cursors to remain viable. But it is unclear to me exactly how that works, as it appears in my 11g example that cursors stuck around for a much longer period of time than the 5 hours. There is a pretty good thread on the oracle-l list about this issue here:

   http://www.freelists.org/post/oracle-l/dbms-statsauto-invalidate

And another good one on OTN here:

   http://forums.oracle.com/forums/thread.jspa?threadID=592771

Also, Jonathan Lewis had a post about it here:

   http://jonathanlewis.wordpress.com/2008/02/13/statistics-problem/

Kerry</description>
		<content:encoded><![CDATA[<p>Narendra,</p>
<p>  NO_INVALIDATE has been around for a while as part of the DBMS_STATS package. If I remember correctly, the default value was FALSE in 9i and changed to AUTO_INVALIDATE in 10g. This basically allows cursors to not be invalidated when stats are generated. There is a related hidden parameter (_optimizer_invalidation_period) which defaults to 1800 seconds (5 hours) that tells Oracle how long to allow the affected cursors to remain viable. But it is unclear to me exactly how that works, as it appears in my 11g example that cursors stuck around for a much longer period of time than the 5 hours. There is a pretty good thread on the oracle-l list about this issue here:</p>
<p>   <a href="http://www.freelists.org/post/oracle-l/dbms-statsauto-invalidate" onclick="javascript:pageTracker._trackPageview('/outbound/comment/www.freelists.org');" rel="nofollow">http://www.freelists.org/post/oracle-l/dbms-statsauto-invalidate</a></p>
<p>And another good one on OTN here:</p>
<p>   <a href="http://forums.oracle.com/forums/thread.jspa?threadID=592771" onclick="javascript:pageTracker._trackPageview('/outbound/comment/forums.oracle.com');" rel="nofollow">http://forums.oracle.com/forums/thread.jspa?threadID=592771</a></p>
<p>Also, Jonathan Lewis had a post about it here:</p>
<p>   <a href="http://jonathanlewis.wordpress.com/2008/02/13/statistics-problem/" onclick="javascript:pageTracker._trackPageview('/outbound/comment/jonathanlewis.wordpress.com');" rel="nofollow">http://jonathanlewis.wordpress.com/2008/02/13/statistics-problem/</a></p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Narendra</title>
		<link>http://kerryosborne.oracle-guy.com/2009/05/ill-gladly-pay-you-tuesday-for-a-hamburger-today/#comment-1869</link>
		<dc:creator>Narendra</dc:creator>
		<pubDate>Thu, 21 May 2009 08:46:57 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1383#comment-1869</guid>
		<description>"4. this statement was not re-parsed due to the stats changing"

Kerry,

Interesting. Is this a "new feature" or has been there in earlier versions as well? I was under impression (and have observed as well) that the queries are re-parsed (or hard parsed) when the stats on underlying tables change.</description>
		<content:encoded><![CDATA[<p>&#8220;4. this statement was not re-parsed due to the stats changing&#8221;</p>
<p>Kerry,</p>
<p>Interesting. Is this a &#8220;new feature&#8221; or has been there in earlier versions as well? I was under impression (and have observed as well) that the queries are re-parsed (or hard parsed) when the stats on underlying tables change.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asif Momen</title>
		<link>http://kerryosborne.oracle-guy.com/2009/05/ill-gladly-pay-you-tuesday-for-a-hamburger-today/#comment-1864</link>
		<dc:creator>Asif Momen</dc:creator>
		<pubDate>Thu, 21 May 2009 06:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1383#comment-1864</guid>
		<description>Good one.

We had exactly the same issue on one of our Data Warehouse databases. A query which would normally take few seconds took several minutes. The fix was to copy stats from the previous partition.</description>
		<content:encoded><![CDATA[<p>Good one.</p>
<p>We had exactly the same issue on one of our Data Warehouse databases. A query which would normally take few seconds took several minutes. The fix was to copy stats from the previous partition.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
