Locking - control concurrent access to data
|
Intended to prevent destructive interaction between users accessing table data
|
Locks are used to achieve two important database goals
-
Consistency - ensure that the data a user is viewing or changing is not changed (by other users) until the user is finished with the data
-
Integrity - ensures that the database's data and structures reflect all changes made to them in the correct sequence
|