Send a link to your students to track their progress
15 Terms
1
New cards
Transaction
A sequence of database requests that accesses the database; a logical unit of work that either entirely completes or is aborted.
2
New cards
Consistent database state
A state in which all data integrity constraints are satisfied.
3
New cards
Rollback
Reverting the database to its previous consistent state because a transaction failed or was explicitly aborted.
4
New cards
Atomicity (the A in ACID)
All parts of a transaction are treated as a single, indivisible logical unit
5
New cards
Consistency (the C in ACID)
Data integrity constraints are satisfied; transactions must start and end in consistent states.
6
New cards
Isolation (the I in ACID)
A data item used by one transaction is not available to other transactions until the first one ends.
7
New cards
Durability (the D in ACID)
Once a transaction is committed, its changes cannot be undone or lost, even after a system failure.
8
New cards
Serializability
The selected order of concurrent transaction operations produces the same final database state as some serial execution would have produced.
9
New cards
COMMIT
Permanently records all changes made by the transaction and ends the transaction.
10
New cards
ROLLBACK
Aborts all changes made by the transaction and reverts the database to its previous state.
11
New cards
START TRANSACTION (MySQL)
Explicitly begins a transaction; required in MySQL where transactions are not always implicit.
12
New cards
Implicit COMMIT
When the SQL command set ends successfully, all changes are recorded automatically as if COMMIT were issued.
13
New cards
Implicit ROLLBACK
When the SQL command set terminates abnormally, changes are aborted automatically as if ROLLBACK were issued.
14
New cards
Transaction log
A DBMS feature that keeps track of all transaction operations that update the database, used for recovery from rollbacks, abnormal termination, or system failure.
15
New cards
Six things stored in the transaction log
(1) Begin marker for each transaction, (2) Operation type (INSERT/UPDATE/DELETE), (3) Names of affected objects, (4) Before-and-after values for updated fields, (5) Pointers to previous and next log entries, (6) End/COMMIT marker.