<?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: SQL Profiles &#8211; 2</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Fri, 24 May 2013 13:27:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL Tuning Advisor Internals &#171; Julian Dontcheff&#039;s Database Blog</title>
		<link>http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-53210</link>
		<dc:creator><![CDATA[SQL Tuning Advisor Internals &#171; Julian Dontcheff&#039;s Database Blog]]></dc:creator>
		<pubDate>Sun, 27 Jan 2013 17:07:34 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-53210</guid>
		<description><![CDATA[[...] if you check Jonathan Lewis&#8217;s article on SQL Profiles and the comments after it, you will notice that: _stn_trace does not seem to be available anymore [...]]]></description>
		<content:encoded><![CDATA[<p>[...] if you check Jonathan Lewis&#8217;s article on SQL Profiles and the comments after it, you will notice that: _stn_trace does not seem to be available anymore [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dontcheff</title>
		<link>http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-50948</link>
		<dc:creator><![CDATA[Dontcheff]]></dc:creator>
		<pubDate>Wed, 24 Oct 2012 00:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-50948</guid>
		<description><![CDATA[In 12c, “_stn_trace” has been transformed from an underscore parameter to an event]]></description>
		<content:encoded><![CDATA[<p>In 12c, “_stn_trace” has been transformed from an underscore parameter to an event</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-41725</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Fri, 16 Sep 2011 10:41:14 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-41725</guid>
		<description><![CDATA[Guy,

Thanks for the update.
I&#039;ll have to hunt around the parameter list and oraus.msg to see if there&#039;s an alternative.
]]></description>
		<content:encoded><![CDATA[<p>Guy,</p>
<p>Thanks for the update.<br />
I&#8217;ll have to hunt around the parameter list and oraus.msg to see if there&#8217;s an alternative.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guy Lambregts</title>
		<link>http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-41715</link>
		<dc:creator><![CDATA[Guy Lambregts]]></dc:creator>
		<pubDate>Thu, 15 Sep 2011 09:05:46 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-41715</guid>
		<description><![CDATA[&quot;_stn_trace&quot; does not seem to be available anymore in 11G R2.]]></description>
		<content:encoded><![CDATA[<p>&#8220;_stn_trace&#8221; does not seem to be available anymore in 11G R2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-37495</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Thu, 07 Oct 2010 18:49:53 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-37495</guid>
		<description><![CDATA[I am surprised that the stored text for the SQL adds  a /*+ rule */ hint - but (I haven&#039;t tried this particular type of test).

Since profiles are about numbers, rather than plans, I would use stored outlines to achieve your target - run the query with create_stored_outlines enabled, and optimizer_mode set to rule, and the actual text and actual rule-based plan should be stored. The run switch back to cost based and enable use_stored_outlines.

I think there&#039;s a feature in 11.2 that would then allow you to convert a stored outline into an SQL Baseline.  (Remember, SQL Profiles allow execution plans to change over time because mostly they use &quot;arithmetic&quot; hints, but a stored outline or SQL Baseline fixes a plan through &quot;micro-management&quot; hints.)]]></description>
		<content:encoded><![CDATA[<p>I am surprised that the stored text for the SQL adds  a /*+ rule */ hint &#8211; but (I haven&#8217;t tried this particular type of test).</p>
<p>Since profiles are about numbers, rather than plans, I would use stored outlines to achieve your target &#8211; run the query with create_stored_outlines enabled, and optimizer_mode set to rule, and the actual text and actual rule-based plan should be stored. The run switch back to cost based and enable use_stored_outlines.</p>
<p>I think there&#8217;s a feature in 11.2 that would then allow you to convert a stored outline into an SQL Baseline.  (Remember, SQL Profiles allow execution plans to change over time because mostly they use &#8220;arithmetic&#8221; hints, but a stored outline or SQL Baseline fixes a plan through &#8220;micro-management&#8221; hints.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anil Bishnoie</title>
		<link>http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-37486</link>
		<dc:creator><![CDATA[Anil Bishnoie]]></dc:creator>
		<pubDate>Wed, 06 Oct 2010 12:27:24 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-37486</guid>
		<description><![CDATA[If I have a query which performs best in rbo execution path and would like to use this path even though in cost mode, can it be done using sql profiles ?

This was done by the following steps
1. Alter optimizer mode to rbo.
2. Creating profile of step 1.( In dba_sql_profiles it puts hint of /*+rule+/ in sql_text field)
3. changing mode to cost.
4. alter sesiion to the category as in 2.
5. alter optimizer mode to cost.
6. running the query followed by explain plan to see if it has actually used outline hints under rbo 
Since the sql will not match as /*+rule*/ is additional literal in sql_text of dba_sql_profiles, is their a way to update this or some other way u can suggest to handle this ?

Basically to avoid restructure of a query can query optimizer be forced to ignore cbo path and use stored profile or outline instead ?
 

Thx]]></description>
		<content:encoded><![CDATA[<p>If I have a query which performs best in rbo execution path and would like to use this path even though in cost mode, can it be done using sql profiles ?</p>
<p>This was done by the following steps<br />
1. Alter optimizer mode to rbo.<br />
2. Creating profile of step 1.( In dba_sql_profiles it puts hint of /*+rule+/ in sql_text field)<br />
3. changing mode to cost.<br />
4. alter sesiion to the category as in 2.<br />
5. alter optimizer mode to cost.<br />
6. running the query followed by explain plan to see if it has actually used outline hints under rbo<br />
Since the sql will not match as /*+rule*/ is additional literal in sql_text of dba_sql_profiles, is their a way to update this or some other way u can suggest to handle this ?</p>
<p>Basically to avoid restructure of a query can query optimizer be forced to ignore cbo path and use stored profile or outline instead ?</p>
<p>Thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kerry Osborne&#8217;s Oracle Blog &#187; Blog Archive SQLT - coe_xfr_sql_profile.sql - Kerry Osborne’s Oracle Blog</title>
		<link>http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-36848</link>
		<dc:creator><![CDATA[Kerry Osborne&#8217;s Oracle Blog &#187; Blog Archive SQLT - coe_xfr_sql_profile.sql - Kerry Osborne’s Oracle Blog]]></dc:creator>
		<pubDate>Sat, 24 Jul 2010 20:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-36848</guid>
		<description><![CDATA[[...] Using My Profile, where he expresses some doubts as well - he&#8217;s also written a bit about SQL Profiles on his site as you might [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Using My Profile, where he expresses some doubts as well &#8211; he&#8217;s also written a bit about SQL Profiles on his site as you might [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kerry Osborne&#8217;s Blog &#187; Blog Archive &#187; SQL Tuning Advisor</title>
		<link>http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-31960</link>
		<dc:creator><![CDATA[Kerry Osborne&#8217;s Blog &#187; Blog Archive &#187; SQL Tuning Advisor]]></dc:creator>
		<pubDate>Thu, 02 Oct 2008 20:29:30 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-31960</guid>
		<description><![CDATA[[...] Lewis has a couple of notes about SQL Profiles on his site here SQL Profiles (10g) and here SQL Profiles - 2 that are worth a look. I totally agree with his advice to make sure you know what the profile is [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Lewis has a couple of notes about SQL Profiles on his site here SQL Profiles (10g) and here SQL Profiles &#8211; 2 that are worth a look. I totally agree with his advice to make sure you know what the profile is [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL Profiles (10g) &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-31120</link>
		<dc:creator><![CDATA[SQL Profiles (10g) &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Fri, 30 May 2008 09:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-31120</guid>
		<description><![CDATA[[...] SQL Profiles&#160;(10g) Filed under: CBO, Execution plans, Hints, Performance, Statistics, Tuning &#8212; Jonathan Lewis @ 7:43 pm UTC Feb 11,2007   [Forward to part 2] [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL Profiles&nbsp;(10g) Filed under: CBO, Execution plans, Hints, Performance, Statistics, Tuning &#8212; Jonathan Lewis @ 7:43 pm UTC Feb 11,2007   [Forward to part 2] [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JM</title>
		<link>http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-31112</link>
		<dc:creator><![CDATA[JM]]></dc:creator>
		<pubDate>Thu, 29 May 2008 18:47:31 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/02/12/sql-profiles-2/#comment-31112</guid>
		<description><![CDATA[you may also want to check out:
Subject:  Automatic SQL Tuning - SQL Profiles 
  Doc ID:  Note:271196.1 Type:  BULLETIN 
  Last Revision Date:  15-MAY-2008 Status:  PUBLISHED]]></description>
		<content:encoded><![CDATA[<p>you may also want to check out:<br />
Subject:  Automatic SQL Tuning &#8211; SQL Profiles<br />
  Doc ID:  Note:271196.1 Type:  BULLETIN<br />
  Last Revision Date:  15-MAY-2008 Status:  PUBLISHED</p>
]]></content:encoded>
	</item>
</channel>
</rss>
