Link to home
Start Free TrialLog in
Avatar of rkogelhe
rkogelhe

asked on

DDL Locks

Sometimes when I compile a package, Toad locks up and eventually times out with ORA-04021: timeout occurred while waiting for a lock on object ...

How do I know what session is blocking the compile? OEM lock manager does not seem to show anything.

Also, this particular package is used infrequently, has no package variables, and when it is used, the action takes only a few seconds and is always committed. It seems strange that there should be any contention for this object. What's happening here?
Avatar of srikant033100
srikant033100

Try to increase the value of DML_LOCKS in the init.ora and u can get v$session,V$lock.
This errors means that there are some other user accessing that object.

Try looking at v$access for the users (sessions) that access that object.
ASKER CERTIFIED SOLUTION
Avatar of junfeb
junfeb

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial