Database Tuning (MOSC)

MOSC Banner

High 'latch: library cache' waits and multiple versions of an SQL statement...

edited Dec 12, 2011 2:39AM in Database Tuning (MOSC) 5 comments
 Hi all,
I'm trying to track down the cause of a large number of 'latch: library cache' waits in one of our 10.2.0.5 databases (Solaris 10).

When looking at Enterprise Manager it highlights one SQL statement.  This statement is run by multiple sessions (200+) all connecting as the same database user and accessing the same objects.  The statement uses a bind variable which references a varchar2(11) column.

Here's the statement in question:

SELECT *
FROM sysadm.ps_gu_wlcmpge_r_vw
WHERE emplid = :sNum

sysadm.ps_gu_wlcmpge_r_vw is a view and is defined as:

SELECT DISTINCT b.emplid, 
                c.acad_prog_primary, 

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center