Professional Documents
Culture Documents
DBMS
DBMS
Management Systems
Transactions are fundamental in database management systems, ensuring data integrity and reliability.
What is a Database Transaction?
Unit of Work ACID Properties Data Integrity
A transaction is a series Transactions exhibit Transactions ensure data
of database operations Atomicity, Consistency, remains in a valid state,
that must be completed as Isolation, and Durability. even in the event of
a single unit. failures.
Transaction States
Active 1
The transaction is executing and
making changes to the database.
2 Partially Committed
The transaction has finished
execution but not yet committed.
Committed 3
The transaction has successfully
completed and its changes are
permanent.
Committed Transactions
1 Permanent 2 Isolation 3 Durability
Changes
Committed Committed
Committed transactions are transactions' effects
transactions' changes isolated from other persist even after
become permanent in transactions. system failures.
the database.
Aborted Transactions
Failure to Commit Causes Isolation
Partial Rollback
Rollback to a specific savepoint within a transaction.
Commit
Permanently applies all changes made by a transaction.
Importance of Transaction Management