<?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: How to Attach a SQL Profile to a Different Statement - Take 2</title>
	<atom:link href="http://kerryosborne.oracle-guy.com/2009/10/how-to-attach-a-sql-profile-to-a-different-statement-take-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://kerryosborne.oracle-guy.com/2009/10/how-to-attach-a-sql-profile-to-a-different-statement-take-2/</link>
	<description>Just another Oracle blog</description>
	<pubDate>Thu, 29 Jul 2010 12:07:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2009/10/how-to-attach-a-sql-profile-to-a-different-statement-take-2/#comment-5462</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Fri, 23 Oct 2009 16:51:55 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1712#comment-5462</guid>
		<description>Fikret,

  Please email me the statements and the plans and the hints associated with the Profile and I'll have a look. 

Kerry</description>
		<content:encoded><![CDATA[<p>Fikret,</p>
<p>  Please email me the statements and the plans and the hints associated with the Profile and I&#8217;ll have a look. </p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fikret</title>
		<link>http://kerryosborne.oracle-guy.com/2009/10/how-to-attach-a-sql-profile-to-a-different-statement-take-2/#comment-5459</link>
		<dc:creator>Fikret</dc:creator>
		<pubDate>Fri, 23 Oct 2009 12:07:16 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1712#comment-5459</guid>
		<description>I have a query when I execute it oracle does not use  index.   when i use index hint in query works very fine   and i want that oracle use my hint. and i created whth mov_sql_profile.sql and i saw that plan changed. And plan shows that it uses index. But in really not using because when i use manually that query with hint it is running quickly but when i remove hint at this time plan not changed but works very hard as it is plan not this plan.
Please sorry for my bad English</description>
		<content:encoded><![CDATA[<p>I have a query when I execute it oracle does not use  index.   when i use index hint in query works very fine   and i want that oracle use my hint. and i created whth mov_sql_profile.sql and i saw that plan changed. And plan shows that it uses index. But in really not using because when i use manually that query with hint it is running quickly but when i remove hint at this time plan not changed but works very hard as it is plan not this plan.<br />
Please sorry for my bad English</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2009/10/how-to-attach-a-sql-profile-to-a-different-statement-take-2/#comment-5455</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Fri, 23 Oct 2009 08:35:56 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1712#comment-5455</guid>
		<description>Fikret,

  I'm not sure I understood your question. If you can provide more details I'll be happy to to take a look.

Kerry</description>
		<content:encoded><![CDATA[<p>Fikret,</p>
<p>  I&#8217;m not sure I understood your question. If you can provide more details I&#8217;ll be happy to to take a look.</p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fikret</title>
		<link>http://kerryosborne.oracle-guy.com/2009/10/how-to-attach-a-sql-profile-to-a-different-statement-take-2/#comment-5452</link>
		<dc:creator>Fikret</dc:creator>
		<pubDate>Fri, 23 Oct 2009 06:10:37 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1712#comment-5452</guid>
		<description>Hi I want to ask one question again move_sql_profile.sql works fine. I changed plan for my sql with move_sql_profile but query works slowly again. when i use my query with hint it works fine but the plan is the same</description>
		<content:encoded><![CDATA[<p>Hi I want to ask one question again move_sql_profile.sql works fine. I changed plan for my sql with move_sql_profile but query works slowly again. when i use my query with hint it works fine but the plan is the same</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blogroll Report 09/10/2009-16/10/2009 &#171; Coskan&#8217;s Approach to Oracle</title>
		<link>http://kerryosborne.oracle-guy.com/2009/10/how-to-attach-a-sql-profile-to-a-different-statement-take-2/#comment-5433</link>
		<dc:creator>Blogroll Report 09/10/2009-16/10/2009 &#171; Coskan&#8217;s Approach to Oracle</dc:creator>
		<pubDate>Wed, 21 Oct 2009 23:28:55 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1712#comment-5433</guid>
		<description>[...] Kerry Osborne-How to Attach a SQL Profile to a Different Statement &#8211; Take 2 [...]</description>
		<content:encoded><![CDATA[<p>[...] Kerry Osborne-How to Attach a SQL Profile to a Different Statement &#8211; Take 2 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2009/10/how-to-attach-a-sql-profile-to-a-different-statement-take-2/#comment-5432</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Wed, 21 Oct 2009 22:47:26 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1712#comment-5432</guid>
		<description>No problem. Happens to me all the time (usually I figure out my mistake right after I post something). ;)

Kerry</description>
		<content:encoded><![CDATA[<p>No problem. Happens to me all the time (usually I figure out my mistake right after I post something). ;)</p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Coskan</title>
		<link>http://kerryosborne.oracle-guy.com/2009/10/how-to-attach-a-sql-profile-to-a-different-statement-take-2/#comment-5430</link>
		<dc:creator>Coskan</dc:creator>
		<pubDate>Wed, 21 Oct 2009 15:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1712#comment-5430</guid>
		<description>It was my fault that I was using the same sqlid for the moved one everything works fine :)</description>
		<content:encoded><![CDATA[<p>It was my fault that I was using the same sqlid for the moved one everything works fine :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2009/10/how-to-attach-a-sql-profile-to-a-different-statement-take-2/#comment-5411</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Mon, 19 Oct 2009 16:38:42 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1712#comment-5411</guid>
		<description>Thanks for the comments Coskan. 

On the first suggestion, I think v$sqlarea should only return one row per sql_id. I don't recall ever seeing more than one row for a statement in that view. It's possible I have a typo somewhere using v$sql which has a row for every child. Please send the error you got and I'll do a little more looking.

On the second one, that error should only show up if there is an existing SQL Profile already on that statement. Let me know if that is not the case and we'll figure out what's going on.

Also, I just this morning modified the move_sql_profile.sql script to allow it to work for 10g or 11g, so you might want to grab that new version instead of having separate versions for 10g and 11g.

Thanks again for the comments.

Kerry</description>
		<content:encoded><![CDATA[<p>Thanks for the comments Coskan. </p>
<p>On the first suggestion, I think v$sqlarea should only return one row per sql_id. I don&#8217;t recall ever seeing more than one row for a statement in that view. It&#8217;s possible I have a typo somewhere using v$sql which has a row for every child. Please send the error you got and I&#8217;ll do a little more looking.</p>
<p>On the second one, that error should only show up if there is an existing SQL Profile already on that statement. Let me know if that is not the case and we&#8217;ll figure out what&#8217;s going on.</p>
<p>Also, I just this morning modified the move_sql_profile.sql script to allow it to work for 10g or 11g, so you might want to grab that new version instead of having separate versions for 10g and 11g.</p>
<p>Thanks again for the comments.</p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Coskan</title>
		<link>http://kerryosborne.oracle-guy.com/2009/10/how-to-attach-a-sql-profile-to-a-different-statement-take-2/#comment-5410</link>
		<dc:creator>Coskan</dc:creator>
		<pubDate>Mon, 19 Oct 2009 16:08:05 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1712#comment-5410</guid>
		<description>Hi Kerry,

Very nice post thank you very much for sharing. 
Couple of things for the scripts 
1- move_sql_profile 
select
sql_fulltext
into
cl_sql_text
from
v$sqlarea
where
sql_id = '&#38;&#38;sql_id'

this can return more than 1 when you have multiple children so rownum should be used to avoid the fetch error. 

2- Maybe I am missing some step but on both 11G and 10G I am having "ORA-13830: SQL profile with category DEFAULT already exists for this SQL statement" when I run move_sql_profile  or move_sql_profile11(which I created as the same way of sql_profile11 script you use)</description>
		<content:encoded><![CDATA[<p>Hi Kerry,</p>
<p>Very nice post thank you very much for sharing.<br />
Couple of things for the scripts<br />
1- move_sql_profile<br />
select<br />
sql_fulltext<br />
into<br />
cl_sql_text<br />
from<br />
v$sqlarea<br />
where<br />
sql_id = &#8216;&amp;&amp;sql_id&#8217;</p>
<p>this can return more than 1 when you have multiple children so rownum should be used to avoid the fetch error. </p>
<p>2- Maybe I am missing some step but on both 11G and 10G I am having &#8220;ORA-13830: SQL profile with category DEFAULT already exists for this SQL statement&#8221; when I run move_sql_profile  or move_sql_profile11(which I created as the same way of sql_profile11 script you use)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2009/10/how-to-attach-a-sql-profile-to-a-different-statement-take-2/#comment-5408</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Mon, 19 Oct 2009 14:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1712#comment-5408</guid>
		<description>Sorry about that Fikret. The version I originally put up only worked with 10g. That was an oversight on my part (I forgot that 11g modified the layout of the underlying SQL Profile structures). I have modified the move_sql_profiles.sql script to work with either version. Please let me know if you have any further issues.

Kerry</description>
		<content:encoded><![CDATA[<p>Sorry about that Fikret. The version I originally put up only worked with 10g. That was an oversight on my part (I forgot that 11g modified the layout of the underlying SQL Profile structures). I have modified the move_sql_profiles.sql script to work with either version. Please let me know if you have any further issues.</p>
<p>Kerry</p>
]]></content:encoded>
	</item>
</channel>
</rss>
