<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Making self deadlock on the library cache pin</title>
	<atom:link href="http://dioncho.wordpress.com/2010/09/16/making-self-deadlock-on-the-library-cache-pin/feed/" rel="self" type="application/rss+xml" />
	<link>http://dioncho.wordpress.com/2010/09/16/making-self-deadlock-on-the-library-cache-pin/</link>
	<description>We are natural born scientists</description>
	<lastBuildDate>Fri, 17 Dec 2010 18:43:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Surachart Opun</title>
		<link>http://dioncho.wordpress.com/2010/09/16/making-self-deadlock-on-the-library-cache-pin/#comment-651</link>
		<dc:creator><![CDATA[Surachart Opun]]></dc:creator>
		<pubDate>Mon, 29 Nov 2010 03:37:21 +0000</pubDate>
		<guid isPermaLink="false">http://dioncho.wordpress.com/?p=1071#comment-651</guid>
		<description><![CDATA[Cool...
Some database, developers often recompile stored procedure.
We could not recompile stored procedure. After I checked I found that stored procedure hung in Library Cach.... I have to kill them.

I use this sql from Steve Adams (www.ixora.com.au)


SELECT 
substr(DECODE(o.kglobtyp, 
7, &#039;PROCEDURE&#039;, 8, &#039;FUNCTION&#039;, 9, &#039;PACKAGE&#039;, 12, &#039;TRIGGER&#039;, 13, 
&#039;CLASS&#039;),1,15) &quot;TYPE&quot;, 
substr(o.kglnaown,1,30) &quot;OWNER&quot;, 
substr(o.kglnaobj,1,30) &quot;NAME&quot;, 
s.indx &quot;SID&quot;, 
s.ksuseser &quot;SERIAL&quot; 
FROM 
sys.X$KGLOB o, 
sys.X$KGLPN p, 
sys.X$KSUSE s 
WHERE 
o.inst_id = USERENV(&#039;Instance&#039;) AND 
p.inst_id = USERENV(&#039;Instance&#039;) AND 
s.inst_id = USERENV(&#039;Instance&#039;) AND 
o.kglhdpmd = 2 AND 
o.kglobtyp IN (7, 8, 9, 12, 13) AND 
p.kglpnhdl = o.kglhdadr AND 
s.addr = p.kglpnses and substr(o.kglnaobj,1,30)=&#039;&amp;NAME&#039; 
ORDER BY 1, 2, 3 
/]]></description>
		<content:encoded><![CDATA[<p>Cool&#8230;<br />
Some database, developers often recompile stored procedure.<br />
We could not recompile stored procedure. After I checked I found that stored procedure hung in Library Cach&#8230;. I have to kill them.</p>
<p>I use this sql from Steve Adams (www.ixora.com.au)</p>
<p>SELECT<br />
substr(DECODE(o.kglobtyp,<br />
7, &#8216;PROCEDURE&#8217;, 8, &#8216;FUNCTION&#8217;, 9, &#8216;PACKAGE&#8217;, 12, &#8216;TRIGGER&#8217;, 13,<br />
&#8216;CLASS&#8217;),1,15) &#8220;TYPE&#8221;,<br />
substr(o.kglnaown,1,30) &#8220;OWNER&#8221;,<br />
substr(o.kglnaobj,1,30) &#8220;NAME&#8221;,<br />
s.indx &#8220;SID&#8221;,<br />
s.ksuseser &#8220;SERIAL&#8221;<br />
FROM<br />
sys.X$KGLOB o,<br />
sys.X$KGLPN p,<br />
sys.X$KSUSE s<br />
WHERE<br />
o.inst_id = USERENV(&#8216;Instance&#8217;) AND<br />
p.inst_id = USERENV(&#8216;Instance&#8217;) AND<br />
s.inst_id = USERENV(&#8216;Instance&#8217;) AND<br />
o.kglhdpmd = 2 AND<br />
o.kglobtyp IN (7, 8, 9, 12, 13) AND<br />
p.kglpnhdl = o.kglhdadr AND<br />
s.addr = p.kglpnses and substr(o.kglnaobj,1,30)=&#8217;&amp;NAME&#8217;<br />
ORDER BY 1, 2, 3<br />
/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maclean</title>
		<link>http://dioncho.wordpress.com/2010/09/16/making-self-deadlock-on-the-library-cache-pin/#comment-639</link>
		<dc:creator><![CDATA[Maclean]]></dc:creator>
		<pubDate>Sat, 02 Oct 2010 16:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://dioncho.wordpress.com/?p=1071#comment-639</guid>
		<description><![CDATA[This is a normal behavior, but should be distinct!]]></description>
		<content:encoded><![CDATA[<p>This is a normal behavior, but should be distinct!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dion Cho</title>
		<link>http://dioncho.wordpress.com/2010/09/16/making-self-deadlock-on-the-library-cache-pin/#comment-636</link>
		<dc:creator><![CDATA[Dion Cho]]></dc:creator>
		<pubDate>Thu, 16 Sep 2010 10:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://dioncho.wordpress.com/?p=1071#comment-636</guid>
		<description><![CDATA[Hi, Timur. 

Yes, this is a normal behavior, which I didn&#039;t expected. :(

Oracle could have implemented more fine-grained locking!

Thanks for the link.]]></description>
		<content:encoded><![CDATA[<p>Hi, Timur. </p>
<p>Yes, this is a normal behavior, which I didn&#8217;t expected. :(</p>
<p>Oracle could have implemented more fine-grained locking!</p>
<p>Thanks for the link.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timur Akhmadeev</title>
		<link>http://dioncho.wordpress.com/2010/09/16/making-self-deadlock-on-the-library-cache-pin/#comment-635</link>
		<dc:creator><![CDATA[Timur Akhmadeev]]></dc:creator>
		<pubDate>Thu, 16 Sep 2010 09:02:01 +0000</pubDate>
		<guid isPermaLink="false">http://dioncho.wordpress.com/?p=1071#comment-635</guid>
		<description><![CDATA[Hi Dion,

&lt;blockquote&gt;So, this is not a normal situation, isn’t it?&lt;/blockquote&gt;
It&#039;s normal behavior. See &lt;a href=&quot;https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=264476.1&amp;h=Y&quot; rel=&quot;nofollow&quot;&gt;Doc ID 264476.1&lt;/a&gt; for details.]]></description>
		<content:encoded><![CDATA[<p>Hi Dion,</p>
<blockquote><p>So, this is not a normal situation, isn’t it?</p></blockquote>
<p>It&#8217;s normal behavior. See <a href="https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=264476.1&amp;h=Y" rel="nofollow">Doc ID 264476.1</a> for details.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
