<?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 for Kerry Osborne's Oracle Blog</title>
	<atom:link href="http://kerryosborne.oracle-guy.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://kerryosborne.oracle-guy.com</link>
	<description>Just another Oracle blog</description>
	<pubDate>Fri, 12 Mar 2010 13:13:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>Comment on GATHER_PLAN_STATISTICS 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>Comment on GATHER_PLAN_STATISTICS 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>Comment on SQL Profiles by osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/#comment-7630</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Tue, 23 Feb 2010 14:50:57 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1092#comment-7630</guid>
		<description>Hi Shruti,

  If a Profile exists for a given statement it should be used regardless of which user is executing the statement. There are a couple of things you can check to make sure it should be used. Look at the signature columns in v$sql and dba_sql_profiles. They should match. Also, if the statement is using the Profile, the sql_profile column in v$sql will have the name of the profile in it. If the signatures match but it's not being picked up, that's probably a bug. I have seen this happen with force_matching=true. So you might try without setting that option. By the way, there are many posts on this site with information on how Profiles work "under the covers". Good luck. 

Kerry</description>
		<content:encoded><![CDATA[<p>Hi Shruti,</p>
<p>  If a Profile exists for a given statement it should be used regardless of which user is executing the statement. There are a couple of things you can check to make sure it should be used. Look at the signature columns in v$sql and dba_sql_profiles. They should match. Also, if the statement is using the Profile, the sql_profile column in v$sql will have the name of the profile in it. If the signatures match but it&#8217;s not being picked up, that&#8217;s probably a bug. I have seen this happen with force_matching=true. So you might try without setting that option. By the way, there are many posts on this site with information on how Profiles work &#8220;under the covers&#8221;. Good luck. </p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL Profiles by Shruti</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/#comment-7610</link>
		<dc:creator>Shruti</dc:creator>
		<pubDate>Mon, 22 Feb 2010 19:57:02 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1092#comment-7610</guid>
		<description>Hi

I created SQl profile through EM via advisory central using system .
Now if the same query gets executed via other user profile does not get used. How do i transfer that profile for all the users?</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I created SQl profile through EM via advisory central using system .<br />
Now if the same query gets executed via other user profile does not get used. How do i transfer that profile for all the users?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Autotrace Lies Too! by Log Buffer #179: a Carnival of the Vanities for DBAs &#124; The Pythian Blog</title>
		<link>http://kerryosborne.oracle-guy.com/2010/02/autotrace-lies/#comment-7535</link>
		<dc:creator>Log Buffer #179: a Carnival of the Vanities for DBAs &#124; The Pythian Blog</dc:creator>
		<pubDate>Fri, 19 Feb 2010 17:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=2267#comment-7535</guid>
		<description>[...] Osborne asserts that autotrace lies too, following up an older post of his on explain plan&#8217;s untruths: &#8220;Autotrace is another [...]</description>
		<content:encoded><![CDATA[<p>[...] Osborne asserts that autotrace lies too, following up an older post of his on explain plan&#8217;s untruths: &#8220;Autotrace is another [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on GATHER_PLAN_STATISTICS 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>Comment on GATHER_PLAN_STATISTICS 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>Comment on GATHER_PLAN_STATISTICS 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>
	<item>
		<title>Comment on Why Isn&#8217;t Oracle Using My Outline / Profile / Baseline? by osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2009/07/why-isnt-oracle-using-my-outline-profile-baseline/#comment-7386</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Tue, 16 Feb 2010 03:55:07 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1668#comment-7386</guid>
		<description>Jon,

  Once a Profile has been created, its hints will be applied (as long as they are valid, and they don't contradict each other, etc...). Since this was a simple Profile with a single directive (INDEX_RS_ASC), when that hint was found to be invalid, it went back to the Full Table Scan. The reason the hint was invalid is because an index range scan cannot be done on an index where the leading columns are not part of the predicate. A skip scan or a full index scan are possible, but not a normal range scan. And since the IGNORE_OPTIM_EMBEDDED_HINTS hint is also included in the Profile, the inline hint in the text is ignored. So basically it's back to picking a plan without any directive hints. At least that's what I believe is happening.

Kerry</description>
		<content:encoded><![CDATA[<p>Jon,</p>
<p>  Once a Profile has been created, its hints will be applied (as long as they are valid, and they don&#8217;t contradict each other, etc&#8230;). Since this was a simple Profile with a single directive (INDEX_RS_ASC), when that hint was found to be invalid, it went back to the Full Table Scan. The reason the hint was invalid is because an index range scan cannot be done on an index where the leading columns are not part of the predicate. A skip scan or a full index scan are possible, but not a normal range scan. And since the IGNORE_OPTIM_EMBEDDED_HINTS hint is also included in the Profile, the inline hint in the text is ignored. So basically it&#8217;s back to picking a plan without any directive hints. At least that&#8217;s what I believe is happening.</p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why Isn&#8217;t Oracle Using My Outline / Profile / Baseline? by Jon Adams</title>
		<link>http://kerryosborne.oracle-guy.com/2009/07/why-isnt-oracle-using-my-outline-profile-baseline/#comment-7383</link>
		<dc:creator>Jon Adams</dc:creator>
		<pubDate>Tue, 16 Feb 2010 02:39:47 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1668#comment-7383</guid>
		<description>Kerry,
Is it me or did the explain plain for the index-hinted query appear to have MUCH higher cost in terms of rows processed and CPU?  Perhaps this is the reason the optimizer chose to ignore the profile.</description>
		<content:encoded><![CDATA[<p>Kerry,<br />
Is it me or did the explain plain for the index-hinted query appear to have MUCH higher cost in terms of rows processed and CPU?  Perhaps this is the reason the optimizer chose to ignore the profile.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
