<?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: Alter system kill session and ORA-00031: session marked for kill</title>
	<atom:link href="http://blog.tanelpoder.com/2009/08/13/alter-system-kill-session-and-ora-00031-session-marked-for-kill/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tanelpoder.com/2009/08/13/alter-system-kill-session-and-ora-00031-session-marked-for-kill/</link>
	<description>Oracle troubleshooting, internals and performance tuning</description>
	<lastBuildDate>Fri, 30 Jul 2010 06:07:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2009/08/13/alter-system-kill-session-and-ora-00031-session-marked-for-kill/comment-page-1/#comment-4130</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Wed, 10 Mar 2010 00:08:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=391#comment-4130</guid>
		<description>&lt;a href=&quot;#comment-4126&quot; rel=&quot;nofollow&quot;&gt;@ronald&lt;/a&gt; 
Ronald, you&#039;ll probably find that the session got finally &quot;killed&quot; after 100 seconds, the time you requested it to sleep. But if the sleep is longer, or the session is hopelessly stuck in some loop (due a bug) then the session won&#039;t be killed until the sleep/operation completes.</description>
		<content:encoded><![CDATA[<p><a href="#comment-4126" rel="nofollow">@ronald</a><br />
Ronald, you&#8217;ll probably find that the session got finally &#8220;killed&#8221; after 100 seconds, the time you requested it to sleep. But if the sleep is longer, or the session is hopelessly stuck in some loop (due a bug) then the session won&#8217;t be killed until the sleep/operation completes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronald</title>
		<link>http://blog.tanelpoder.com/2009/08/13/alter-system-kill-session-and-ora-00031-session-marked-for-kill/comment-page-1/#comment-4126</link>
		<dc:creator>ronald</dc:creator>
		<pubDate>Tue, 09 Mar 2010 10:07:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=391#comment-4126</guid>
		<description>It worked for me!
 to test if you can kill a session

1. create the session by logging into the database as user x and execute exec dbms_lock.sleep(100)
2. create another session and select sid,serial#,event from v$session where username=&#039;userx&#039;;
3. on the same session, &#039;alter system kill session &#039;sid,serial#&#039;; 
  BIG NOTE: Wait for 60 seconds and don&#039;t be impatient. It&#039;ll be killed after sometime.</description>
		<content:encoded><![CDATA[<p>It worked for me!<br />
 to test if you can kill a session</p>
<p>1. create the session by logging into the database as user x and execute exec dbms_lock.sleep(100)<br />
2. create another session and select sid,serial#,event from v$session where username=&#8217;userx&#8217;;<br />
3. on the same session, &#8216;alter system kill session &#8216;sid,serial#&#8217;;<br />
  BIG NOTE: Wait for 60 seconds and don&#8217;t be impatient. It&#8217;ll be killed after sometime.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Killing Database Sessions &#8211; tips from Tanel on killing at the OS level &#38; using oradebug &#171; Kirk Brocas&#39; Oracle Stuff</title>
		<link>http://blog.tanelpoder.com/2009/08/13/alter-system-kill-session-and-ora-00031-session-marked-for-kill/comment-page-1/#comment-3969</link>
		<dc:creator>Killing Database Sessions &#8211; tips from Tanel on killing at the OS level &#38; using oradebug &#171; Kirk Brocas&#39; Oracle Stuff</dc:creator>
		<pubDate>Wed, 03 Mar 2010 21:33:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=391#comment-3969</guid>
		<description>[...] Alter system kill session and ORA-00031: session marked for kill     Categories: DBA, oracle Tags: oracle, oradebug, session management, sessions       Comments (0) Trackbacks (0) Leave a comment Trackback [...]</description>
		<content:encoded><![CDATA[<p>[...] Alter system kill session and ORA-00031: session marked for kill     Categories: DBA, oracle Tags: oracle, oradebug, session management, sessions       Comments (0) Trackbacks (0) Leave a comment Trackback [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Online Car Insurance &#62;&#62; http://onlinecarinsuranceclaims.com/</title>
		<link>http://blog.tanelpoder.com/2009/08/13/alter-system-kill-session-and-ora-00031-session-marked-for-kill/comment-page-1/#comment-3123</link>
		<dc:creator>Online Car Insurance &#62;&#62; http://onlinecarinsuranceclaims.com/</dc:creator>
		<pubDate>Mon, 23 Nov 2009 20:40:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=391#comment-3123</guid>
		<description>[... - blog.tanelpoder.com is another nice website of information. Car insurance claims  [... -</description>
		<content:encoded><![CDATA[<p>[... - blog.tanelpoder.com is another nice website of information. Car insurance claims  [... -</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj</title>
		<link>http://blog.tanelpoder.com/2009/08/13/alter-system-kill-session-and-ora-00031-session-marked-for-kill/comment-page-1/#comment-2707</link>
		<dc:creator>Raj</dc:creator>
		<pubDate>Wed, 07 Oct 2009 19:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=391#comment-2707</guid>
		<description>very good article and informative. Even in 10g kill immediate is available. As you said some times it works .. some times it doesn&#039;t.</description>
		<content:encoded><![CDATA[<p>very good article and informative. Even in 10g kill immediate is available. As you said some times it works .. some times it doesn&#8217;t.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2009/08/13/alter-system-kill-session-and-ora-00031-session-marked-for-kill/comment-page-1/#comment-2373</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Wed, 26 Aug 2009 06:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=391#comment-2373</guid>
		<description>Stay tuned for another article on this topic!</description>
		<content:encoded><![CDATA[<p>Stay tuned for another article on this topic!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2009/08/13/alter-system-kill-session-and-ora-00031-session-marked-for-kill/comment-page-1/#comment-2372</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Wed, 26 Aug 2009 06:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=391#comment-2372</guid>
		<description>I will write a separate article about the disconnect session and kill session immediate. In my previous experience the immediate options haven&#039;t worked reliably. I tested on 11.1.0.7 on Linux and still it succeeds only in some cases. 

Regarding why I would not want to kill -9 a session when its already rolling back a long transaction - the reason is that I would prefer the session to clean up after itself, instead of disturbing it and letting smon to take over.

There can be value in killing the session and letting smon to take over though, if you&#039;re on EE, have lots of CPUs and have fast_start_parallel_rollback enabled, this can make smon spawn multiple slaves for recovery. However it doesn&#039;t always necessarily speed up the rollback and I&#039;ve had bad experiences with completely hung parallel rollbacks in 9.2. I&#039;m sure this issue is fixed by now but I&#039;m just being careful - if a session is already rolling back after itself and if the estimated rollback time is acceptable, then don&#039;t touch it!</description>
		<content:encoded><![CDATA[<p>I will write a separate article about the disconnect session and kill session immediate. In my previous experience the immediate options haven&#8217;t worked reliably. I tested on 11.1.0.7 on Linux and still it succeeds only in some cases. </p>
<p>Regarding why I would not want to kill -9 a session when its already rolling back a long transaction &#8211; the reason is that I would prefer the session to clean up after itself, instead of disturbing it and letting smon to take over.</p>
<p>There can be value in killing the session and letting smon to take over though, if you&#8217;re on EE, have lots of CPUs and have fast_start_parallel_rollback enabled, this can make smon spawn multiple slaves for recovery. However it doesn&#8217;t always necessarily speed up the rollback and I&#8217;ve had bad experiences with completely hung parallel rollbacks in 9.2. I&#8217;m sure this issue is fixed by now but I&#8217;m just being careful &#8211; if a session is already rolling back after itself and if the estimated rollback time is acceptable, then don&#8217;t touch it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thyge G. Jacobsen</title>
		<link>http://blog.tanelpoder.com/2009/08/13/alter-system-kill-session-and-ora-00031-session-marked-for-kill/comment-page-1/#comment-2319</link>
		<dc:creator>Thyge G. Jacobsen</dc:creator>
		<pubDate>Tue, 18 Aug 2009 11:13:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=391#comment-2319</guid>
		<description>... and 9i http://download.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_23a.htm#SQLRF00902.</description>
		<content:encoded><![CDATA[<p>&#8230; and 9i <a href="http://download.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_23a.htm#SQLRF00902" rel="nofollow">http://download.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_23a.htm#SQLRF00902</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Entradas de Oracle semana 33 &#171; Gruñidos sobre Oracle y SAP</title>
		<link>http://blog.tanelpoder.com/2009/08/13/alter-system-kill-session-and-ora-00031-session-marked-for-kill/comment-page-1/#comment-2314</link>
		<dc:creator>Entradas de Oracle semana 33 &#171; Gruñidos sobre Oracle y SAP</dc:creator>
		<pubDate>Sun, 16 Aug 2009 18:43:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=391#comment-2314</guid>
		<description>[...] 7.- Tanel Poder visita los entresijos del ORA-00031: session marked for kill. [...]</description>
		<content:encoded><![CDATA[<p>[...] 7.- Tanel Poder visita los entresijos del ORA-00031: session marked for kill. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Herring</title>
		<link>http://blog.tanelpoder.com/2009/08/13/alter-system-kill-session-and-ora-00031-session-marked-for-kill/comment-page-1/#comment-2310</link>
		<dc:creator>Dave Herring</dc:creator>
		<pubDate>Fri, 14 Aug 2009 20:34:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=391#comment-2310</guid>
		<description>Great info as always, Tanel!

Correct me if I&#039;m wrong, but under 9i it seems that after you killed an Oracle session and it gets &quot;marked for kill&quot;, the process goes away but not the session.  So at that point you can&#039;t get the SPID, as it&#039;s not found in V$PROCESS.

I believe this ISN&#039;T the case in 10g.  I need to fit 9i on my laptop and test ...</description>
		<content:encoded><![CDATA[<p>Great info as always, Tanel!</p>
<p>Correct me if I&#8217;m wrong, but under 9i it seems that after you killed an Oracle session and it gets &#8220;marked for kill&#8221;, the process goes away but not the session.  So at that point you can&#8217;t get the SPID, as it&#8217;s not found in V$PROCESS.</p>
<p>I believe this ISN&#8217;T the case in 10g.  I need to fit 9i on my laptop and test &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
