<?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: Old plan_table</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2010/01/25/old-plan_table/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2010/01/25/old-plan_table/</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: Amardeep Sidhu</title>
		<link>http://jonathanlewis.wordpress.com/2010/01/25/old-plan_table/#comment-40228</link>
		<dc:creator><![CDATA[Amardeep Sidhu]]></dc:creator>
		<pubDate>Thu, 07 Apr 2011 07:08:39 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2917#comment-40228</guid>
		<description><![CDATA[Could be possible.

Not sure why these tools always want to create their own table. The things become dependent on the version of the Tool rather than the database and then those plans missing the predicate section.

Another bit in support of SQL* Plus being the best tool for all this :)]]></description>
		<content:encoded><![CDATA[<p>Could be possible.</p>
<p>Not sure why these tools always want to create their own table. The things become dependent on the version of the Tool rather than the database and then those plans missing the predicate section.</p>
<p>Another bit in support of SQL* Plus being the best tool for all this :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2010/01/25/old-plan_table/#comment-40226</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Thu, 07 Apr 2011 06:39:12 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2917#comment-40226</guid>
		<description><![CDATA[Amardeep,

I guess the 11g documentation is thinking of the case where something like TOAD kicks in and expects to find a real table.  I think the best thing to do with utlxplan.sql is to change the code to create a GTT (and make sure it matches the one in catplan.sql!)]]></description>
		<content:encoded><![CDATA[<p>Amardeep,</p>
<p>I guess the 11g documentation is thinking of the case where something like TOAD kicks in and expects to find a real table.  I think the best thing to do with utlxplan.sql is to change the code to create a GTT (and make sure it matches the one in catplan.sql!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amardeep Sidhu</title>
		<link>http://jonathanlewis.wordpress.com/2010/01/25/old-plan_table/#comment-40223</link>
		<dc:creator><![CDATA[Amardeep Sidhu]]></dc:creator>
		<pubDate>Thu, 07 Apr 2011 04:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2917#comment-40223</guid>
		<description><![CDATA[Charles

Almost all the text say the same thing. But I found this bit in the 11gR2 documentation bit different:

http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/statviews_5146.htm#REFRN29510

While a PLAN_TABLE table is automatically set up for each user, you can use the SQL script utlxplan.sql to &lt;strong&gt;manually create a local PLAN_TABLE in your schema.&lt;/strong&gt;]]></description>
		<content:encoded><![CDATA[<p>Charles</p>
<p>Almost all the text say the same thing. But I found this bit in the 11gR2 documentation bit different:</p>
<p><a href="http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/statviews_5146.htm#REFRN29510" rel="nofollow">http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/statviews_5146.htm#REFRN29510</a></p>
<p>While a PLAN_TABLE table is automatically set up for each user, you can use the SQL script utlxplan.sql to <strong>manually create a local PLAN_TABLE in your schema.</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amardeep Sidhu</title>
		<link>http://jonathanlewis.wordpress.com/2010/01/25/old-plan_table/#comment-40222</link>
		<dc:creator><![CDATA[Amardeep Sidhu]]></dc:creator>
		<pubDate>Thu, 07 Apr 2011 04:29:39 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2917#comment-40222</guid>
		<description><![CDATA[Right. Things make sense now.

Yes, either they should retire utlxplan.sql or update it to reflect the changes done in the way plan_table is created.]]></description>
		<content:encoded><![CDATA[<p>Right. Things make sense now.</p>
<p>Yes, either they should retire utlxplan.sql or update it to reflect the changes done in the way plan_table is created.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://jonathanlewis.wordpress.com/2010/01/25/old-plan_table/#comment-40219</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Wed, 06 Apr 2011 19:07:06 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2917#comment-40219</guid>
		<description><![CDATA[It might be interesting to see how many recently published (possibly the last 3-4 years) Oracle Database books suggest executing the utlxplan.sql script - the header of which in 11.2.0.2 shows that it was last modified May 8, 2004.  At least two of the recently published books that I read in the last year suggested executing this script.  It could very well be the case that developers/DBAs are just trying to follow what appears to be best practices (or so they thought until reading this blog article).]]></description>
		<content:encoded><![CDATA[<p>It might be interesting to see how many recently published (possibly the last 3-4 years) Oracle Database books suggest executing the utlxplan.sql script &#8211; the header of which in 11.2.0.2 shows that it was last modified May 8, 2004.  At least two of the recently published books that I read in the last year suggested executing this script.  It could very well be the case that developers/DBAs are just trying to follow what appears to be best practices (or so they thought until reading this blog article).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2010/01/25/old-plan_table/#comment-40218</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Wed, 06 Apr 2011 12:46:56 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2917#comment-40218</guid>
		<description><![CDATA[Amardeep,

I forgot to correct the note after Neil&#039;s first comment.
The script that creates the GTT is catplan.sql - but that is part of the 10g installation run, and contains lots of other bits too. The utlxplan.sql script should have been retired by Oracle. but is still lurking, waiting to trap people.]]></description>
		<content:encoded><![CDATA[<p>Amardeep,</p>
<p>I forgot to correct the note after Neil&#8217;s first comment.<br />
The script that creates the GTT is catplan.sql &#8211; but that is part of the 10g installation run, and contains lots of other bits too. The utlxplan.sql script should have been retired by Oracle. but is still lurking, waiting to trap people.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amardeep Sidhu</title>
		<link>http://jonathanlewis.wordpress.com/2010/01/25/old-plan_table/#comment-40216</link>
		<dc:creator><![CDATA[Amardeep Sidhu]]></dc:creator>
		<pubDate>Wed, 06 Apr 2011 09:38:56 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2917#comment-40216</guid>
		<description><![CDATA[Jonathan,

Not sure what I am missing but here I am checking 2 systems (10.2.0.5 on AIX &amp; 10.2.0.4 on HP-UX) and on both the systems utlxplan.sql doesn&#039;t create a global temp table. It is just a simple create table statement. PLAN_TABLE in SYS is created as GTT, though.

Thanks,
Amardeep Sidhu]]></description>
		<content:encoded><![CDATA[<p>Jonathan,</p>
<p>Not sure what I am missing but here I am checking 2 systems (10.2.0.5 on AIX &amp; 10.2.0.4 on HP-UX) and on both the systems utlxplan.sql doesn&#8217;t create a global temp table. It is just a simple create table statement. PLAN_TABLE in SYS is created as GTT, though.</p>
<p>Thanks,<br />
Amardeep Sidhu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jithin Sarath</title>
		<link>http://jonathanlewis.wordpress.com/2010/01/25/old-plan_table/#comment-37300</link>
		<dc:creator><![CDATA[Jithin Sarath]]></dc:creator>
		<pubDate>Wed, 15 Sep 2010 05:02:53 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2917#comment-37300</guid>
		<description><![CDATA[Hi Jonathan,
Your last tip was a life saver. I user the predicate information extensively when i tune SQLs and one set of my client&#039;s instances never showed any. And naturally, it&#039;s abig task to make them drop a few old plan_tables. So i used your workaround and wow... I have all the predicate info that I want. Thank you !!

btw, i solved that issue too

Jithin]]></description>
		<content:encoded><![CDATA[<p>Hi Jonathan,<br />
Your last tip was a life saver. I user the predicate information extensively when i tune SQLs and one set of my client&#8217;s instances never showed any. And naturally, it&#8217;s abig task to make them drop a few old plan_tables. So i used your workaround and wow&#8230; I have all the predicate info that I want. Thank you !!</p>
<p>btw, i solved that issue too</p>
<p>Jithin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Book Review: Expert Oracle Database Architecture: Oracle Database Programming 9i, 10g, and 11g Techniques and Solutions, Second Edition &#171; Charles Hooper&#039;s Oracle Notes</title>
		<link>http://jonathanlewis.wordpress.com/2010/01/25/old-plan_table/#comment-36985</link>
		<dc:creator><![CDATA[Book Review: Expert Oracle Database Architecture: Oracle Database Programming 9i, 10g, and 11g Techniques and Solutions, Second Edition &#171; Charles Hooper&#039;s Oracle Notes]]></dc:creator>
		<pubDate>Mon, 16 Aug 2010 10:32:08 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2917#comment-36985</guid>
		<description><![CDATA[[...] Page xxxvi describes running the utlxplan script as the user SYSTEM.  Running this script should not be necessary starting with Oracle Database 9i (Reference). [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Page xxxvi describes running the utlxplan script as the user SYSTEM.  Running this script should not be necessary starting with Oracle Database 9i (Reference). [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Book Review: Oracle SQL Recipes: A Problem &#8211; Solution Approach &#171; Charles Hooper&#039;s Oracle Notes</title>
		<link>http://jonathanlewis.wordpress.com/2010/01/25/old-plan_table/#comment-36440</link>
		<dc:creator><![CDATA[Book Review: Oracle SQL Recipes: A Problem &#8211; Solution Approach &#171; Charles Hooper&#039;s Oracle Notes]]></dc:creator>
		<pubDate>Mon, 07 Jun 2010 10:56:32 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2917#comment-36440</guid>
		<description><![CDATA[[...] Recipe 19-7 states that a PLAN_TABLE must exist, and that if it does not exist the utlxplan.sql script should be run to create a PLAN_TABLE in the user’s schema. As of Oracle Database 10.1.0.1 [Edit: it appears that this change happened prior to 10.1.0.1] user schemas should no longer have a PLAN_TABLE in their schema – a global temporary table owned by the SYS user is used instead. [Reference/Test Case - Check the Comments Section Also] [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Recipe 19-7 states that a PLAN_TABLE must exist, and that if it does not exist the utlxplan.sql script should be run to create a PLAN_TABLE in the user’s schema. As of Oracle Database 10.1.0.1 [Edit: it appears that this change happened prior to 10.1.0.1] user schemas should no longer have a PLAN_TABLE in their schema – a global temporary table owned by the SYS user is used instead. [Reference/Test Case - Check the Comments Section Also] [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
