Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: PL/SQL AND LOCK
Perhaps your select for update is failing because someone else has the table locked. Try using the NOWAIT option, testing the return code, and returning a msg if the record is currently locked by another user.
Thomas Kyte <tkyte_at_us.oracle.com> wrote in article
<34191360.9790728_at_newshost>...
> On Wed, 10 Sep 1997 15:03:32 +0200, Matteo Lonardi
<teo_at_romeo.sci.univr.it>
> wrote:
>
> >I have to lock only one record (or a set of record) in PL/SQL.
> >I have tried to use a cursor FOR UPDATE but it doesn't seem to work.
> >
Received on Tue Sep 16 1997 - 00:00:00 CDT
![]() |
![]() |