Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
Library Cache Lock

Library Cache Lock

2004-06-02       - By Diego Cutrone

Reply:     <<     11     12     13     14     15     16     17     18     19     20     >>  

library cache lockDave,

To find out which session is blocking you you can also try this one:

select sid Holder ,KGLLKUSE Sesion , KGLLKMOD Held, KGLLKREQ Req
from x$kgllk , v$session
where KGLLKHDL in (select p1raw from v$session_wait
where wait_time=0 and event like 'library cache lock% ')
and KGLLKMOD < > 0
and v$session.saddr=x$kgllk.kgllkuse
/

Then after identifying the blocking session, you can go from there

HTH
Regards,
Diego


-- -- Original Message -- --
From: David Sharples
To: oracle-l@(protected)
Sent: Wednesday, June 02, 2004 5:44 AM
Subject: library cache lock


Hi, got a strange problem. I am trying to truncate a partition in a table, but it just hangs forever, it is waiting on a library cache lock. Anyone know why and how I can clear it - flushing the shared pool didn 't help and there are no other sessions touching that table.

Thanks

Dave

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN " >
<HTML > <HEAD > <TITLE >library cache lock </TITLE >
<META http-equiv=Content-Type content= "text/html; charset=iso-8859-1 " >
<META content= "MSHTML 6.00.2800.1400 " name=GENERATOR >
<STYLE > </STYLE >
</HEAD >
<BODY bgColor=#ffffff >
<DIV > <FONT face=Arial size=2 >Dave, </FONT > </DIV >
<DIV > <FONT face=Arial size=2 > </FONT >  </DIV >
<DIV > <FONT face=Arial size=2 >To find out which session is blocking you you can
also try this one: </FONT > </DIV >
<DIV > <FONT face=Arial size=2 > </FONT >  </DIV >
<DIV > <FONT face=Arial size=2 >select sid Holder ,KGLLKUSE Sesion , KGLLKMOD Held,
KGLLKREQ Req <BR >from x$kgllk , v$session <BR >where KGLLKHDL in (select p1raw from
v$session_wait
<BR >                   
where wait_time=0 and event like 'library cache lock% ') <BR >and KGLLKMOD <>
0 <BR >and v$session.saddr=x$kgllk.kgllkuse <BR >/ <BR > </FONT > </DIV >
<DIV > <FONT face=Arial size=2 >Then after identifying the blocking session, you
can go from there </FONT > </DIV >
<DIV > <FONT face=Arial size=2 > </FONT >  </DIV >
<DIV > <FONT face=Arial size=2 >HTH </FONT > </DIV >
<DIV > <FONT face=Arial size=2 >Regards, </FONT > </DIV >
<DIV > <FONT face=Arial size=2 >Diego </DIV > </FONT >
<DIV > <FONT face=Arial size=2 > </FONT >  </DIV >
<DIV > <FONT face=Arial size=2 > </FONT >  </DIV >
<BLOCKQUOTE dir=ltr
style= "PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px " >
<DIV style= "FONT: 10pt arial " >-- -- Original Message -- -- </DIV >
<DIV
style= "BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black " > <B >From: </B >
<A title=dsharples@(protected)
href= "mailto:dsharples@(protected) " >David Sharples </A > </DIV >
<DIV style= "FONT: 10pt arial " > <B >To: </B > <A title=oracle-l@(protected)
href= "mailto:oracle-l@(protected) " >oracle-l@(protected) </A > </DIV >
<DIV style= "FONT: 10pt arial " > <B >Sent: </B > Wednesday, June 02, 2004 5:44
AM </DIV >
<DIV style= "FONT: 10pt arial " > <B >Subject: </B > library cache lock </DIV >
<DIV > <BR > </DIV > <!-- Converted from text/rtf format -- >
<P align=left > <SPAN lang=en-gb > <FONT face=Arial size=2 >Hi, got a strange
problem.  I am trying to truncate a partition in a table, but it just
hangs forever, it is waiting on a library cache lock </FONT > </SPAN > <SPAN
lang=en-us > </SPAN > <SPAN lang=en-us > </SPAN > <SPAN lang=en-gb > <FONT face=Arial
size=2 >.  Anyone know why and how I can clear it </FONT > </SPAN > <SPAN
lang=en-us > </SPAN > <SPAN lang=en-us > </SPAN > <SPAN lang=en-gb > <FONT face=Arial
size=2 >? </FONT > </SPAN > <SPAN lang=en-us > </SPAN > <SPAN lang=en-us > </SPAN > <SPAN
lang=en-gb > <FONT face=Arial size=2 > </FONT > </SPAN > <SPAN lang=en-us > </SPAN > <SPAN
lang=en-us > </SPAN > <SPAN lang=en-gb > <FONT face=Arial
size=2 >flushing </FONT > </SPAN > <SPAN lang=en-us > </SPAN > <SPAN
lang=en-us > </SPAN > <SPAN lang=en-gb > <FONT face=Arial size=2 > the
sh </FONT > </SPAN > <SPAN lang=en-us > </SPAN > <SPAN lang=en-us > </SPAN > <SPAN
lang=en-gb > <FONT face=Arial size=2 >a </FONT > </SPAN > <SPAN
lang=en-us > </SPAN > <SPAN lang=en-us > </SPAN > <SPAN lang=en-gb > <FONT face=Arial
size=2 >red pool </FONT > </SPAN > <SPAN lang=en-us > </SPAN > <SPAN
lang=en-us > </SPAN > <SPAN lang=en-gb > <FONT face=Arial
size=2 >didn?t </FONT > </SPAN > <SPAN lang=en-us > </SPAN > <SPAN
lang=en-us > </SPAN > <SPAN lang=en-gb > <FONT face=Arial size=2 > help and there are
no other sessions touching that table. </FONT > </SPAN > </P >
<P align=left > <SPAN lang=en-gb > <FONT face=Arial
size=2 >Thanks </FONT > </SPAN > </P >
<P align=left > <SPAN lang=en-gb > <FONT face=Arial size=2 >Dave </FONT > </SPAN > <SPAN
lang=en-us > </SPAN > <SPAN lang=en-us > </SPAN > <SPAN
lang=en-gb > </SPAN > </P > </BLOCKQUOTE > </BODY > </HTML >