a collection of several operations on the database appears to be a single unit from the point of view of the database user.
Transactions
Collections of operations that form a single logical unit of work
Transactions
is a unit of program execution that accesses and possibly updates various data items.
Transaction
The “all-or-none” property of transactions
atomicity
the database system
must take special actions to ensure that transactions operate properly without interference from concurrently executing database statements.
Isolation
means that once a transaction is completed, its effects are permanent—they must survive system crashes.
Durability
If the database starts in a valid state, it must still be valid after the transaction finishes.
Consistency
Either all operations of the transaction are reflected properly in the database, or none are.
Atomicity
Execution of a transaction in isolation (i.e., with no other transaction executing concurrently) preserves the consistency of the database.
Consistency
Even though multiple transactions may execute concurrently, the system guarantees that, for every pair of transactions Ti and Tj, it appears to Ti that either
Tj finished execution before Ti started or Tj started execution after Ti finished.
Isolation
After a transaction completes successfully, the changes it has made to the database persist, even if there are system failures.
Durability
Thus, because of the failure, the state of the system no longer reflects a real state of the world that the database is supposed to capture.
inconsistent state
Information does not usually survive system crashes.
Volatile storage
Information survives system
crashes.
Non-volatile storage
Information is never lost
Stable storage
a transaction may not always complete its execution successfully.
aborted
It is part of the responsibility of the recovery scheme to manage trans
action aborts.
Rolled back
A file that records all database modifications before they are applied.
Log
A transaction that completes its execution successfully
committed
has performed updates transforms the database into a new
consistent state, which must persist even if there is a system failure.
committed
The only way to undo the effects of a committed transaction
compensating transaction
the initial state; the transaction stays in this state while it is executing.
Active
after the final statement has been executed.
Partially committed
after the discovery that normal execution can no longer proceed
Failed