Beruflich Dokumente
Kultur Dokumente
Collection of operations that form a single logical unit of work are called Transactions. A collection of several operations on the database appears to be a single unit from the point of view of the database user.
TRANSACTION (Contd.)
EXAMPLE:
A Transfer of funds from a checking account to a saving account is a single operation from the customers standpoint.
Read (A); A=A-50; Write (A); Read (B); B=B+50; Write (B);
ACID Properties
1) ATOMICITY:
Either all operations of a transaction are reflected properly in the database or all of its effects are aborted.
Execution of a transaction in isolation (that is, with no other transaction executing concurrently) preserves the consistency of the database.
Suppose that the failure happened after the write (A) operation but before the write(B) operation.