Snapshot Information Level Database Application Lock |
API Structure(s) sqlm_dbase sqlm_appl sqlm_dbase_lock sqlm_appl_lock |
Monitor Group Basic Basic Basic Basic |
Resettable |
No |
|
API Element Name Element Type |
locks_held gauge |
Description: The number of locks currently held.
Usage: If the monitor information is at the database level, this is the total number of locks currently held by all applications in the database.
If it is at the application level, this is the total number of locks currently held by the application. How you use this element depends on the level of information being returned from the database system monitor.
(locklist * 4096 / 32 ) - locks held = # remaining
where:
| Note: | You may also use Total Lock List Memory In Use in a similar fashion. |
Since the maxlocks parameter is specified as a percentage and this element is a counter, you can compare the count provided by this element against the total number of locks that can be held by an application, as calculated using the following formula:
(locklist * 4096 / 32 ) * (maxlocks / 100)
If you have a large number of locks, you may need to perform more commits within your application so that some of the locks can be released.
[ Top of Page | Table of Contents | Glossary | Index ]