<?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/"
		>
<channel>
	<title>Comments on: SQL Profiles</title>
	<atom:link href="http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/feed/" rel="self" type="application/rss+xml" />
	<link>http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/</link>
	<description>Just another Oracle blog</description>
	<lastBuildDate>Mon, 06 Feb 2012 21:28:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/#comment-78428</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Thu, 22 Dec 2011 04:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1092#comment-78428</guid>
		<description>Hi Joshua,

  Yes - the create_sql_profile.sql script in the post uses the hints stored in the other_xml field of v$sql_plan to create a SQL Profile that usually forces a statement to use the plan from which the hints were extracted.

Kerry</description>
		<content:encoded><![CDATA[<p>Hi Joshua,</p>
<p>  Yes &#8211; the create_sql_profile.sql script in the post uses the hints stored in the other_xml field of v$sql_plan to create a SQL Profile that usually forces a statement to use the plan from which the hints were extracted.</p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joshua</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/#comment-78268</link>
		<dc:creator>joshua</dc:creator>
		<pubDate>Wed, 21 Dec 2011 09:37:07 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1092#comment-78268</guid>
		<description>Hi Kerry,
Was wondering if you have used the plan_table to create sql profile before</description>
		<content:encoded><![CDATA[<p>Hi Kerry,<br />
Was wondering if you have used the plan_table to create sql profile before</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Day 11: AWR and Statspack are a goldmine of performance data &#171; So Many Oracle Manuals, So Little Time</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/#comment-77304</link>
		<dc:creator>Day 11: AWR and Statspack are a goldmine of performance data &#171; So Many Oracle Manuals, So Little Time</dc:creator>
		<pubDate>Fri, 16 Dec 2011 03:36:07 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1092#comment-77304</guid>
		<description>[...] considered our options and decided to use Kerry Osborne’s method of creating a SQL profile from the AWR repository to force Oracle to use a known good [...]</description>
		<content:encoded><![CDATA[<p>[...] considered our options and decided to use Kerry Osborne’s method of creating a SQL profile from the AWR repository to force Oracle to use a known good [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: So Many Oracle Manuals, So Little Time</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/#comment-77301</link>
		<dc:creator>So Many Oracle Manuals, So Little Time</dc:creator>
		<pubDate>Fri, 16 Dec 2011 03:23:07 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1092#comment-77301</guid>
		<description>[...] decided to use Kerry Osborne’s method of creating a SQL profile from the AWR repository to force Oracle to use a known good [...]</description>
		<content:encoded><![CDATA[<p>[...] decided to use Kerry Osborne’s method of creating a SQL profile from the AWR repository to force Oracle to use a known good [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Day 10: The Twelve Days of SQL: Sometimes the optimizer needs a hint &#171; So Many Oracle Manuals, So Little Time</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/#comment-77064</link>
		<dc:creator>Day 10: The Twelve Days of SQL: Sometimes the optimizer needs a hint &#171; So Many Oracle Manuals, So Little Time</dc:creator>
		<pubDate>Wed, 14 Dec 2011 15:38:29 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1092#comment-77064</guid>
		<description>[...] and Kerry Osborne’s post http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/. If using SQL Plan Management in Oracle Database 11g you can use the procedure provided in the [...]</description>
		<content:encoded><![CDATA[<p>[...] and Kerry Osborne’s post <a href="http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/" rel="nofollow">http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/</a>. If using SQL Plan Management in Oracle Database 11g you can use the procedure provided in the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: business intelligence</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/#comment-76286</link>
		<dc:creator>business intelligence</dc:creator>
		<pubDate>Sat, 10 Dec 2011 07:37:51 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1092#comment-76286</guid>
		<description>&lt;strong&gt;business intelligence...&lt;/strong&gt;

[...]Kerry Osborne&#8217;s Oracle Blog &#187; Blog Archive &#187; SQL Profiles &#8211; Kerry Osborne’s Oracle Blog[...]...</description>
		<content:encoded><![CDATA[<p><strong>business intelligence&#8230;</strong></p>
<p>[...]Kerry Osborne&#8217;s Oracle Blog &raquo; Blog Archive &raquo; SQL Profiles &#8211; Kerry Osborne’s Oracle Blog[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/#comment-67979</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Fri, 21 Oct 2011 03:39:15 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1092#comment-67979</guid>
		<description>Here&#039;s one way to get around those annoying ora-22992 errors when you try to create a profile in a local database using sql text and outline hints from a remote database:

drop table perfstat.junk_pjk_olhints
/

create table perfstat.junk_pjk_olhints
as
select
other_xml
from
dba_hist_sql_plan@&amp;&amp;3
where
sql_id = &#039;&amp;&amp;1&#039;
and plan_hash_value = &amp;&amp;2
/


drop table perfstat.junk_pjk_sqltext
/

create table perfstat.junk_pjk_sqltext
as
select
sql_text
from
dba_hist_sqltext@&amp;&amp;3
where
sql_id = &#039;&amp;&amp;1&#039;
/

Then run a local create profile script that references the two local junk tables to get hints and sql text to be used in your profile.   I did this a few minutes ago, worked ok, the sql profile is created locally, now I need to get developers to run the problem form to see if the problem query is fixed by the profile.   


Thanks for this blog.

Paul</description>
		<content:encoded><![CDATA[<p>Here&#8217;s one way to get around those annoying ora-22992 errors when you try to create a profile in a local database using sql text and outline hints from a remote database:</p>
<p>drop table perfstat.junk_pjk_olhints<br />
/</p>
<p>create table perfstat.junk_pjk_olhints<br />
as<br />
select<br />
other_xml<br />
from<br />
dba_hist_sql_plan@&amp;&amp;3<br />
where<br />
sql_id = &#8216;&amp;&amp;1&#8242;<br />
and plan_hash_value = &amp;&amp;2<br />
/</p>
<p>drop table perfstat.junk_pjk_sqltext<br />
/</p>
<p>create table perfstat.junk_pjk_sqltext<br />
as<br />
select<br />
sql_text<br />
from<br />
dba_hist_sqltext@&amp;&amp;3<br />
where<br />
sql_id = &#8216;&amp;&amp;1&#8242;<br />
/</p>
<p>Then run a local create profile script that references the two local junk tables to get hints and sql text to be used in your profile.   I did this a few minutes ago, worked ok, the sql profile is created locally, now I need to get developers to run the problem form to see if the problem query is fixed by the profile.   </p>
<p>Thanks for this blog.</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Outline, SQL profile and SQL Plan Management(SPM) &#171; Oracle Explorer: Standing on the shoulders of giants</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/#comment-49145</link>
		<dc:creator>Outline, SQL profile and SQL Plan Management(SPM) &#171; Oracle Explorer: Standing on the shoulders of giants</dc:creator>
		<pubDate>Fri, 22 Jul 2011 00:52:23 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1092#comment-49145</guid>
		<description>[...] by SQL Tuning Advisor may change plans when stats change. Also SQL profile requires a license. http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/ http://kerryosborne.oracle-guy.com/2009/07/why-isnt-oracle-using-my-outline-profile-baseline/ [...]</description>
		<content:encoded><![CDATA[<p>[...] by SQL Tuning Advisor may change plans when stats change. Also SQL profile requires a license. <a href="http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/" rel="nofollow">http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/</a> <a href="http://kerryosborne.oracle-guy.com/2009/07/why-isnt-oracle-using-my-outline-profile-baseline/" rel="nofollow">http://kerryosborne.oracle-guy.com/2009/07/why-isnt-oracle-using-my-outline-profile-baseline/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/#comment-45513</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Wed, 22 Jun 2011 17:07:42 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1092#comment-45513</guid>
		<description>Hi,

I have 2 PLAN_HASH_VALUE for the same sql_id , the cost is the same , but the Elapsed Time (ms) and CPU Time ( ms ) 
is diferent , the optimizer is choosing the wrong PLAN_HASH_VALUE ( with diferent sql plan ) 
How can I force ( may be HINT ) the sql to go with the correct sql plan?

thanks.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have 2 PLAN_HASH_VALUE for the same sql_id , the cost is the same , but the Elapsed Time (ms) and CPU Time ( ms )<br />
is diferent , the optimizer is choosing the wrong PLAN_HASH_VALUE ( with diferent sql plan )<br />
How can I force ( may be HINT ) the sql to go with the correct sql plan?</p>
<p>thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL Profiles &#171; Split-Brain!</title>
		<link>http://kerryosborne.oracle-guy.com/2009/04/oracle-sql-profiles/#comment-34313</link>
		<dc:creator>SQL Profiles &#171; Split-Brain!</dc:creator>
		<pubDate>Sun, 16 Jan 2011 14:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=1092#comment-34313</guid>
		<description>[...] sendo possível, buscar dados no AWR. Uma das melhores formas foi demonstrada por Kerry Orbone, clique aqui para ver ou esta versão, que eu mais utilizo  [...]</description>
		<content:encoded><![CDATA[<p>[...] sendo possível, buscar dados no AWR. Uma das melhores formas foi demonstrada por Kerry Orbone, clique aqui para ver ou esta versão, que eu mais utilizo  [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

