Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Executing a Lock Timeout
lenaf7_at_yahoo.com wrote:
>
> Hi,
>
> How do I place or execute a Lock Timeout within the database of 30
> minutes? Is this possible? Any information that you can provide will
> be helpful.
>
> Thanks, Selena
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Some options -
loop
begin
(try and lock rows with NOWAIT clause)
exit;
exception when others then
if sqlcode = -54 (I think) then if no_of_attempts > 30 then raise; else no_of_attempts := no_of_attempts + 1 dbms_lock.sleep(60); end if; end if;
3) Create a loopback database link and take advantage of distributed_lock_timeout.
HTH
-- =========================================== Connor McDonald http://www.oracledba.co.uk We are born naked, wet and hungry...then things get worseReceived on Tue Apr 11 2000 - 00:00:00 CDT
![]() |
![]() |