|
|
 |
|
ss
Oracle Tips by Burleson |
Monitoring Locks and
Latches
Monitoring
latches and locks can be a challenge in Oracle. Just for V$LOCK DPT
alone, multiple joins are usually required to get to the information
you desire. I suggest running the CATBLOCK.SQL script, as it creates
several useful views for locks. The CATBLOCK.SQL script is located
in the /oracle/rdbms/admin directory on UNIX, and in the c:\orant\rdbmsxx\admin
directory on NT. The script creates DBA_KGLLOCK, DBA_LOCK,
DBA_LOCK_INTERNAL, DBA_DML_LOCKS, DBA_DDL_LOCKS, DBA_WAITERS, and
DBA_BLOCKERS. I suggest executing this script with echo set to ON,
since in many releases it contains errors that you must correct
before it will run properly. On early Oracle7 releases, there were
also problems with permissions on some of the lock views, which
required that they be queried from SYS or INTERNAL only. OEM
contains a detailed lock screen in the GUI, as well as an HTML-based
report for locking.
See Code Depot

www.oracle-script.com |
|
|