<?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: Advanced Oracle Troubleshooting Guide, Part 5: Sampling V$ stuff with WaitProf. Really fast. Using SQL!</title>
	<atom:link href="http://blog.tanelpoder.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tanelpoder.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql</link>
	<description>Oracle, Exadata, Performance, Troubleshooting - Mobile Life and Productivity.</description>
	<lastBuildDate>Wed, 08 Feb 2012 08:03:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Venu B</title>
		<link>http://blog.tanelpoder.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/comment-page-1/#comment-9221</link>
		<dc:creator>Venu B</dc:creator>
		<pubDate>Wed, 23 Nov 2011 01:46:21 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/#comment-9221</guid>
		<description>Tanel,

I get the following error message when I run it on Solaris. Any idea? It works fine on Linux or AIX.

SQL&gt; @snapper ash 5 1 ALL
Sampling SID ALL with interval 5 seconds, taking 1 snapshots...

-- Session Snapper v3.13 by Tanel Poder @ E2SN ( http://tech.e2sn.com )


-----------------------------------------------------------------------
Active% &#124; SQL_ID          &#124; EVENT                     &#124; WAIT_CLASS
-----------------------------------------------------------------------
declare
*
ERROR at line 1:
ORA-00979: not a GROUP BY expression
ORA-06512: at line 831
ORA-06512: at line 1364

Thanks,
Venu</description>
		<content:encoded><![CDATA[<p>Tanel,</p>
<p>I get the following error message when I run it on Solaris. Any idea? It works fine on Linux or AIX.</p>
<p>SQL&gt; @snapper ash 5 1 ALL<br />
Sampling SID ALL with interval 5 seconds, taking 1 snapshots&#8230;</p>
<p>&#8211; Session Snapper v3.13 by Tanel Poder @ E2SN ( <a href="http://tech.e2sn.com" rel="nofollow">http://tech.e2sn.com</a> )</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Active% | SQL_ID          | EVENT                     | WAIT_CLASS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
declare<br />
*<br />
ERROR at line 1:<br />
ORA-00979: not a GROUP BY expression<br />
ORA-06512: at line 831<br />
ORA-06512: at line 1364</p>
<p>Thanks,<br />
Venu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mehul S.</title>
		<link>http://blog.tanelpoder.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/comment-page-1/#comment-4913</link>
		<dc:creator>Mehul S.</dc:creator>
		<pubDate>Mon, 02 Aug 2010 14:40:40 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/#comment-4913</guid>
		<description>Coolest use of &#039;connect by&#039;
Simplicity is the ultimate elegance!!!

Cheers
Mehul S.</description>
		<content:encoded><![CDATA[<p>Coolest use of &#8216;connect by&#8217;<br />
Simplicity is the ultimate elegance!!!</p>
<p>Cheers<br />
Mehul S.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/comment-page-1/#comment-4691</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Fri, 21 May 2010 07:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/#comment-4691</guid>
		<description>&lt;a href=&quot;#comment-4689&quot; rel=&quot;nofollow&quot;&gt;@Lasse Jenssen&lt;/a&gt; 
Same here! ;)</description>
		<content:encoded><![CDATA[<p><a href="#comment-4689" rel="nofollow">@Lasse Jenssen</a><br />
Same here! ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lasse Jenssen</title>
		<link>http://blog.tanelpoder.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/comment-page-1/#comment-4689</link>
		<dc:creator>Lasse Jenssen</dc:creator>
		<pubDate>Fri, 21 May 2010 06:15:03 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/#comment-4689</guid>
		<description>You are right! I&#039;m on 9i. Should have testet an earlier version, but I was confident I did run the v3 against 9i earlier. I was obviously wrong. Fantastic script by the way. After starting using it, I keep wondering how I managed before ;-)</description>
		<content:encoded><![CDATA[<p>You are right! I&#8217;m on 9i. Should have testet an earlier version, but I was confident I did run the v3 against 9i earlier. I was obviously wrong. Fantastic script by the way. After starting using it, I keep wondering how I managed before ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/comment-page-1/#comment-4679</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Thu, 20 May 2010 10:07:55 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/#comment-4679</guid>
		<description>&lt;a href=&quot;#comment-4677&quot; rel=&quot;nofollow&quot;&gt;@Lasse Jenssen&lt;/a&gt; 

Are you running it on 9i? Snapper v3 doesn&#039;t run on 9i yet, once I have the time I&#039;ll change it... so you need to use snapper_v2 on 9i...</description>
		<content:encoded><![CDATA[<p><a href="#comment-4677" rel="nofollow">@Lasse Jenssen</a> </p>
<p>Are you running it on 9i? Snapper v3 doesn&#8217;t run on 9i yet, once I have the time I&#8217;ll change it&#8230; so you need to use snapper_v2 on 9i&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lasse Jenssen</title>
		<link>http://blog.tanelpoder.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/comment-page-1/#comment-4677</link>
		<dc:creator>Lasse Jenssen</dc:creator>
		<pubDate>Thu, 20 May 2010 07:42:59 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/#comment-4677</guid>
		<description>Get an error with the latest version (3.11) of snapper.sql:

sys@FD&gt; @snapper out 1 1 3
Sampling with interval 1 seconds, 1 times...
    type snrec is record (stype varchar2(4), statistic# number, name varchar2(64));
                                            *
ERROR at line 30:
ORA-06550: line 476, column 42:
PLS-00302: component &#039;STATE&#039; must be declared
ORA-06550: line 475, column 11:
PL/SQL: Statement ignored

Have anybody else gotten this error?</description>
		<content:encoded><![CDATA[<p>Get an error with the latest version (3.11) of snapper.sql:</p>
<p>sys@FD&gt; @snapper out 1 1 3<br />
Sampling with interval 1 seconds, 1 times&#8230;<br />
    type snrec is record (stype varchar2(4), statistic# number, name varchar2(64));<br />
                                            *<br />
ERROR at line 30:<br />
ORA-06550: line 476, column 42:<br />
PLS-00302: component &#8216;STATE&#8217; must be declared<br />
ORA-06550: line 475, column 11:<br />
PL/SQL: Statement ignored</p>
<p>Have anybody else gotten this error?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Advanced Oracle Troubleshooting Guide, Part 7: Sampling latch holder statistics using LatchProf &#124; Tanel Poder's blog: Core IT for Geeks and Pros</title>
		<link>http://blog.tanelpoder.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/comment-page-1/#comment-2675</link>
		<dc:creator>Advanced Oracle Troubleshooting Guide, Part 7: Sampling latch holder statistics using LatchProf &#124; Tanel Poder's blog: Core IT for Geeks and Pros</dc:creator>
		<pubDate>Thu, 01 Oct 2009 05:51:45 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/#comment-2675</guid>
		<description>[...] is a script similar to WaitProf, only it samples latch holder statistics from V$LATCHHOLDER. As V$LATCHHOLDER contains a SID column [...]</description>
		<content:encoded><![CDATA[<p>[...] is a script similar to WaitProf, only it samples latch holder statistics from V$LATCHHOLDER. As V$LATCHHOLDER contains a SID column [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/comment-page-1/#comment-2349</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Sat, 22 Aug 2009 07:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/#comment-2349</guid>
		<description>The object name can be deducted from the file# and block_id (parameter1,parameter2) in dba_extents.

I use a script like this, it takes file# and block# as parameters:

select owner, segment_name, partition_name, tablespace_name, extent_id
from dba_extents
where file_id = &amp;1
and &amp;2 between block_id and block_id + blocks - 1;</description>
		<content:encoded><![CDATA[<p>The object name can be deducted from the file# and block_id (parameter1,parameter2) in dba_extents.</p>
<p>I use a script like this, it takes file# and block# as parameters:</p>
<p>select owner, segment_name, partition_name, tablespace_name, extent_id<br />
from dba_extents<br />
where file_id = &#038;1<br />
and &#038;2 between block_id and block_id + blocks &#8211; 1;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/comment-page-1/#comment-2348</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Sat, 22 Aug 2009 07:37:07 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/#comment-2348</guid>
		<description>High CPU usage is good in some sense - meaning that the session can do its work on CPU without having to wait for anything much. 

Of course if the job/session is still slow then I would run snapper on the session and see whether its perhaps hard parsing a lot or doing lots of logical IOs. In first case the application code must be changed (or cursor_sharing=force parameter can be used as a dirty workaround), in second case the heavy logical IOs may be due an inappropriate nested loop joins looping through the inner rowsources way too many times (revisiting blocks a lot etc)

Of course there are many more reasons for high CPU usage but these two are the first common ones that come into my mind.</description>
		<content:encoded><![CDATA[<p>High CPU usage is good in some sense &#8211; meaning that the session can do its work on CPU without having to wait for anything much. </p>
<p>Of course if the job/session is still slow then I would run snapper on the session and see whether its perhaps hard parsing a lot or doing lots of logical IOs. In first case the application code must be changed (or cursor_sharing=force parameter can be used as a dirty workaround), in second case the heavy logical IOs may be due an inappropriate nested loop joins looping through the inner rowsources way too many times (revisiting blocks a lot etc)</p>
<p>Of course there are many more reasons for high CPU usage but these two are the first common ones that come into my mind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maxx</title>
		<link>http://blog.tanelpoder.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/comment-page-1/#comment-2330</link>
		<dc:creator>Maxx</dc:creator>
		<pubDate>Wed, 19 Aug 2009 16:32:49 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/06/06/advanced-oracle-troubleshooting-guide-part-5-sampling-v-stuff-with-waitprof-really-fast-using-sql/#comment-2330</guid>
		<description>This is a great script.  Needed something like this, as we have very tight change control and getting a trace approve take like 2 days and untill then we are expected to see what the waits are and stuff like that.  Couple of suggestions (maybe)...  Yes the script looks at p1, p2, p3 values and point to the datafile#, and block# which can then tell us what table its waiting on.  It would be nice to someway have the script where it gives you p1,p2,p3 value and also tell you the object name.  Just a thought.

Also you mentioned.  &quot;Even though the CPU usage is in the top of the list, it has only used 21.63% of total response time, so the rest 78% of the IO time is the “problem” here.&quot; -- what are some suggestions if its the other way around ??  Lets say i have 78% of CPU usage..what can I do to get that down?? any suggestions ?</description>
		<content:encoded><![CDATA[<p>This is a great script.  Needed something like this, as we have very tight change control and getting a trace approve take like 2 days and untill then we are expected to see what the waits are and stuff like that.  Couple of suggestions (maybe)&#8230;  Yes the script looks at p1, p2, p3 values and point to the datafile#, and block# which can then tell us what table its waiting on.  It would be nice to someway have the script where it gives you p1,p2,p3 value and also tell you the object name.  Just a thought.</p>
<p>Also you mentioned.  &#8220;Even though the CPU usage is in the top of the list, it has only used 21.63% of total response time, so the rest 78% of the IO time is the “problem” here.&#8221; &#8212; what are some suggestions if its the other way around ??  Lets say i have 78% of CPU usage..what can I do to get that down?? any suggestions ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

