<?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 for Oracle Scratchpad</title>
	<atom:link href="http://jonathanlewis.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Tue, 01 Dec 2009 21:31:06 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on UKOUG 2009 &#8211; a by Henish</title>
		<link>http://jonathanlewis.wordpress.com/2009/11/30/ukoug-2009-a/#comment-34940</link>
		<dc:creator>Henish</dc:creator>
		<pubDate>Tue, 01 Dec 2009 21:31:06 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2542#comment-34940</guid>
		<description>Respected Sir,

Can you have uploaded your presentation on 

(1)how to write efficient SQL 
(2)Partitioning


Thanks</description>
		<content:encoded><![CDATA[<p>Respected Sir,</p>
<p>Can you have uploaded your presentation on </p>
<p>(1)how to write efficient SQL<br />
(2)Partitioning</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on UKOUG 2009 &#8211; a by Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2009/11/30/ukoug-2009-a/#comment-34939</link>
		<dc:creator>Jonathan Lewis</dc:creator>
		<pubDate>Tue, 01 Dec 2009 21:04:27 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2542#comment-34939</guid>
		<description>Boneist,

Thanks for the comment. If it&#039;s a really complex query with lots of subqueries, remember that it&#039;s possible to postpone thinking about the subqueries in the first drafts.  And if it&#039;s any consolation, I often  find that it takes three or four attempts to draw the picture   for a really complicated query - I always seem to end up with 10 tables crammed into a tiny corner of the paper in the early attempts.</description>
		<content:encoded><![CDATA[<p>Boneist,</p>
<p>Thanks for the comment. If it&#8217;s a really complex query with lots of subqueries, remember that it&#8217;s possible to postpone thinking about the subqueries in the first drafts.  And if it&#8217;s any consolation, I often  find that it takes three or four attempts to draw the picture   for a really complicated query &#8211; I always seem to end up with 10 tables crammed into a tiny corner of the paper in the early attempts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Counting by Henish</title>
		<link>http://jonathanlewis.wordpress.com/2009/11/25/counting/#comment-34938</link>
		<dc:creator>Henish</dc:creator>
		<pubDate>Tue, 01 Dec 2009 15:10:31 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2526#comment-34938</guid>
		<description>Thanks Sir</description>
		<content:encoded><![CDATA[<p>Thanks Sir</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on More of a hash by Flado</title>
		<link>http://jonathanlewis.wordpress.com/2007/05/08/more-of-a-hash/#comment-34936</link>
		<dc:creator>Flado</dc:creator>
		<pubDate>Tue, 01 Dec 2009 09:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/05/08/more-of-a-hash/#comment-34936</guid>
		<description>The bug is now fixed (in 12.1). I will try to get the fix backported to 10.2.</description>
		<content:encoded><![CDATA[<p>The bug is now fixed (in 12.1). I will try to get the fix backported to 10.2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Concatenating LOBs by Gavin Liao</title>
		<link>http://jonathanlewis.wordpress.com/2009/07/09/concatenating-lobs/#comment-34935</link>
		<dc:creator>Gavin Liao</dc:creator>
		<pubDate>Tue, 01 Dec 2009 07:00:17 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=1694#comment-34935</guid>
		<description>thanks for your clarification.</description>
		<content:encoded><![CDATA[<p>thanks for your clarification.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on UKOUG 2009 &#8211; a by Boneist</title>
		<link>http://jonathanlewis.wordpress.com/2009/11/30/ukoug-2009-a/#comment-34932</link>
		<dc:creator>Boneist</dc:creator>
		<pubDate>Tue, 01 Dec 2009 00:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2542#comment-34932</guid>
		<description>Thanks for your presentation, Jonathan, I&#039;m definitely going to apply some of the tips you suggested when I get back to work! Although I&#039;m not entirely sure how I&#039;m going to represent my gigantic and complicated query pictorially, I think even a botch-up pic will help enormously!

It&#039;s the kind of thing that you&#039;d think would be obvious... Ah well, that&#039;s why we have these kinds of conferences, etc, right? Right?! *{;-)</description>
		<content:encoded><![CDATA[<p>Thanks for your presentation, Jonathan, I&#8217;m definitely going to apply some of the tips you suggested when I get back to work! Although I&#8217;m not entirely sure how I&#8217;m going to represent my gigantic and complicated query pictorially, I think even a botch-up pic will help enormously!</p>
<p>It&#8217;s the kind of thing that you&#8217;d think would be obvious&#8230; Ah well, that&#8217;s why we have these kinds of conferences, etc, right? Right?! *{;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cardinality by Narendra</title>
		<link>http://jonathanlewis.wordpress.com/2009/11/29/cardinality/#comment-34930</link>
		<dc:creator>Narendra</dc:creator>
		<pubDate>Mon, 30 Nov 2009 13:42:16 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2537#comment-34930</guid>
		<description>Jonathan,

Thanks. I know you did not write specification or code. The only reason for asking the WHY question was I have seen you demonstrate how CBO works (or might be working) in many other cases.</description>
		<content:encoded><![CDATA[<p>Jonathan,</p>
<p>Thanks. I know you did not write specification or code. The only reason for asking the WHY question was I have seen you demonstrate how CBO works (or might be working) in many other cases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cardinality by Timur Akhmadeev</title>
		<link>http://jonathanlewis.wordpress.com/2009/11/29/cardinality/#comment-34929</link>
		<dc:creator>Timur Akhmadeev</dc:creator>
		<pubDate>Mon, 30 Nov 2009 10:44:35 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2537#comment-34929</guid>
		<description>BTW, it seems like things has changed in 11gR2:
&lt;pre&gt;
explain plan set statement_id=&#039;s14&#039; for
select count(*) from audience where month_no = 14;

explain plan set statement_id=&#039;s15&#039; for
select count(*) from audience where month_no = 15;

explain plan set statement_id=&#039;s14-17&#039; for
select count(*) from audience where month_no between 14 and 17;

explain plan set statement_id=&#039;s14-16&#039; for
select count(*) from audience where month_no between 14 and 16;

explain plan set statement_id=&#039;s14-18&#039; for
select count(*) from audience where month_no between 14 and 18;

explain plan set statement_id=&#039;s14-21&#039; for
select count(*) from audience where month_no between 14 and 21;

explain plan set statement_id=&#039;s14-27&#039; for
select count(*) from audience where month_no between 14 and 27;

select statement_id, cardinality
  from plan_table
 where statement_id like &#039;s1%&#039; and id = 2;
&lt;/pre&gt;
&lt;pre&gt;
STATEMENT_ID                   CARDINALITY
------------------------------ -----------
s14                                     82
s15                                     73
s14-17                                 100
s14-16                                 100
s14-18                                 100
s14-21                                 100
s14-27                                 100
&lt;/pre&gt;
or this is a bug, since 10053 reports &quot;Using prorated density: 0.068182&quot; which should result in cardinality of 82, but reports cardinality just like for a MONTH_NO=CONST predicate.</description>
		<content:encoded><![CDATA[<p>BTW, it seems like things has changed in 11gR2:</p>
<pre>
explain plan set statement_id='s14' for
select count(*) from audience where month_no = 14;

explain plan set statement_id='s15' for
select count(*) from audience where month_no = 15;

explain plan set statement_id='s14-17' for
select count(*) from audience where month_no between 14 and 17;

explain plan set statement_id='s14-16' for
select count(*) from audience where month_no between 14 and 16;

explain plan set statement_id='s14-18' for
select count(*) from audience where month_no between 14 and 18;

explain plan set statement_id='s14-21' for
select count(*) from audience where month_no between 14 and 21;

explain plan set statement_id='s14-27' for
select count(*) from audience where month_no between 14 and 27;

select statement_id, cardinality
  from plan_table
 where statement_id like 's1%' and id = 2;
</pre>
<pre>
STATEMENT_ID                   CARDINALITY
------------------------------ -----------
s14                                     82
s15                                     73
s14-17                                 100
s14-16                                 100
s14-18                                 100
s14-21                                 100
s14-27                                 100
</pre>
<p>or this is a bug, since 10053 reports &#8220;Using prorated density: 0.068182&#8243; which should result in cardinality of 82, but reports cardinality just like for a MONTH_NO=CONST predicate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cardinality by Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2009/11/29/cardinality/#comment-34928</link>
		<dc:creator>Jonathan Lewis</dc:creator>
		<pubDate>Mon, 30 Nov 2009 10:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2537#comment-34928</guid>
		<description>Narenda,

Don&#039;t ask me  WHY Oracle uses a given strategy - I didn&#039;t write the specification or code; however I think that Timur&#039;s suggestion is probably the right one. 

The &lt;i&gt;number of rows&lt;/i&gt; reported after using &lt;b&gt;explain plan&lt;/b&gt; is the optimizer&#039;s estimate of the number that will be produced (for each call to that line of the plan). It&#039;s a figure that may be completely wrong.</description>
		<content:encoded><![CDATA[<p>Narenda,</p>
<p>Don&#8217;t ask me  WHY Oracle uses a given strategy &#8211; I didn&#8217;t write the specification or code; however I think that Timur&#8217;s suggestion is probably the right one. </p>
<p>The <i>number of rows</i> reported after using <b>explain plan</b> is the optimizer&#8217;s estimate of the number that will be produced (for each call to that line of the plan). It&#8217;s a figure that may be completely wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cardinality by Timur Akhmadeev</title>
		<link>http://jonathanlewis.wordpress.com/2009/11/29/cardinality/#comment-34927</link>
		<dc:creator>Timur Akhmadeev</dc:creator>
		<pubDate>Mon, 30 Nov 2009 10:09:17 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2537#comment-34927</guid>
		<description>&lt;a href=&quot;http://books.google.com/books?id=TGSd3pkMx5IC&amp;lpg=PA1&amp;dq=cost%20based%20oracle%20fundamentals&amp;pg=PT158#v=onepage&amp;q=10g%20out%20of%20range%20predicate&amp;f=false&quot; rel=&quot;nofollow&quot;&gt;Here&lt;/a&gt; is a page in the book which describes such behavior. Most likely the change was made to cope with constantly increasing values and not-so-frequently collected statistics.</description>
		<content:encoded><![CDATA[<p><a href="http://books.google.com/books?id=TGSd3pkMx5IC&amp;lpg=PA1&amp;dq=cost%20based%20oracle%20fundamentals&amp;pg=PT158#v=onepage&amp;q=10g%20out%20of%20range%20predicate&amp;f=false" rel="nofollow">Here</a> is a page in the book which describes such behavior. Most likely the change was made to cope with constantly increasing values and not-so-frequently collected statistics.</p>
]]></content:encoded>
	</item>
</channel>
</rss>