Snapshot Level Database Application Lock |
Logical Data Grouping dbase appl dbase_lock appl_lock |
Monitor Switch Basic Basic Basic Basic |
Resettable |
No |
|
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 all agents for the application. How you use this element depends on the level of information being returned from the database system monitor.
(locklist * 4096 / 36 ) - 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 / 36 ) * (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.