Q
Problem solve Get help with specific problems with your technologies, process and projects.

Prompts when row/table is being edited

Is there anything (built into Oracle) that would prompt or signify to a client server app that another user is editing a row/table even before the second user attempts a commit (i.e. proactive rather than reactive)?
The "reactive" method by default is that the second user waits for a lock to be released before the DML command can continue. Many people want a more "proactive" method. The solution to this is to open a cursor FOR UPDATE NOWAIT. This cursor will signify which row(s) of data you will be modifying and locks those rows. The NOWAIT clause tells the system you will not wait for other locks to be released. If another user currently has a lock, this cursor will throw an exception which you will want to handle in your code. The specific implementations all depend on your application development platform.

Dig Deeper on Oracle database design and architecture

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close