<?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: How to CANCEL a query running in another session?</title>
	<atom:link href="http://blog.tanelpoder.com/2010/02/17/how-to-cancel-a-query-running-in-another-session/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tanelpoder.com/2010/02/17/how-to-cancel-a-query-running-in-another-session/</link>
	<description>Oracle troubleshooting, internals and performance tuning</description>
	<lastBuildDate>Thu, 09 Sep 2010 00:43:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Sergei Romanenko</title>
		<link>http://blog.tanelpoder.com/2010/02/17/how-to-cancel-a-query-running-in-another-session/comment-page-1/#comment-4329</link>
		<dc:creator>Sergei Romanenko</dc:creator>
		<pubDate>Thu, 08 Apr 2010 05:15:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=628#comment-4329</guid>
		<description>Tanel, thanks a lot! Now it&#039;s clear how it works.</description>
		<content:encoded><![CDATA[<p>Tanel, thanks a lot! Now it&#8217;s clear how it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2010/02/17/how-to-cancel-a-query-running-in-another-session/comment-page-1/#comment-4326</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Wed, 07 Apr 2010 06:17:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=628#comment-4326</guid>
		<description>&lt;a href=&quot;#comment-4321&quot; rel=&quot;nofollow&quot;&gt;@Sergei Romanenko&lt;/a&gt; 
Sergei, yep when connecting from *some* windows clients then the client tells Oracle during connect that it can not send urgent packets, thus Oracle switches to the out-of-band break polling (you can disable that with DISABLE_OOB parameter in sqlnet.ora, then you can&#039;t cancel a query at all).

Yep in theory if you could make the windows client to somehow say Oracle server it supports urgent packets then oracle would set up the signal handler properly and you could use the URG signal to cancel the query... In practice I wouldn&#039;t waste time trying, especially in production...</description>
		<content:encoded><![CDATA[<p><a href="#comment-4321" rel="nofollow">@Sergei Romanenko</a><br />
Sergei, yep when connecting from *some* windows clients then the client tells Oracle during connect that it can not send urgent packets, thus Oracle switches to the out-of-band break polling (you can disable that with DISABLE_OOB parameter in sqlnet.ora, then you can&#8217;t cancel a query at all).</p>
<p>Yep in theory if you could make the windows client to somehow say Oracle server it supports urgent packets then oracle would set up the signal handler properly and you could use the URG signal to cancel the query&#8230; In practice I wouldn&#8217;t waste time trying, especially in production&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergei Romanenko</title>
		<link>http://blog.tanelpoder.com/2010/02/17/how-to-cancel-a-query-running-in-another-session/comment-page-1/#comment-4321</link>
		<dc:creator>Sergei Romanenko</dc:creator>
		<pubDate>Tue, 06 Apr 2010 07:15:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=628#comment-4321</guid>
		<description>Tanel, sorry for my delay in reply. Yes, you are right. When connecting from Linux client, &quot;kill -URG&quot; works. When connecting from Windows, it doesn&#039;t. And yes, the server process does a lot of poll() system calls. 

I reread the article, still not sure I understand the difference. Does it mean, when server process is started on behalf of win client, it doesn&#039;t register Urgent signal handler? Instead it polls the socket in the execution loop (quite often) to check if OCIBreak was sent by the client? If so, then in theory win client could fool the server process and pretend it was a linux/unix client and the &quot;kill - URG&quot; would work?</description>
		<content:encoded><![CDATA[<p>Tanel, sorry for my delay in reply. Yes, you are right. When connecting from Linux client, &#8220;kill -URG&#8221; works. When connecting from Windows, it doesn&#8217;t. And yes, the server process does a lot of poll() system calls. </p>
<p>I reread the article, still not sure I understand the difference. Does it mean, when server process is started on behalf of win client, it doesn&#8217;t register Urgent signal handler? Instead it polls the socket in the execution loop (quite often) to check if OCIBreak was sent by the client? If so, then in theory win client could fool the server process and pretend it was a linux/unix client and the &#8220;kill &#8211; URG&#8221; would work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanel Poder</title>
		<link>http://blog.tanelpoder.com/2010/02/17/how-to-cancel-a-query-running-in-another-session/comment-page-1/#comment-4300</link>
		<dc:creator>Tanel Poder</dc:creator>
		<pubDate>Tue, 30 Mar 2010 02:34:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=628#comment-4300</guid>
		<description>&lt;a href=&quot;#comment-4294&quot; rel=&quot;nofollow&quot;&gt;@Sergei Romanenko&lt;/a&gt; 
Sergei, it should work on Linux server as well. What&#039;s your client OS?

If on Windows client OS, then at least when running from sqlplus, the kill -URG trick won&#039;t work as I explained in my post. Maybe in case of some other client app/OCI library versions the same applies. You can run strace on your server process and see whether it does a lot of poll() syscalls when you run something in the server, if yes, then the break by urgent signal handling has not been set up/requested by client.</description>
		<content:encoded><![CDATA[<p><a href="#comment-4294" rel="nofollow">@Sergei Romanenko</a><br />
Sergei, it should work on Linux server as well. What&#8217;s your client OS?</p>
<p>If on Windows client OS, then at least when running from sqlplus, the kill -URG trick won&#8217;t work as I explained in my post. Maybe in case of some other client app/OCI library versions the same applies. You can run strace on your server process and see whether it does a lot of poll() syscalls when you run something in the server, if yes, then the break by urgent signal handling has not been set up/requested by client.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergei Romanenko</title>
		<link>http://blog.tanelpoder.com/2010/02/17/how-to-cancel-a-query-running-in-another-session/comment-page-1/#comment-4294</link>
		<dc:creator>Sergei Romanenko</dc:creator>
		<pubDate>Mon, 29 Mar 2010 18:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=628#comment-4294</guid>
		<description>Does &quot;kill -URG&quot; work in Linux? I have long running query and tried:

kill -URG 29086
kill -s SIGURG 29086
kill -s SIGINT 29086
kill -2 29086

- all of them were ignored by the process. I can cancel the query any moment by sending OCIBreak from the client program which started the query. Because many applications are not able to send OCIBreak, it will be nice to be able to cancel by &quot;kill&quot;, but does it work in Linux or am I missing something?</description>
		<content:encoded><![CDATA[<p>Does &#8220;kill -URG&#8221; work in Linux? I have long running query and tried:</p>
<p>kill -URG 29086<br />
kill -s SIGURG 29086<br />
kill -s SIGINT 29086<br />
kill -2 29086</p>
<p>- all of them were ignored by the process. I can cancel the query any moment by sending OCIBreak from the client program which started the query. Because many applications are not able to send OCIBreak, it will be nice to be able to cancel by &#8220;kill&#8221;, but does it work in Linux or am I missing something?</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://blog.tanelpoder.com/2010/02/17/how-to-cancel-a-query-running-in-another-session/comment-page-1/#comment-4258</link>
		<dc:creator>Blogroll Report 12/02/2009 – 19/02/2010 &#171; Coskan&#8217;s Approach to Oracle</dc:creator>
		<pubDate>Thu, 18 Mar 2010 16:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=628#comment-4258</guid>
		<description>[...] 27-How to cancel a query running in another session? Tanel Poder-How to CANCEL a query running in another session? [...]</description>
		<content:encoded><![CDATA[<p>[...] 27-How to cancel a query running in another session? Tanel Poder-How to CANCEL a query running in another session? [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noons</title>
		<link>http://blog.tanelpoder.com/2010/02/17/how-to-cancel-a-query-running-in-another-session/comment-page-1/#comment-4044</link>
		<dc:creator>Noons</dc:creator>
		<pubDate>Sun, 07 Mar 2010 23:20:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=628#comment-4044</guid>
		<description>Thanks for this one, Tanel.  Had a chance to use it last Friday and it works a treat.</description>
		<content:encoded><![CDATA[<p>Thanks for this one, Tanel.  Had a chance to use it last Friday and it works a treat.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blog.tanelpoder.com/2010/02/17/how-to-cancel-a-query-running-in-another-session/comment-page-1/#comment-3978</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 04 Mar 2010 17:10:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=628#comment-3978</guid>
		<description>Hi Tanel,
set event 10237</description>
		<content:encoded><![CDATA[<p>Hi Tanel,<br />
set event 10237</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fun query cancelling using TCP out-of-band signalling &#171; Kirk Brocas&#39; Oracle Stuff</title>
		<link>http://blog.tanelpoder.com/2010/02/17/how-to-cancel-a-query-running-in-another-session/comment-page-1/#comment-3970</link>
		<dc:creator>Fun query cancelling using TCP out-of-band signalling &#171; Kirk Brocas&#39; Oracle Stuff</dc:creator>
		<pubDate>Wed, 03 Mar 2010 21:49:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=628#comment-3970</guid>
		<description>[...] How to CANCEL a query running in another session? &#8211; Tanel Poder&#8217;s blog [...]</description>
		<content:encoded><![CDATA[<p>[...] How to CANCEL a query running in another session? &#8211; Tanel Poder&#8217;s blog [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Prusinski</title>
		<link>http://blog.tanelpoder.com/2010/02/17/how-to-cancel-a-query-running-in-another-session/comment-page-1/#comment-3961</link>
		<dc:creator>Ben Prusinski</dc:creator>
		<pubDate>Tue, 02 Mar 2010 03:55:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tanelpoder.com/?p=628#comment-3961</guid>
		<description>Interesting! I look forward to meeting you at Hotsos next week.

Cheers,
Ben</description>
		<content:encoded><![CDATA[<p>Interesting! I look forward to meeting you at Hotsos next week.</p>
<p>Cheers,<br />
Ben</p>
]]></content:encoded>
	</item>
</channel>
</rss>
