What is Transaction?
Action, or series of actions, carried out by user or application, which reads or updates contents of database.
Can have one of two outcomes:
1. Success - transaction commits and
database reaches a new consistent state.
2. Failure - transaction aborts, and database must be restored to consistent state before it started.
- Such a transaction is rolled back or undone.
Four basic (ACID) properties that define a transaction?
What is Concurrency Control?
Process of managing simultaneous operations on the database without having them interfere with one another.
3 examples of potential problems caused by concurrency?
Serializabilty?
Serializability identifies those executions of transactions guaranteed to ensure consistency.
Two basic concurrency control techniques?
What is Two-phase locking (2PL)
A transaction follow the two-phase locking protocol if all locking operations precede the first unlock operation in the transaction
What is Deadlock and 3 techniques for handling deadlock?
An impasse that may result when two (or more) transactions are each waiting for locks to be released that are held by the other.
3 general techniques for handling deadlock?
3 phases of Optimistic Techniques?
Granularity of Data Items - Ranging from coarse to fine
DBMS should provide following facilities to assist with recovery:
What is checkpoint?
the point of synchronization between database and log file. All buffers are force-written to secondary storage.
3 main recovery techniques?
Look at five advanced transaction models: