Home » Developer & Programmer » Forms » unlocking rows
unlocking rows [message #80537] Wed, 09 October 2002 06:20 Go to next message
bheki
Messages: 1
Registered: October 2002
Junior Member
how do I check which user is locking the record and
how do I unlock the record and make it available to
other users. In a ORACLE WEB DEV set up with 500
users. Please help!!!!!!!!!!!!
Re: unlocking rows [message #80544 is a reply to message #80537] Wed, 09 October 2002 22:08 Go to previous message
Shiju
Messages: 12
Registered: October 2002
Junior Member
Check whether the row is locked using NOWAIT.
If the row is locked, it gives Resource busy
ORA-00054 Exception

Eg.

declare
b number;
begin
select a into b from a where a='999' for update of a nowait;
end;
exception when others then
if sqlcode=-0054 then
<Your Lock Message>
end if;
end;
Previous Topic: Re: Oracle Forms 6i 'Exit the application'.
Next Topic: Update by cursor
Goto Forum:
  


Current Time: Thu Apr 25 02:31:06 CDT 2024