Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: deadlock problem

Re: deadlock problem

From: Andreas Michler <Andreas.Michler_at_adicom.de>
Date: Tue, 25 Jan 2000 10:46:05 +0100
Message-ID: <388D70DD.4014E9FD@adicom.de>


Do the following:
select * from tablexx where xx=1 for update nowait;

the second select will get at once the error: ORA-00054: resource busy and acquire with NOWAIT specified

Ben Grigsby wrote:

> I am using VC6 to access an Oracle 8i database using RogueWave's
> dbtools.
>
> My problem is that I am trying to implement row-level locking by
> declaring a cursor for update. It does lock the row, but the deadlock
> occurs whenever any other process tries to access the same row. The
> second process waits indefinately until the row is unlocked.
>
> Is there any way to set a timeout so that other processes will not
> hang forever?
>
> TAI
>
> Ben Grigsby
> grigsby_at_inquiregroup.com

--



ADICOM Informatik GmbH
Andreas Michler
Wiesfleckenstr. 34
72336 Balingen
Tel: 07433/9977-57,Fax: -90
E-Mail: Andreas.Michler_at_adicom.de
http:\\www.adicom.de
Received on Tue Jan 25 2000 - 03:46:05 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US