DBMS Menu


Transaction Concept in DBMS




A transaction is a single, logical unit of work that consists of one or more related tasks. A transaction is treated as a single, indivisible operation, which means that either all the tasks within the transaction are executed successfully, or none are.

Here are a few key properties of transactions, often referred to by the acronym ACID:

ACID Properties

  1. Atomicity
  2. Consistency
  3. Isolation
  4. Durability

Atomicity: This property states that a transaction must be treated as an atomic unit, that is, either all of its operations are executed or none. There is no such thing as partial transaction; if a transaction fails, all the changes made in the database so far by that transaction are rolled back, and the database remains unchanged.

Consistency: The database must remain in a consistent state after any transaction. No transaction should have any adverse effect on the data residing in the database. If the database was in a consistent state before a transaction, then after execution of the transaction, the database must be back to its consistent state.

Isolation: Each transaction is considered independent of other transactions. That is, the execution of multiple transactions concurrently will have the same effect as if they had been executed one after the other. But isolation does not ensure which transaction will execute first.

Durability: The changes made to the database by a successful transaction persist even after a system failure.


Next Topic :Transaction State in DBMS