Solved

library cache load lock

Posted on 2002-06-05
3
1,459 Views
Last Modified: 2012-05-04
I want to find the object that cause an "library cache load lock" event on v$session_wait.

How do you use the "object address" in the event (p2raw) to find the command or object that cause the event?

0
Comment
Question by:Santunes
3 Comments
 
LVL 3

Accepted Solution

by:
UsamaMunir earned 125 total points
Comment Utility
The wait parameters of library cache lock & pin waits

are
p1 The address in the memory of the libraray cache handle

p2 The memory address of the lock and pin structure

p3 is encoded as 10*mode+namespace
                  mode = 3 shared, 5 exclusive
                  The namespaces are
                  0 cursor
                  1 Table, procedure & others
                  2 package body
                  3 trigger
                  4 index
                  5 cluster
                  6 object
                  7 pipe

i am looking into how can u get the exact name of the Object, lets see..watching and learning

Peace
UsamaMunir        
0
 
LVL 7

Assisted Solution

by:waynezhu
waynezhu earned 125 total points
Comment Utility

The X$KGLLK maybe what you need.

Pay special attention to the columns:

KGLLKADR
KGLLKSES
KGLLKHDL
USER_NAME
KGLNAOBJ

where KGLLKHDL is the handle address (
or in another word object address) which
is related to the p1/p1raw; KGLLKADR may
be related to lock address p2/p2raw (I
am not sure on this); KGLNAOBJ is
the name of the state object; KGLLKSES
can be joined with SADDR of V$SESSION.

You may try the following for more information:

Join v$session and v$session_wait to find the
session of your interest, and
"select * from v$kgllk" for the session(s).

Do more research as necessary.

Good luck.

0
 
LVL 5

Expert Comment

by:jpkemp
Comment Utility
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Split between UsamaMunir & waynezhu
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
jpkemp
EE Cleanup Volunteer
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now