<?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: The simplest query for checking what&#8217;s happening in a database</title>
	<atom:link href="http://blog.tanelpoder.com/2008/08/07/the-simplest-query-for-checking-whats-happening-in-a-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tanelpoder.com/2008/08/07/the-simplest-query-for-checking-whats-happening-in-a-database/</link>
	<description>Oracle troubleshooting, internals and performance tuning</description>
	<lastBuildDate>Thu, 11 Mar 2010 20:28:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: tanelp</title>
		<link>http://blog.tanelpoder.com/2008/08/07/the-simplest-query-for-checking-whats-happening-in-a-database/comment-page-1/#comment-497</link>
		<dc:creator>tanelp</dc:creator>
		<pubDate>Tue, 12 Aug 2008 01:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/?p=109#comment-497</guid>
		<description>Yep, you can use also SQL_ID (or whatever other column of interest). SQL_ID doesn&#039;t exist in 9i so I&#039;m still used to use SQL hash value.

Btw, SQL_ID is just a fancy presentation of SQL hash value, the library cache is still organized by hash value internally.</description>
		<content:encoded><![CDATA[<p>Yep, you can use also SQL_ID (or whatever other column of interest). SQL_ID doesn&#8217;t exist in 9i so I&#8217;m still used to use SQL hash value.</p>
<p>Btw, SQL_ID is just a fancy presentation of SQL hash value, the library cache is still organized by hash value internally.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mdinh</title>
		<link>http://blog.tanelpoder.com/2008/08/07/the-simplest-query-for-checking-whats-happening-in-a-database/comment-page-1/#comment-496</link>
		<dc:creator>mdinh</dc:creator>
		<pubDate>Mon, 11 Aug 2008 17:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/?p=109#comment-496</guid>
		<description>Why not use SQL_ID versus SQL_HASH_VALUE which in turn can be used with dbms_xplan.display_cursor()</description>
		<content:encoded><![CDATA[<p>Why not use SQL_ID versus SQL_HASH_VALUE which in turn can be used with dbms_xplan.display_cursor()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tanelp</title>
		<link>http://blog.tanelpoder.com/2008/08/07/the-simplest-query-for-checking-whats-happening-in-a-database/comment-page-1/#comment-498</link>
		<dc:creator>tanelp</dc:creator>
		<pubDate>Mon, 11 Aug 2008 04:14:03 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/?p=109#comment-498</guid>
		<description>Hi Jerry,

I usually run the query few times to get a better statistic sample of what&#039;s happening in the instance.

The SUM(SECONDS_IN_WAIT) could be deceiving as if there&#039;s a single session which has been waiting for some lock for long time (but there are no other waiters) then the significance of this wait might be pushed too high in the output report. When diagnosing *instance* performance state here, it makes sense to concentrate on the event on which the highest number of sessions happen to wait.. and that&#039;s the philosophy behind ASH enterprise manager screens as well.</description>
		<content:encoded><![CDATA[<p>Hi Jerry,</p>
<p>I usually run the query few times to get a better statistic sample of what&#8217;s happening in the instance.</p>
<p>The SUM(SECONDS_IN_WAIT) could be deceiving as if there&#8217;s a single session which has been waiting for some lock for long time (but there are no other waiters) then the significance of this wait might be pushed too high in the output report. When diagnosing *instance* performance state here, it makes sense to concentrate on the event on which the highest number of sessions happen to wait.. and that&#8217;s the philosophy behind ASH enterprise manager screens as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tanelp</title>
		<link>http://blog.tanelpoder.com/2008/08/07/the-simplest-query-for-checking-whats-happening-in-a-database/comment-page-1/#comment-499</link>
		<dc:creator>tanelp</dc:creator>
		<pubDate>Mon, 11 Aug 2008 04:09:20 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/?p=109#comment-499</guid>
		<description>Hi Tom,

Oracle asks the process CPU usage numbers from OS, using times() syscall for example. Thus the CPU usage numbers are relatively correct, no such measurement like 2x difference should happen at OS level.

The issue you are experiencing may be due Oracle updating the session the CPU usage only at the end of the db call. Thus if you have a long-running SQL statement, the &quot;CPU used by this session&quot; is not updated before the statement execution/fetch finishes. If you happen to take a sample just when the execution (which has lasted for X hours) finishes, you&#039;d see all this CPU time reported at once, thus it can be larger than wallclock time during your sampling period.

Starting from 10g you can sample V$SESS_TIME_MODEL instead (as my Snapper and Sesspack tools do), this way the CPU time is updated every 5 seconds.</description>
		<content:encoded><![CDATA[<p>Hi Tom,</p>
<p>Oracle asks the process CPU usage numbers from OS, using times() syscall for example. Thus the CPU usage numbers are relatively correct, no such measurement like 2x difference should happen at OS level.</p>
<p>The issue you are experiencing may be due Oracle updating the session the CPU usage only at the end of the db call. Thus if you have a long-running SQL statement, the &#8220;CPU used by this session&#8221; is not updated before the statement execution/fetch finishes. If you happen to take a sample just when the execution (which has lasted for X hours) finishes, you&#8217;d see all this CPU time reported at once, thus it can be larger than wallclock time during your sampling period.</p>
<p>Starting from 10g you can sample V$SESS_TIME_MODEL instead (as my Snapper and Sesspack tools do), this way the CPU time is updated every 5 seconds.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kenny r.</title>
		<link>http://blog.tanelpoder.com/2008/08/07/the-simplest-query-for-checking-whats-happening-in-a-database/comment-page-1/#comment-502</link>
		<dc:creator>kenny r.</dc:creator>
		<pubDate>Fri, 08 Aug 2008 04:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/?p=109#comment-502</guid>
		<description>hi tanel,

thanks for the tips.

your blog is always a great read.</description>
		<content:encoded><![CDATA[<p>hi tanel,</p>
<p>thanks for the tips.</p>
<p>your blog is always a great read.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry</title>
		<link>http://blog.tanelpoder.com/2008/08/07/the-simplest-query-for-checking-whats-happening-in-a-database/comment-page-1/#comment-501</link>
		<dc:creator>Jerry</dc:creator>
		<pubDate>Thu, 07 Aug 2008 16:05:46 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/?p=109#comment-501</guid>
		<description>Hi Tanel,

Do you think it would be useful to grab SUM(SECONDS_IN_WAIT) as well?

Jerry

p.s. I really enjoy reading your blog, thanks for doing this.</description>
		<content:encoded><![CDATA[<p>Hi Tanel,</p>
<p>Do you think it would be useful to grab SUM(SECONDS_IN_WAIT) as well?</p>
<p>Jerry</p>
<p>p.s. I really enjoy reading your blog, thanks for doing this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://blog.tanelpoder.com/2008/08/07/the-simplest-query-for-checking-whats-happening-in-a-database/comment-page-1/#comment-500</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 06 Aug 2008 20:38:17 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/?p=109#comment-500</guid>
		<description>Tanel, on a related note concerning &quot;On CPU/runqueue&quot;, is it accurate to say that (for simplicity) on a 1 cpu server Oracle could record more than one hour of CPU usage?  Specifically, I&#039;m seeing on occasion, 2 hours of &quot;CPU used by this session&quot; in a 1 hour period.  Could I be correct in attributing this extra hour to waiting on cpu, ie...run queue?  Thanks much for any guidance you can provide!</description>
		<content:encoded><![CDATA[<p>Tanel, on a related note concerning &#8220;On CPU/runqueue&#8221;, is it accurate to say that (for simplicity) on a 1 cpu server Oracle could record more than one hour of CPU usage?  Specifically, I&#8217;m seeing on occasion, 2 hours of &#8220;CPU used by this session&#8221; in a 1 hour period.  Could I be correct in attributing this extra hour to waiting on cpu, ie&#8230;run queue?  Thanks much for any guidance you can provide!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
