<?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: Using autonomous transactions for sleeping</title>
	<atom:link href="http://blog.tanelpoder.com/2008/05/25/using-autonomous-transactions-for-sleeping/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tanelpoder.com/2008/05/25/using-autonomous-transactions-for-sleeping/</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: Radino&#8217;s blog &#187; How to implement sleeping</title>
		<link>http://blog.tanelpoder.com/2008/05/25/using-autonomous-transactions-for-sleeping/comment-page-1/#comment-346</link>
		<dc:creator>Radino&#8217;s blog &#187; How to implement sleeping</dc:creator>
		<pubDate>Thu, 25 Dec 2008 15:13:39 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/05/25/using-autonomous-transactions-for-sleeping/#comment-346</guid>
		<description>[...] Autonomous transaction (In fact, this Tanel&#8217;s post inspired me to write this) (precision: seconds) [...]</description>
		<content:encoded><![CDATA[<p>[...] Autonomous transaction (In fact, this Tanel&#8217;s post inspired me to write this) (precision: seconds) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tanelp</title>
		<link>http://blog.tanelpoder.com/2008/05/25/using-autonomous-transactions-for-sleeping/comment-page-1/#comment-345</link>
		<dc:creator>tanelp</dc:creator>
		<pubDate>Wed, 18 Jun 2008 13:48:42 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/05/25/using-autonomous-transactions-for-sleeping/#comment-345</guid>
		<description>Ok, nice proc, didn&#039;t know about that.

However for my purpose (having sleep ability for scripts - without needing to change anything) this probably won&#039;t work as this would require creation of objects into SYS schema...</description>
		<content:encoded><![CDATA[<p>Ok, nice proc, didn&#8217;t know about that.</p>
<p>However for my purpose (having sleep ability for scripts &#8211; without needing to change anything) this probably won&#8217;t work as this would require creation of objects into SYS schema&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gp</title>
		<link>http://blog.tanelpoder.com/2008/05/25/using-autonomous-transactions-for-sleeping/comment-page-1/#comment-344</link>
		<dc:creator>gp</dc:creator>
		<pubDate>Wed, 18 Jun 2008 08:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/05/25/using-autonomous-transactions-for-sleeping/#comment-344</guid>
		<description>Sorry, I forgot to say it is not created by default.
See $OH/rdbms/admin/userlock.sql</description>
		<content:encoded><![CDATA[<p>Sorry, I forgot to say it is not created by default.<br />
See $OH/rdbms/admin/userlock.sql</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tanelp</title>
		<link>http://blog.tanelpoder.com/2008/05/25/using-autonomous-transactions-for-sleeping/comment-page-1/#comment-343</link>
		<dc:creator>tanelp</dc:creator>
		<pubDate>Fri, 13 Jun 2008 14:01:36 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/05/25/using-autonomous-transactions-for-sleeping/#comment-343</guid>
		<description>I&#039;m not aware of any user_lock packages in recent Oracle versions. Are you sure this is a built-in Oracle package?</description>
		<content:encoded><![CDATA[<p>I&#8217;m not aware of any user_lock packages in recent Oracle versions. Are you sure this is a built-in Oracle package?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gp</title>
		<link>http://blog.tanelpoder.com/2008/05/25/using-autonomous-transactions-for-sleeping/comment-page-1/#comment-342</link>
		<dc:creator>gp</dc:creator>
		<pubDate>Fri, 13 Jun 2008 09:53:33 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/05/25/using-autonomous-transactions-for-sleeping/#comment-342</guid>
		<description>You can also use sleep procedure from user_lock package which by default is granted to public.
Note though that you must express the time granularity in tens of millisecs.</description>
		<content:encoded><![CDATA[<p>You can also use sleep procedure from user_lock package which by default is granted to public.<br />
Note though that you must express the time granularity in tens of millisecs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Log Buffer #99: a Carnival of the Vanities for DBAs</title>
		<link>http://blog.tanelpoder.com/2008/05/25/using-autonomous-transactions-for-sleeping/comment-page-1/#comment-341</link>
		<dc:creator>Log Buffer #99: a Carnival of the Vanities for DBAs</dc:creator>
		<pubDate>Fri, 30 May 2008 16:45:53 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/05/25/using-autonomous-transactions-for-sleeping/#comment-341</guid>
		<description>[...] Poder looks into using autonomous transactions for sleeping. (No Tanel. You need healthy, natural sleep. Chew valerian root and get more exercise.) But [...]</description>
		<content:encoded><![CDATA[<p>[...] Poder looks into using autonomous transactions for sleeping. (No Tanel. You need healthy, natural sleep. Chew valerian root and get more exercise.) But [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Franco</title>
		<link>http://blog.tanelpoder.com/2008/05/25/using-autonomous-transactions-for-sleeping/comment-page-1/#comment-340</link>
		<dc:creator>Franco</dc:creator>
		<pubDate>Wed, 28 May 2008 14:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/05/25/using-autonomous-transactions-for-sleeping/#comment-340</guid>
		<description>Well done, great example of creative thinking! :-)</description>
		<content:encoded><![CDATA[<p>Well done, great example of creative thinking! :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tanelp</title>
		<link>http://blog.tanelpoder.com/2008/05/25/using-autonomous-transactions-for-sleeping/comment-page-1/#comment-339</link>
		<dc:creator>tanelp</dc:creator>
		<pubDate>Mon, 26 May 2008 16:32:47 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/05/25/using-autonomous-transactions-for-sleeping/#comment-339</guid>
		<description>Gabe, yep this piece of code was only for demonstrating a hack what I&#039;ve used in case where I needed to sleep in PL/SQL when having no access to DBMS_LOCK.

Even though it would is possible to add global session specific rows in that locking table, I would always prefer using DBMS_LOCK or Radino&#039;s Java approach for real application sleeping.

Radino, very nice example by the way, but in that particular case I didn&#039;t have Java installed in DB.</description>
		<content:encoded><![CDATA[<p>Gabe, yep this piece of code was only for demonstrating a hack what I&#8217;ve used in case where I needed to sleep in PL/SQL when having no access to DBMS_LOCK.</p>
<p>Even though it would is possible to add global session specific rows in that locking table, I would always prefer using DBMS_LOCK or Radino&#8217;s Java approach for real application sleeping.</p>
<p>Radino, very nice example by the way, but in that particular case I didn&#8217;t have Java installed in DB.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: radino</title>
		<link>http://blog.tanelpoder.com/2008/05/25/using-autonomous-transactions-for-sleeping/comment-page-1/#comment-338</link>
		<dc:creator>radino</dc:creator>
		<pubDate>Mon, 26 May 2008 15:12:56 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/05/25/using-autonomous-transactions-for-sleeping/#comment-338</guid>
		<description>I think java.lang.Thread.sleep is better than dbms_lock and the approach you just described.
Code is very simle..

&lt;code&gt;
SQL&gt; create or replace procedure sleep(x_millis in number) as language java
  2  name &#039;java.lang.Thread.sleep(int)&#039;;
  3  /

Procedure created.

SQL&gt; set timing on
SQL&gt; exec sleep(10000);

PL/SQL procedure successfully completed.

Elapsed: 00:00:10.02
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I think java.lang.Thread.sleep is better than dbms_lock and the approach you just described.<br />
Code is very simle..</p>
<p><code><br />
SQL&gt; create or replace procedure sleep(x_millis in number) as language java<br />
  2  name 'java.lang.Thread.sleep(int)';<br />
  3  /</p>
<p>Procedure created.</p>
<p>SQL&gt; set timing on<br />
SQL&gt; exec sleep(10000);</p>
<p>PL/SQL procedure successfully completed.</p>
<p>Elapsed: 00:00:10.02<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabe</title>
		<link>http://blog.tanelpoder.com/2008/05/25/using-autonomous-transactions-for-sleeping/comment-page-1/#comment-337</link>
		<dc:creator>Gabe</dc:creator>
		<pubDate>Mon, 26 May 2008 14:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://tanelpoder.wordpress.com/2008/05/25/using-autonomous-transactions-for-sleeping/#comment-337</guid>
		<description>Well, one may end up sleeping for more than &#039;seconds&#039;.

In a multi-user environment, one sleep call will block another, since &#039;rollback to savepoint&#039; does not close the transaction.</description>
		<content:encoded><![CDATA[<p>Well, one may end up sleeping for more than &#8217;seconds&#8217;.</p>
<p>In a multi-user environment, one sleep call will block another, since &#8216;rollback to savepoint&#8217; does not close the transaction.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
