<?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: GATHER_PLAN_STATISTICS</title>
	<atom:link href="http://kerryosborne.oracle-guy.com/2010/02/gather_plan_statistics/feed/" rel="self" type="application/rss+xml" />
	<link>http://kerryosborne.oracle-guy.com/2010/02/gather_plan_statistics/</link>
	<description>Just another Oracle blog</description>
	<pubDate>Thu, 29 Jul 2010 12:09:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Blogroll Report 05/02/2009 – 12/02/2010 &#171; Coskan&#8217;s Approach to Oracle</title>
		<link>http://kerryosborne.oracle-guy.com/2010/02/gather_plan_statistics/#comment-8070</link>
		<dc:creator>Blogroll Report 05/02/2009 – 12/02/2010 &#171; Coskan&#8217;s Approach to Oracle</dc:creator>
		<pubDate>Wed, 10 Mar 2010 02:28:23 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=2193#comment-8070</guid>
		<description>[...] Kerry Osborne-gather_plan_statistics [...]</description>
		<content:encoded><![CDATA[<p>[...] Kerry Osborne-gather_plan_statistics [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2010/02/gather_plan_statistics/#comment-7875</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Wed, 03 Mar 2010 17:00:11 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=2193#comment-7875</guid>
		<description>David,

  Thanks for the comments. I just updated the post with another script (gps.sql) that just prompts for the SQL_ID and adds the GATHER_PLAN_STATISTICS hint to it (via a Profile). A little more straight forward than the generic create_1_hint_sql_profile.sql script.

Kerry</description>
		<content:encoded><![CDATA[<p>David,</p>
<p>  Thanks for the comments. I just updated the post with another script (gps.sql) that just prompts for the SQL_ID and adds the GATHER_PLAN_STATISTICS hint to it (via a Profile). A little more straight forward than the generic create_1_hint_sql_profile.sql script.</p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Mann</title>
		<link>http://kerryosborne.oracle-guy.com/2010/02/gather_plan_statistics/#comment-7874</link>
		<dc:creator>David Mann</dc:creator>
		<pubDate>Wed, 03 Mar 2010 16:25:04 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=2193#comment-7874</guid>
		<description>Incorporating this as a hint is a great idea, never thought of that but it makes sense.  

I also like the idea of temporarily messing up stats to make sure they are affecting the XPLAN as expected. 

A couple of more tools for my toolbox, thanks!</description>
		<content:encoded><![CDATA[<p>Incorporating this as a hint is a great idea, never thought of that but it makes sense.  </p>
<p>I also like the idea of temporarily messing up stats to make sure they are affecting the XPLAN as expected. </p>
<p>A couple of more tools for my toolbox, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2010/02/gather_plan_statistics/#comment-7486</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Thu, 18 Feb 2010 14:43:44 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=2193#comment-7486</guid>
		<description>Anad,

  My dplan_allstats.sql script is just DBMS_XPLAN.DISPLAY_CURSOR with the ALLSTATS format option prompting for a sql_id and child_number (like so):

&lt;pre&gt;
set lines 180
select * from table(dbms_xplan.display_cursor('&#038;sql_id','&#038;child_no','allstats'));
&lt;/pre&gt;

It won't show the A-Rows column unless the statement was instructed to collect the extra information. This can be done by running with the GATHER_PLAN_STATISTICS hint or the session having statistics_level = all, or _rowsource_execution_statistics = true. You should get a note at bottom of the xplan output like so if you have not enabled the collection of the extended statistics.

&lt;pre&gt;
Note
-----
   - Warning: basic plan statistics not available. These are only collected when:
       * hint 'gather_plan_statistics' is used for the statement or
       * parameter 'statistics_level' is set to 'ALL', at session or system level
&lt;/pre&gt;

Hope that helps.

Kerry</description>
		<content:encoded><![CDATA[<p>Anad,</p>
<p>  My dplan_allstats.sql script is just DBMS_XPLAN.DISPLAY_CURSOR with the ALLSTATS format option prompting for a sql_id and child_number (like so):</p>
<pre>
set lines 180
select * from table(dbms_xplan.display_cursor('&#038;sql_id','&#038;child_no','allstats'));
</pre>
<p>It won&#8217;t show the A-Rows column unless the statement was instructed to collect the extra information. This can be done by running with the GATHER_PLAN_STATISTICS hint or the session having statistics_level = all, or _rowsource_execution_statistics = true. You should get a note at bottom of the xplan output like so if you have not enabled the collection of the extended statistics.</p>
<pre>
Note
-----
   - Warning: basic plan statistics not available. These are only collected when:
       * hint 'gather_plan_statistics' is used for the statement or
       * parameter 'statistics_level' is set to 'ALL', at session or system level
</pre>
<p>Hope that helps.</p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand</title>
		<link>http://kerryosborne.oracle-guy.com/2010/02/gather_plan_statistics/#comment-7474</link>
		<dc:creator>Anand</dc:creator>
		<pubDate>Thu, 18 Feb 2010 07:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=2193#comment-7474</guid>
		<description>Hi Kerry,
 When i am generating the explian plan using DBMS_XPLAN.DISPLAY_CURSOR with format "ALLSTATS LAST" i am not getting the A-rows,A-time etc columns?Why is it so?What all i am getting is "OMem &#124;  1Mem &#124; Used-Mem &#124; Used-Tm"

Regards,
Anand</description>
		<content:encoded><![CDATA[<p>Hi Kerry,<br />
 When i am generating the explian plan using DBMS_XPLAN.DISPLAY_CURSOR with format &#8220;ALLSTATS LAST&#8221; i am not getting the A-rows,A-time etc columns?Why is it so?What all i am getting is &#8220;OMem |  1Mem | Used-Mem | Used-Tm&#8221;</p>
<p>Regards,<br />
Anand</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand</title>
		<link>http://kerryosborne.oracle-guy.com/2010/02/gather_plan_statistics/#comment-7472</link>
		<dc:creator>Anand</dc:creator>
		<pubDate>Thu, 18 Feb 2010 07:09:20 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=2193#comment-7472</guid>
		<description>Hi,

Nice post, very informative.Where can i get dplan_allstats script?


Anand</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Nice post, very informative.Where can i get dplan_allstats script?</p>
<p>Anand</p>
]]></content:encoded>
	</item>
</channel>
</rss>
