UNIT-1-Transaction and Concurrency
UNIT-1-Transaction and Concurrency
Concurrency Control
What is a Transaction?
□ Any action that reads from and/or writes to a
database may consist of
■ Simple SELECT statement to generate a list of
table contents
■ A series of related UPDATE statements to change
the values of attributes in various tables
■ A series of INSERT statements to add rows to one
or more tables
■ A combination of SELECT, UPDATE, and INSERT
statements
□ lost updates
□ uncommitted data
□ inconsistent retrievals
□ An entire disk page is locked (a table can span several pages and
each page can contain several rows of one or more tables)
□ Most frequently used multi-user DBMS locking method