InterviewSolution
Saved Bookmarks
| 1. |
What is a lock. Explain the major difference between a shared lock and an exclusive lock during a transaction in a database. |
|
Answer» A database lock is a mechanism to protect a shared PIECE of data from getting updated by two or more database users at the same time. When a single database user or SESSION has acquired a lock then no other database user or session can modify that data until the lock is released.
|
|