Transaction Concurrency Control Flashcards
- any action that reads from or writes to a database.
- sequence of database requests that accesses the database.
Transaction
a logical unit of work; that is, it must be entirely completed or aborted—no intermediate ending states are accepted
Transaction
Transaction support is provided by two SQL statements
COMMIT and ROLLBACK.
____ require that when a transaction sequence is initiated by a user or an
application program, the sequence must continue through all succeeding SQL statements
ANSI standards
This keeps track of all transactions that update the database
transaction log
A DBMS feature that coordinates the simultaneous execution of transactions in a
multiprocessing database system while preserving data integrity
Concurrency Control?
Three main problems of Concurrency Control
Problem occurs when two concurrent transactions, T1 and T2, are updating the same
data element and one of the updates is lost (overwritten by the other transaction).
Lost Updates
It occurs when two transactions, T1 and T2, are executed concurrently and the first transaction (T1) is rolled back after the second transaction (T2) has already accessed the uncommitted data—thus violating the isolation property of transactions.
Uncommitted Data
It occur when a transaction accesses data before and after one or more other transactions finish working with such data.
Inconsistent Retrieval
a special DBMS process that establishes the order in which the operations are
executed within concurrent transactions.
Scheduler
The scheduler ________ the execution of database operations to ensure
serializability and isolation of transactions
interleaves
scheduler’s main job
to create a serializable schedule of a transaction’s operations
guarantees exclusive use of a data item to a current transaction.
lock
The use of locks based on the assumption that conflict between transactions is likely usually referred to as
pessimistic locking
issued when a transaction requests permission to update a data item and no locks are held on that data item by any other transaction. An exclusive lock does not allow other transactions to access the database
exclusive lock