<?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: Updated Session Wait script</title>
	<atom:link href="http://blog.tanelpoder.com/2008/01/08/updated-session-wait-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tanelpoder.com/2008/01/08/updated-session-wait-script/</link>
	<description>Oracle troubleshooting, internals and performance tuning</description>
	<lastBuildDate>Mon, 15 Mar 2010 01:50:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Coskan</title>
		<link>http://blog.tanelpoder.com/2008/01/08/updated-session-wait-script/comment-page-1/#comment-1189</link>
		<dc:creator>Coskan</dc:creator>
		<pubDate>Fri, 13 Mar 2009 18:51:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/2008/01/08/updated-session-wait-script/#comment-1189</guid>
		<description>Thank you very much for the info. Cant generate the same situation it was a benchmark test session on windows but np.

Thank you for the information</description>
		<content:encoded><![CDATA[<p>Thank you very much for the info. Cant generate the same situation it was a benchmark test session on windows but np.</p>
<p>Thank you for the information</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2008/01/08/updated-session-wait-script/comment-page-1/#comment-1177</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Wed, 11 Mar 2009 16:53:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/2008/01/08/updated-session-wait-script/#comment-1177</guid>
		<description>this would show if any sessions are sharing the same process, thus some session switching must happen

Tanel</description>
		<content:encoded><![CDATA[<p>this would show if any sessions are sharing the same process, thus some session switching must happen</p>
<p>Tanel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2008/01/08/updated-session-wait-script/comment-page-1/#comment-1176</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Wed, 11 Mar 2009 16:53:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/2008/01/08/updated-session-wait-script/#comment-1176</guid>
		<description>Session switching can mess up the wait/active state. 

Are you using autotrace or Oracle portal or any other session switching client by any chance?

If you&#039;re on dedicated server you can run this:

select sid,paddr,username from v$session
where paddr in (select paddr from v$session group by paddr having count(*)&gt;1)
/</description>
		<content:encoded><![CDATA[<p>Session switching can mess up the wait/active state. </p>
<p>Are you using autotrace or Oracle portal or any other session switching client by any chance?</p>
<p>If you&#8217;re on dedicated server you can run this:</p>
<p>select sid,paddr,username from v$session<br />
where paddr in (select paddr from v$session group by paddr having count(*)>1)<br />
/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Coskan</title>
		<link>http://blog.tanelpoder.com/2008/01/08/updated-session-wait-script/comment-page-1/#comment-1175</link>
		<dc:creator>Coskan</dc:creator>
		<pubDate>Wed, 11 Mar 2009 15:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/2008/01/08/updated-session-wait-script/#comment-1175</guid>
		<description>More interesting is session looks like its on the event SQL*Net message from client 



15:34:04 SQL&gt; select  event,state from v$session_wait where sid=2598;

EVENT                                                            STATE
---------------------------------------------------------------- -------------------
SQL*Net message from client                                      WAITED SHORT TIME

15:34:19 SQL&gt; @usid 2598

USERNAME                SID                 AUDSID OSUSER           MACHINE            PROGRAM              SPID      HASH_VALUE   LASTCALL STATUS
----------------------- -------------- ----------- ---------------- ------------------ -------------------- -------- ----------- ---------- --------
XXXXXXXXXXX             &#039;2598,1031&#039;        263152 UK\p94040        \XXXXXXXXXXXXXXX   sqlplus.exe          2008               0     426786 INACTIVE

15:34:20 SQL&gt; @sw  2598

    SID STATE   EVENT                                          SEQ# SEC_IN_STATE         P1         P2         P3 P1TRANSL
------- ------- ---------------------------------------- ---------- ------------ ---------- ---------- ---------- -----------------------------------------
   2598 WORKING On CPU / runqueue                               650       426789 1413697536          1          0</description>
		<content:encoded><![CDATA[<p>More interesting is session looks like its on the event SQL*Net message from client </p>
<p>15:34:04 SQL&gt; select  event,state from v$session_wait where sid=2598;</p>
<p>EVENT                                                            STATE<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
SQL*Net message from client                                      WAITED SHORT TIME</p>
<p>15:34:19 SQL&gt; @usid 2598</p>
<p>USERNAME                SID                 AUDSID OSUSER           MACHINE            PROGRAM              SPID      HASH_VALUE   LASTCALL STATUS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8211;<br />
XXXXXXXXXXX             &#8216;2598,1031&#8242;        263152 UK\p94040        \XXXXXXXXXXXXXXX   sqlplus.exe          2008               0     426786 INACTIVE</p>
<p>15:34:20 SQL&gt; @sw  2598</p>
<p>    SID STATE   EVENT                                          SEQ# SEC_IN_STATE         P1         P2         P3 P1TRANSL<br />
&#8212;&#8212;- &#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#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 />
   2598 WORKING On CPU / runqueue                               650       426789 1413697536          1          0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Coskan</title>
		<link>http://blog.tanelpoder.com/2008/01/08/updated-session-wait-script/comment-page-1/#comment-1174</link>
		<dc:creator>Coskan</dc:creator>
		<pubDate>Wed, 11 Mar 2009 15:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/2008/01/08/updated-session-wait-script/#comment-1174</guid>
		<description>Tanel,

Is it possible that I see a session Inactive but see the same session WORKING On CPU / runqueue

I got confused a bit. If your script says it is working I think it should be active but it is not  ???


15:30:41 SQL&gt; @sw  2598

    SID STATE   EVENT                                          SEQ# SEC_IN_STATE         P1         P2         P3 P1TRANSL
------- ------- ---------------------------------------- ---------- ------------ ---------- ---------- ---------- -----------------------------------------
   2598 WORKING On CPU / runqueue                               650       426567 1413697536          1          0

15:30:42 SQL&gt; @usid 2598

USERNAME                SID                 AUDSID OSUSER           MACHINE            PROGRAM              SPID      HASH_VALUE   LASTCALL STATUS
----------------------- -------------- ----------- ---------------- ------------------ -------------------- -------- ----------- ---------- --------
XXXXXX             &#039;2598,1031&#039;        263152 UK\XXXX        \XXXXXXXXXXXX   sqlplus.exe          2008               0     426569 INACTIVE</description>
		<content:encoded><![CDATA[<p>Tanel,</p>
<p>Is it possible that I see a session Inactive but see the same session WORKING On CPU / runqueue</p>
<p>I got confused a bit. If your script says it is working I think it should be active but it is not  ???</p>
<p>15:30:41 SQL&gt; @sw  2598</p>
<p>    SID STATE   EVENT                                          SEQ# SEC_IN_STATE         P1         P2         P3 P1TRANSL<br />
&#8212;&#8212;- &#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#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 />
   2598 WORKING On CPU / runqueue                               650       426567 1413697536          1          0</p>
<p>15:30:42 SQL&gt; @usid 2598</p>
<p>USERNAME                SID                 AUDSID OSUSER           MACHINE            PROGRAM              SPID      HASH_VALUE   LASTCALL STATUS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8211;<br />
XXXXXX             &#8216;2598,1031&#8242;        263152 UK\XXXX        \XXXXXXXXXXXX   sqlplus.exe          2008               0     426569 INACTIVE</p>
]]></content:encoded>
	</item>
</channel>
</rss>
