DBMS_LOCK_ALLOCATED [message #530090] |
Fri, 04 November 2011 11:16  |
 |
Rags123
Messages: 39 Registered: July 2011 Location: United Kingdom
|
Member |
|
|
HI,
I googled a bit and got to know that it is a part of Oracles user lock management. But I still have more queries.
There is this query that crops up in our AWR report and has an elapsed time of about 4.5s. It typically gets executed around 250 times per hour.
DELETE DBMS_LOCK_ALLOCATED WHERE EXPIRATION < SYSDATE
1. I would expect it to be a background housekeeping job that Oracle might be triggering. Hopefully it is not something that would add to the elapsed time of any query (even DBMS_LOCK for that matter) invoked by the application.
2. What factors influence the number of times it gets executed? It 4.5 seconds per execution normal? I feel its a lot and it means there it has too much rows to delete!
3. Coincidentally, when the elapsed time of this is higher in a particuar snap_id, various operations are also slow! Please note that the PLSQL Lock sleep time for that snap is not too high either. Does that mean that the locks obtained using DBMS_LOCK is not accounted anywhere in the AWR?
Cheers,
Rags
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|