execute_query(for_update,nowait)
Steve Marrochello, January 23, 2002 - 9:57 am UTC
Is there anyway to display which user might have a lock on the records you are trying to query for an update. We have problems with careless users just going on lunch breaks without exiting their application. Somebody who tries to access those records would like to see who is locking the records so that they can have somebody exit out the offending machine.
January 23, 2002 - 6:20 pm UTC
Well, the DBA can see it -- you have to be blocked in order to see the blocker. You can generate a LIST of CANDIDATES and see who's been idle the longest (they are the best candidate). You would use v$lock to see whose got TM locks on your objects and then v$session to see whose been idle for a while.
lock
omer, April 28, 2004 - 3:17 am UTC
Hi!
my question is on locks in forms. I am using developer 6
I have a application in which
A is main form,
which calls B,
B calls C,
C calls D
(all using call form)
A, B and C are just intro form.
in D, I update record, then i go to sql, write update on the same row in table used in D form. press slash, sql is waiting because same record is locked by D form.
then I exit the D form, form ask for changes to save
i select no, form exits.
the locks should be released at this time
but on sql, it is still waiting.
then i closed the whole application first C, B and A.
now sql has updated that record
my question is why locks are not released when i exit the form D, but locks are released when i close the whole application?
thanks