<?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: Library cache lock and library cache pin waits</title>
	<atom:link href="http://orainternals.wordpress.com/2009/06/02/library-cache-lock-and-library-cache-pin-waits/feed/" rel="self" type="application/rss+xml" />
	<link>http://orainternals.wordpress.com/2009/06/02/library-cache-lock-and-library-cache-pin-waits/</link>
	<description>Discussions about Oracle performance tuning, RAC, Oracle internal &#38; E-business suite.</description>
	<lastBuildDate>Sun, 19 May 2013 12:13:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Andrew Brennan</title>
		<link>http://orainternals.wordpress.com/2009/06/02/library-cache-lock-and-library-cache-pin-waits/#comment-2107</link>
		<dc:creator><![CDATA[Andrew Brennan]]></dc:creator>
		<pubDate>Tue, 16 Apr 2013 09:23:06 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=449#comment-2107</guid>
		<description><![CDATA[Hi,

Thanks very much for this article. I just fixed a major fault on a production environment with your solution, avoiding an unneccessary database bounce and further interruption to service.

Andy
2nd line Support DBA at BT]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks very much for this article. I just fixed a major fault on a production environment with your solution, avoiding an unneccessary database bounce and further interruption to service.</p>
<p>Andy<br />
2nd line Support DBA at BT</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammed</title>
		<link>http://orainternals.wordpress.com/2009/06/02/library-cache-lock-and-library-cache-pin-waits/#comment-2026</link>
		<dc:creator><![CDATA[Mohammed]]></dc:creator>
		<pubDate>Thu, 07 Mar 2013 22:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=449#comment-2026</guid>
		<description><![CDATA[Reblogged this on &lt;a href=&quot;http://appsdbanotes.wordpress.com/2013/03/07/378/&quot; rel=&quot;nofollow&quot;&gt;Apps DBA notes&lt;/a&gt;.]]></description>
		<content:encoded><![CDATA[<p>Reblogged this on <a href="http://appsdbanotes.wordpress.com/2013/03/07/378/" rel="nofollow">Apps DBA notes</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lytton</title>
		<link>http://orainternals.wordpress.com/2009/06/02/library-cache-lock-and-library-cache-pin-waits/#comment-1991</link>
		<dc:creator><![CDATA[lytton]]></dc:creator>
		<pubDate>Fri, 08 Feb 2013 09:33:28 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=449#comment-1991</guid>
		<description><![CDATA[Did the library cache lock has any relation with dadabase forcelogging ?]]></description>
		<content:encoded><![CDATA[<p>Did the library cache lock has any relation with dadabase forcelogging ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VJ</title>
		<link>http://orainternals.wordpress.com/2009/06/02/library-cache-lock-and-library-cache-pin-waits/#comment-1983</link>
		<dc:creator><![CDATA[VJ]]></dc:creator>
		<pubDate>Fri, 01 Feb 2013 20:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=449#comment-1983</guid>
		<description><![CDATA[Excellent article and well articulated. I found it to be extremely useful . Thanks a bunch!!!!]]></description>
		<content:encoded><![CDATA[<p>Excellent article and well articulated. I found it to be extremely useful . Thanks a bunch!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://orainternals.wordpress.com/2009/06/02/library-cache-lock-and-library-cache-pin-waits/#comment-1911</link>
		<dc:creator><![CDATA[sam]]></dc:creator>
		<pubDate>Wed, 05 Dec 2012 07:39:13 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=449#comment-1911</guid>
		<description><![CDATA[Hi Riyaj,

The above from a 2-node prod RAC ;
INST_ID	HANDLE	GRANT_LEVEL	REQUEST_LEVEL	RESOURCE_NAME1	RESOURCE_NAME2	PID	TRANSACTION_ID0	TRANSACTION_ID1	OWNER_NODE	BLOCKED	BLOCKER	STATE
1	C0000001BB9A3B40	KJUSEREX	KJUSEREX	[0x19][0x2],[RS]	25,2,RS	1313	0	0	0	0	1	GRANTED
2	C0000001BB9A3C90	KJUSERNL	KJUSEREX	[0x19][0x2],[RS]	25,2,RS	20612	0	0	1	1	0	OPENING 

both pointing to CKPT background process of node 1 blocking node2 ; what is the reason for this ?

Also ; is there a script to identify the session as well in the same query ?

Thanks.]]></description>
		<content:encoded><![CDATA[<p>Hi Riyaj,</p>
<p>The above from a 2-node prod RAC ;<br />
INST_ID	HANDLE	GRANT_LEVEL	REQUEST_LEVEL	RESOURCE_NAME1	RESOURCE_NAME2	PID	TRANSACTION_ID0	TRANSACTION_ID1	OWNER_NODE	BLOCKED	BLOCKER	STATE<br />
1	C0000001BB9A3B40	KJUSEREX	KJUSEREX	[0x19][0x2],[RS]	25,2,RS	1313	0	0	0	0	1	GRANTED<br />
2	C0000001BB9A3C90	KJUSERNL	KJUSEREX	[0x19][0x2],[RS]	25,2,RS	20612	0	0	1	1	0	OPENING </p>
<p>both pointing to CKPT background process of node 1 blocking node2 ; what is the reason for this ?</p>
<p>Also ; is there a script to identify the session as well in the same query ?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christoph Ruepprich</title>
		<link>http://orainternals.wordpress.com/2009/06/02/library-cache-lock-and-library-cache-pin-waits/#comment-1841</link>
		<dc:creator><![CDATA[Christoph Ruepprich]]></dc:creator>
		<pubDate>Fri, 09 Nov 2012 20:23:47 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=449#comment-1841</guid>
		<description><![CDATA[Reblogged this on &lt;a href=&quot;http://ruepprich.wordpress.com/2012/11/09/805/&quot; rel=&quot;nofollow&quot;&gt;Christoph&#039;s 2 Oracle Cents&lt;/a&gt; and commented: 
I came accross 100% library cache pin waits, while trying to compile a procedure which was currently executing.
After a little research, I came across this fantastic article by Riyaj Shamsudeen.]]></description>
		<content:encoded><![CDATA[<p>Reblogged this on <a href="http://ruepprich.wordpress.com/2012/11/09/805/" rel="nofollow">Christoph&#039;s 2 Oracle Cents</a> and commented:<br />
I came accross 100% library cache pin waits, while trying to compile a procedure which was currently executing.<br />
After a little research, I came across this fantastic article by Riyaj Shamsudeen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Artem Gorbyk</title>
		<link>http://orainternals.wordpress.com/2009/06/02/library-cache-lock-and-library-cache-pin-waits/#comment-1562</link>
		<dc:creator><![CDATA[Artem Gorbyk]]></dc:creator>
		<pubDate>Tue, 26 Jun 2012 09:05:52 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=449#comment-1562</guid>
		<description><![CDATA[Hello Riyaj,

Many thanks for the great article!

I&#039;m trying your library cache lock example and looks like in 11.2 RAC the self-deadlock (when you compiles your procedure from inside the same procedure ) is now auto detected and the &quot;ORA-04020: deadlock detected while trying to lock object&quot; exception is thrown. Maybe because in RAC it&#039;s a global resource and since 11.2 they added checks to detect this kind of deadlocks.

In 10.2 RAC and 11.2 single instance it works exactly like you explained - the session hangs trying to compile the procedure while executing it and x$kglpn shows two rows for the same session.]]></description>
		<content:encoded><![CDATA[<p>Hello Riyaj,</p>
<p>Many thanks for the great article!</p>
<p>I&#8217;m trying your library cache lock example and looks like in 11.2 RAC the self-deadlock (when you compiles your procedure from inside the same procedure ) is now auto detected and the &#8220;ORA-04020: deadlock detected while trying to lock object&#8221; exception is thrown. Maybe because in RAC it&#8217;s a global resource and since 11.2 they added checks to detect this kind of deadlocks.</p>
<p>In 10.2 RAC and 11.2 single instance it works exactly like you explained &#8211; the session hangs trying to compile the procedure while executing it and x$kglpn shows two rows for the same session.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Riyaj Shamsudeen</title>
		<link>http://orainternals.wordpress.com/2009/06/02/library-cache-lock-and-library-cache-pin-waits/#comment-1445</link>
		<dc:creator><![CDATA[Riyaj Shamsudeen]]></dc:creator>
		<pubDate>Tue, 22 May 2012 18:28:47 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=449#comment-1445</guid>
		<description><![CDATA[Hello Nishta
 Did you meant to say library cache pins? or deadlocks due to library cache pin? I am going to assume that there are no deadlocks and reply.
 
 Without looking at details, I would guess that your developers are executing some stored object, then trying to recompile the object (may be, their &quot;fix&quot; didn&#039;t work). 
 Please go through my blog and print the output of the scripts in the blog. May be, I can review details and help you.
  If this is a deadlock, then I would need a deadlock trace file to understand the issue. 

Thanks
Riyaj]]></description>
		<content:encoded><![CDATA[<p>Hello Nishta<br />
 Did you meant to say library cache pins? or deadlocks due to library cache pin? I am going to assume that there are no deadlocks and reply.</p>
<p> Without looking at details, I would guess that your developers are executing some stored object, then trying to recompile the object (may be, their &#8220;fix&#8221; didn&#8217;t work).<br />
 Please go through my blog and print the output of the scripts in the blog. May be, I can review details and help you.<br />
  If this is a deadlock, then I would need a deadlock trace file to understand the issue. </p>
<p>Thanks<br />
Riyaj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nishtha</title>
		<link>http://orainternals.wordpress.com/2009/06/02/library-cache-lock-and-library-cache-pin-waits/#comment-1443</link>
		<dc:creator><![CDATA[Nishtha]]></dc:creator>
		<pubDate>Tue, 22 May 2012 13:13:25 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=449#comment-1443</guid>
		<description><![CDATA[But how do I get rid of these library cache pins? One of my Development servers which is a 2 Node RAC gives this issue very often, and I had to keep killing the sessions that gets blocked due to deadlocks. is that the only solution?]]></description>
		<content:encoded><![CDATA[<p>But how do I get rid of these library cache pins? One of my Development servers which is a 2 Node RAC gives this issue very often, and I had to keep killing the sessions that gets blocked due to deadlocks. is that the only solution?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naresh</title>
		<link>http://orainternals.wordpress.com/2009/06/02/library-cache-lock-and-library-cache-pin-waits/#comment-1342</link>
		<dc:creator><![CDATA[Naresh]]></dc:creator>
		<pubDate>Tue, 13 Mar 2012 09:19:20 +0000</pubDate>
		<guid isPermaLink="false">http://orainternals.wordpress.com/?p=449#comment-1342</guid>
		<description><![CDATA[Hello Riyaj,

Your &quot;internals of locks&quot; link is not accessible - can you kindly correct? Thank you for your really good articles.

Naresh]]></description>
		<content:encoded><![CDATA[<p>Hello Riyaj,</p>
<p>Your &#8220;internals of locks&#8221; link is not accessible &#8211; can you kindly correct? Thank you for your really good articles.</p>
<p>Naresh</p>
]]></content:encoded>
	</item>
</channel>
</rss>
