By default, Oracle manages locking, taking care of concurrency locks for you. Oracle provides a method to lock a whole table, but there is no explicit "select for update" syntax to lock individual rows within a table.
Here is a good link for understanding Oracle locking mechanisms and how to use the stats$enqueuestat table to view locks.
Dig Deeper on Oracle database design and architecture
Related Q&A from Don Burleson
I have created a table, Party, and in it there are two main fields, party_code and party_name, and around 2,500 records are available in it. I passed... Continue Reading
Suppose you have a table which has only two columns, namely locid (not primary) and place. In Oracle, which query should I run to get the output as ... Continue Reading
I have a query that retrieves around 10 records. I have a task to concatenate the values separated with ','. I would like to know if Oracle has any ... Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.