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

Home -> Community -> Usenet -> c.d.o.misc -> overlapping "select for update" statements

overlapping "select for update" statements

From: Torsten Mueller <dev-null_at_shared-files.de>
Date: Thu, 20 Apr 2006 16:57:21 +0200
Message-ID: <uejzs47n2.fsf@fastmail.fm>


I'm not quiet sure how "select for update" works in the case that I execute a second "select for update" statement in the same process.

Imagine I have some records in a table locked by a first "select for update". Then I execute a second "select for update" on other records. In the case of strictly different records it will work without any problems I think.

But what, if the where clause of the second statement includes also records locked by the first statement? Does the second statement at least return (and lock) the remaining still unlocked records, does it wait until all records are unlocked or do I just get a runtime error?

T.M. Received on Thu Apr 20 2006 - 09:57:21 CDT

Original text of this message

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