<?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: What is the Meaning of the %CPU Column in an Explain Plan?</title>
	<atom:link href="http://hoopercharles.wordpress.com/2010/02/19/what-is-the-meaning-of-the-cpu-column-in-an-explain-plan/feed/" rel="self" type="application/rss+xml" />
	<link>http://hoopercharles.wordpress.com/2010/02/19/what-is-the-meaning-of-the-cpu-column-in-an-explain-plan/</link>
	<description>Miscellaneous Random Oracle Topics: Stop, Think, ... Understand</description>
	<lastBuildDate>Thu, 23 May 2013 04:02:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2010/02/19/what-is-the-meaning-of-the-cpu-column-in-an-explain-plan/#comment-2802</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Tue, 08 Feb 2011 01:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1422#comment-2802</guid>
		<description><![CDATA[Hi Patricia,

If I understand your question correctly, you are asking if it is possible to determine which SQL statements cause performance problems based on the calculated CPU_COST.  I do not think that it is safe to determine which SQL statements will cause performance problem based only on the calculated CPU_COST or IO_COST - those numbers are only estimated values.  It is not completely clear what the unit of measure is for the CPU_COST values, other than it is related to CPUSPEED from SYS.AUX_STATS$, which indicates the relative performance of the CPU when performing some sort of Oracle Database task (possibly directly related to the number of consistent gets that may be performed per second).

A 10046 extended SQL trace produces much better information about which queries executed by a session potentially cause performance problems.  I have a three part series on my blog that describes 10046 extended SQL traces.  Part 3 of the series is found here:
http://hoopercharles.wordpress.com/2010/09/06/10046-extended-sql-trace-interpretation-3/

You can process the 10046 extended SQL trace files using tkprof or many other utilities to help summarize the information, or you can look directly at the 10046 trace file.  For example:
[code]
WAIT #3: nam=&#039;direct path read temp&#039; ela= 874 file number=201 first dba=276414 block cnt=31 obj#=82052 tim=4482620835
WAIT #3: nam=&#039;asynch descriptor resize&#039; ela= 0 outstanding #aio=0 current aio limit=4294967295 new aio limit=767 obj#=82052 tim=4482696314
WAIT #3: nam=&#039;asynch descriptor resize&#039; ela= 1 outstanding #aio=0 current aio limit=4294967295 new aio limit=702 obj#=82052 tim=4482696416
FETCH #3:c=8704855,e=11028077,p=317918,cr=267225,cu=0,mis=0,r=1,dep=0,og=1,plh=4284856579,tim=4482696455
[/code]
In the above we see &quot;c=8704855,e=11028077&quot;.  That means fetching one row (&quot;r=1&quot; in the line) required 8.704855 seconds of CPU time and 11.028077 seconds of total time.

On pages 215 through 218 of the &quot;Expert Oracle Practices&quot; book, Randolf Geist and I showed how to monitor the V$SQLSTATS view to watch in real-time for CPU intensive SQL statements.  See the following link:
http://books.google.com/books?id=tUNtyMCwDWQC&amp;pg=PA215#v=onepage&amp;q&amp;f=false

Statspack and AWR (if the database is licensed for the Diagnostics Pack) are also helpful.  I have a couple of blog articles on the topic of Statspack reports, see:
http://hoopercharles.wordpress.com/2009/11/30/11-2-0-1-statspack-report-contents/
http://hoopercharles.wordpress.com/2009/12/14/statspackawr-report-resources/

Jonathan Lewis has a very well written collection of Statspack articles.  You will find those articles here:
http://jonathanlewis.wordpress.com/statspack-examples/

Another approach that you can use is sampling the time model statistics.  I have a three part series on that topic, with part three listed below:
http://hoopercharles.wordpress.com/2010/02/09/working-with-oracle%e2%80%99s-time-model-data-3/

Good luck.]]></description>
		<content:encoded><![CDATA[<p>Hi Patricia,</p>
<p>If I understand your question correctly, you are asking if it is possible to determine which SQL statements cause performance problems based on the calculated CPU_COST.  I do not think that it is safe to determine which SQL statements will cause performance problem based only on the calculated CPU_COST or IO_COST &#8211; those numbers are only estimated values.  It is not completely clear what the unit of measure is for the CPU_COST values, other than it is related to CPUSPEED from SYS.AUX_STATS$, which indicates the relative performance of the CPU when performing some sort of Oracle Database task (possibly directly related to the number of consistent gets that may be performed per second).</p>
<p>A 10046 extended SQL trace produces much better information about which queries executed by a session potentially cause performance problems.  I have a three part series on my blog that describes 10046 extended SQL traces.  Part 3 of the series is found here:<br />
<a href="http://hoopercharles.wordpress.com/2010/09/06/10046-extended-sql-trace-interpretation-3/" rel="nofollow">http://hoopercharles.wordpress.com/2010/09/06/10046-extended-sql-trace-interpretation-3/</a></p>
<p>You can process the 10046 extended SQL trace files using tkprof or many other utilities to help summarize the information, or you can look directly at the 10046 trace file.  For example:</p>
<pre class="brush: plain; title: ; notranslate">
WAIT #3: nam='direct path read temp' ela= 874 file number=201 first dba=276414 block cnt=31 obj#=82052 tim=4482620835
WAIT #3: nam='asynch descriptor resize' ela= 0 outstanding #aio=0 current aio limit=4294967295 new aio limit=767 obj#=82052 tim=4482696314
WAIT #3: nam='asynch descriptor resize' ela= 1 outstanding #aio=0 current aio limit=4294967295 new aio limit=702 obj#=82052 tim=4482696416
FETCH #3:c=8704855,e=11028077,p=317918,cr=267225,cu=0,mis=0,r=1,dep=0,og=1,plh=4284856579,tim=4482696455
</pre>
<p>In the above we see &#8220;c=8704855,e=11028077&#8243;.  That means fetching one row (&#8220;r=1&#8243; in the line) required 8.704855 seconds of CPU time and 11.028077 seconds of total time.</p>
<p>On pages 215 through 218 of the &#8220;Expert Oracle Practices&#8221; book, Randolf Geist and I showed how to monitor the V$SQLSTATS view to watch in real-time for CPU intensive SQL statements.  See the following link:<br />
<a href="http://books.google.com/books?id=tUNtyMCwDWQC&#038;pg=PA215#v=onepage&#038;q&#038;f=false" rel="nofollow">http://books.google.com/books?id=tUNtyMCwDWQC&#038;pg=PA215#v=onepage&#038;q&#038;f=false</a></p>
<p>Statspack and AWR (if the database is licensed for the Diagnostics Pack) are also helpful.  I have a couple of blog articles on the topic of Statspack reports, see:<br />
<a href="http://hoopercharles.wordpress.com/2009/11/30/11-2-0-1-statspack-report-contents/" rel="nofollow">http://hoopercharles.wordpress.com/2009/11/30/11-2-0-1-statspack-report-contents/</a><br />
<a href="http://hoopercharles.wordpress.com/2009/12/14/statspackawr-report-resources/" rel="nofollow">http://hoopercharles.wordpress.com/2009/12/14/statspackawr-report-resources/</a></p>
<p>Jonathan Lewis has a very well written collection of Statspack articles.  You will find those articles here:<br />
<a href="http://jonathanlewis.wordpress.com/statspack-examples/" rel="nofollow">http://jonathanlewis.wordpress.com/statspack-examples/</a></p>
<p>Another approach that you can use is sampling the time model statistics.  I have a three part series on that topic, with part three listed below:<br />
<a href="http://hoopercharles.wordpress.com/2010/02/09/working-with-oracle%e2%80%99s-time-model-data-3/" rel="nofollow">http://hoopercharles.wordpress.com/2010/02/09/working-with-oracle%e2%80%99s-time-model-data-3/</a></p>
<p>Good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PATRICIA</title>
		<link>http://hoopercharles.wordpress.com/2010/02/19/what-is-the-meaning-of-the-cpu-column-in-an-explain-plan/#comment-2801</link>
		<dc:creator><![CDATA[PATRICIA]]></dc:creator>
		<pubDate>Mon, 07 Feb 2011 17:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1422#comment-2801</guid>
		<description><![CDATA[Interesante, pero como sé si x ciclos de máquina representan un costo significativo e involucran perdida de performance??

&lt;em&gt;(edit: &lt;strong&gt;translate.google.com:&lt;/strong&gt; Interesting, but I know if machine x cycles represent a significant cost and involve loss of performance?)&lt;/em&gt;]]></description>
		<content:encoded><![CDATA[<p>Interesante, pero como sé si x ciclos de máquina representan un costo significativo e involucran perdida de performance??</p>
<p><em>(edit: <strong>translate.google.com:</strong> Interesting, but I know if machine x cycles represent a significant cost and involve loss of performance?)</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blogroll Report 12/02/2009 – 19/02/2010 &#171; Coskan&#8217;s Approach to Oracle</title>
		<link>http://hoopercharles.wordpress.com/2010/02/19/what-is-the-meaning-of-the-cpu-column-in-an-explain-plan/#comment-527</link>
		<dc:creator><![CDATA[Blogroll Report 12/02/2009 – 19/02/2010 &#171; Coskan&#8217;s Approach to Oracle]]></dc:creator>
		<pubDate>Thu, 18 Mar 2010 16:45:06 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1422#comment-527</guid>
		<description><![CDATA[[...] 25-What is %CPU in explain plan output? Charles Hooper-What is the Meaning of the %CPU Column in an Explain Plan? [...]]]></description>
		<content:encoded><![CDATA[<p>[...] 25-What is %CPU in explain plan output? Charles Hooper-What is the Meaning of the %CPU Column in an Explain Plan? [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Log Buffer #180: a Carnival of the Vanities for DBAs &#124; The Pythian Blog</title>
		<link>http://hoopercharles.wordpress.com/2010/02/19/what-is-the-meaning-of-the-cpu-column-in-an-explain-plan/#comment-426</link>
		<dc:creator><![CDATA[Log Buffer #180: a Carnival of the Vanities for DBAs &#124; The Pythian Blog]]></dc:creator>
		<pubDate>Fri, 26 Feb 2010 18:20:53 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1422#comment-426</guid>
		<description><![CDATA[[...] Charles Hooper answers the question, What is the meaning of the %CPU column in an explain plan?. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Charles Hooper answers the question, What is the meaning of the %CPU column in an explain plan?. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Girish</title>
		<link>http://hoopercharles.wordpress.com/2010/02/19/what-is-the-meaning-of-the-cpu-column-in-an-explain-plan/#comment-404</link>
		<dc:creator><![CDATA[Girish]]></dc:creator>
		<pubDate>Sat, 20 Feb 2010 14:17:25 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1422#comment-404</guid>
		<description><![CDATA[Hi Charles,

Excellent explanation of %CPU column.

Regards
Girish]]></description>
		<content:encoded><![CDATA[<p>Hi Charles,</p>
<p>Excellent explanation of %CPU column.</p>
<p>Regards<br />
Girish</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2010/02/19/what-is-the-meaning-of-the-cpu-column-in-an-explain-plan/#comment-403</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Sat, 20 Feb 2010 03:07:59 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1422#comment-403</guid>
		<description><![CDATA[Anand,

Thank you for the compliment.]]></description>
		<content:encoded><![CDATA[<p>Anand,</p>
<p>Thank you for the compliment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand</title>
		<link>http://hoopercharles.wordpress.com/2010/02/19/what-is-the-meaning-of-the-cpu-column-in-an-explain-plan/#comment-401</link>
		<dc:creator><![CDATA[Anand]]></dc:creator>
		<pubDate>Fri, 19 Feb 2010 07:28:25 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1422#comment-401</guid>
		<description><![CDATA[Hi Charles,

   Thanks for making understand the %CPU column meaning so easy.

Regards,
Anand]]></description>
		<content:encoded><![CDATA[<p>Hi Charles,</p>
<p>   Thanks for making understand the %CPU column meaning so easy.</p>
<p>Regards,<br />
Anand</p>
]]></content:encoded>
	</item>
</channel>
</rss>
