Locking certain rows in a transaction
Posted by:
peter groh
Date: August 09, 2008 06:05AM
Hi,
i'm currently experimenting with nested sets. To insert a new node,, I need 1 SELECT, 2 UPDATE and 1 INSERT statement.
Of course all of this wii be packed into a transaction, because the table could get corrupted if not all of the mentioned queries are executed.
Now here's the question: I need to lock certain rows, so that no other client can read or write that rows (I want those clients to wait until the transaction is commited or rolled back). I don't want to lock the entire table, since that would block to many clients, which never intended to read the critical rows.
Please don't simply post a link to the documentation. I tried to read it, but I didn't find the solution.
Example would be nice.
Greets, peter
Edited 1 time(s). Last edit at 08/09/2008 06:06AM by peter groh.
Subject
Views
Written By
Posted
Locking certain rows in a transaction
2914
August 09, 2008 06:05AM
1899
August 29, 2008 12:22PM
1903
September 08, 2008 08:31AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.