ROW locking.
Posted by: Ahmad Sakhi
Date: April 27, 2016 01:08PM

Hello everyone,

I have a parent--child table (AUTHOR--BOOK).
My application (J2EE) will list the authors in a table. The user can select a given author and it lists all the books for that particular author (by passing author ID (PK) to BOOK table.
Then the user can add (or update) a given record in BOOK table.

I am planning to use locking mechanism so no two users can update same record in BOOK table at the same time.

In my scenario, what type of locking is ideal? should I do an exclusive lock or shared? Any thing I need to consider when dealing with row locking?

Thanks.

Options: ReplyQuote


Subject
Written By
Posted
ROW locking.
April 27, 2016 01:08PM
April 27, 2016 01:27PM
April 27, 2016 01:37PM
April 30, 2016 07:31PM


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.