Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

library cache lock in database.

Yash99
Occasional Advisor

library cache lock in database.

Hi
I am facing a problem of library cache lock in database. Whenever I am trying to gather statistics on tables in Oracle 10.2.0.1 database. The session hangs and finally I have to kill the session.
2 REPLIES
Jeeshan
Honored Contributor

Re: library cache lock in database.

Hi

looks like a relevant thread

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=146843
a warrior never quits
Yogeeraj_1
Honored Contributor

Re: library cache lock in database.

hi,

Have a look at metalink note 444561.1 - LIBRARY CACHE LOCK, PIN AND LOAD LOCK.


...
After object invalidation, Oracle tries to recompile the object at the time of the first access to it. It may be a problem in case when other sessions have pinned the object to the library cache. It is obvious that
it is more likely to occur with more active users and with more complex dependencies (eg. many cross-dependent packages or package bodies). In some cases waiting for object recompilation may even take hours blocking all the sessions trying to access it.
...



You may have to review your "shared pool size", "cursor_sharing" and reduce invalidations by running statistics gathering jobs at off-peak periods.

if you need any further assistance, please let us know.

kind regards
yogeeraj

No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)