Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2012
    Posts
    1

    Question Unanswered: Guarantee unique access on row

    Hi,

    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.
    Jones

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    >How do I guarantee that each ID is accessed only by one client?
    SELECT ...... FOR UPDATE
    You 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •