Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: No Wait for Update of locked row?
On Wed, 19 Feb 1997 15:33:19 -0800, Gene Plagge <gene_sal_at_pacbell.net> wrote:
>Hi,
>
>One of our developers needs to have the functionality of the NOWAIT
>clause in a SELECT statement when he is doing an UPDATE. He needs to
>have the UPDATE fail (with Ora error message) if the row he is
>attempting to update is locked.
>
>Any ideas on how to approach this.
>
>Oracle tech support had no clue...
>
>
>Thanks for any help.
>
>
>Gene Plagge
>WorldxChange, Inc.
>619-452-0041 x8466
>gplagge_at_wxl-cts.com
Basically you can't.
If you don't want your update to block you need to use a select for update.
If you would like to read about this, we just had a thread going on about this subject. goto http://www.dejanews.com and set up a 'power filter' for the
newsgroup: comp.databases.oracle.*
subject: locking issues
You'll get 30 or so messages on the subject.
Thomas Kyte
Oracle Government
tkyte_at_us.oracle.com