Thread: Guarantee unique access on row
03-23-12, 02:42 #1Registered User
- Join Date
- Mar 2012
Unanswered: Guarantee unique access on row
I've got a table with unique customers' IDs.
Multiple oracle clients should work on this in a sequential order.
How do I guarantee that each ID is accessed only by one client?
I was thinking of a stored procedure selecting a row, updating a "flag" column
e.g. with hostname of client(for better auditing), doing commit and returning customers id of this row. Of course select statement will exclude flagged rows.
Will this be sufficient enough? Are statements or procedure calls processed
sequential? Or this there any parallel processing of procedures?
Thanks in advance for your replies.
03-23-12, 10:35 #2Registered User
Provided Answers: 1
- Join Date
- Aug 2003
- Where the Surf Meets the Turf @Del Mar, CA
>How do I guarantee that each ID is accessed only by one client?
SELECT ...... FOR UPDATEYou can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Good judgement comes from experience. Experience comes from bad judgement.