Skip to content
  • SiteMap
  • Our Services
  • Frequently Asked Questions (FAQ)
  • Support
  • About Us

UpdateGadh

Update Your Skills.

  • Home
  • Projects
    •  Blockchain projects
    • Python Project
    • Data Science
    •  Ai projects
    • Machine Learning
    • PHP Project
    • React Projects
    • Java Project
    • SpringBoot
    • JSP Projects
    • Java Script Projects
    • Code Snippet
    • Free Projects
  • Tutorials
    • Ai
    • Machine Learning
    • Advance Python
    • Advance SQL
    • DBMS Tutorial
    • Data Analyst
    • Deep Learning Tutorial
    • Data Science
    • Nodejs Tutorial
  • Blog
  • Contact us
  • Toggle search form
Transaction Properties in DBMS

Transaction Properties in DBMS

Posted on August 17, 2025August 17, 2025 By Rishabh saini No Comments on Transaction Properties in DBMS

Transaction Properties in DBMS

When we talk about transactions in a database, it’s important to remember that a single transaction is not just one action—it can consist of multiple operations executed internally. Once a transaction is submitted, it must complete all the operations included within it. After completion, it should notify the user about success or failure along with the changes applied to the database.

However, when multiple users submit transactions concurrently (at the same time), the database might enter an inconsistent state due to overlapping executions. To avoid such situations and ensure data integrity even in the case of concurrent access or system failures, transactions are required to follow four fundamental properties: Atomicity, Consistency, Isolation, and Durability. Together, these are known as the ACID properties.

Machine Learning Tutorial:–Click Here
Data Science Tutorial:-Click Here
Complete Advance AI topics:- CLICK HERE
Deep Learning Tutorial:- Click Here

What is a Transaction?

A transaction is a collection of operations that represent a single logical unit of work in a database. Its purpose is to maintain data integrity and consistency before and after execution. Operations that form a transaction may include:

  • Adding new data
  • Modifying existing data
  • Accessing existing data
  • Or a combination of these

A transaction must adhere to the four ACID properties in order to be considered correct:

  • Atomicity
  • Consistency
  • Isolation
  • Durability

Let’s understand each property in detail.

1. Atomicity

The term “all or nothing” best describes atomicity. It guarantees that either no operations are applied at all or that every operation in a transaction is carried out successfully. Partial execution does not exist.

Key Features of Atomicity:

  • The transaction’s operations must all be finished, or none at all.
  • Maintained despite failures (disk, CPU, software, or deadlocks).
  • The DBMS is in charge of ensuring atomicity.

Atomicity relies on two fundamental operations:

  • Abort: If the transaction fails, all changes are rolled back, leaving the database unchanged.
  • Commit: If the transaction succeeds, all changes become permanent.

Example:

Suppose we transfer ₹100 from account A (₹600) to account B (₹300).

  • After successful execution, balances will be:
    • A = ₹500
    • B = ₹400

However, the database becomes inconsistent if the transaction fails in the middle, for example, if the amount is taken out of A but not added to B. To prevent this, DBMS maintains old values and restores them if execution is incomplete.

2. Consistency

The phrase “no violation of integrity constraints” defines consistency. It guarantees that a transaction moves the database between legitimate states.

  • Before and after a transaction, the database must always abide by its rules, or constraints.
  • A transaction is rejected by the database if it breaks any rules.

Example:

The total balance before and after the transaction should stay the same if the preceding scenario is used:

  • Before transaction: 600 + 300 = ₹900
  • After transaction: 500 + 400 = ₹900

Thus, consistency is maintained. There would be inconsistency if the transaction failed in the middle since the total would not match.

Maintaining consistency is mainly the responsibility of the application programmers, who must enforce constraints during transaction coding.

3. Isolation

Isolation guarantees that one transaction’s operations continue to be separate from another until it is finished. To put it another way, T2 cannot access a data item while T1 is still using it.

This prevents interference between concurrent transactions and is enforced by the Concurrency Control subsystem of the DBMS.

Why Isolation Matters:

Even if atomicity and consistency are preserved individually, concurrent execution may cause issues due to overlapping operations.

Example:

Consider two transactions:

  • T1: Transfer ₹750 from Account A to B
  • T2: Transfer 20% of A’s balance to B

If executed concurrently without isolation, results may vary.

  • In a consistent schedule, total funds remain correct (₹13,000).
  • In an inconsistent schedule, incorrect totals may arise (₹13,250), leading to errors.

Thus, isolation ensures correctness by preventing conflicts between transactions.

4. Durability

Durability guarantees that once a transaction is committed, its results are permanent, even if the system crashes immediately afterward.

  • Changes made by committed transactions survive system failures.
  • The Recovery subsystem of DBMS ensures this property.

DBMS maintains a log file to track all write operations. If the system crashes before writing changes to disk, the log helps restore committed transactions once the system restarts.

Complete Python Course with Advance topics:-Click Here
SQL Tutorial :-Click Here

Download New Real Time Projects :–Click here

Conclusion

Reliable database transactions are built on the foundation of the ACID properties: atomicity, consistency, isolation, and durability. Even in the event of failures or concurrent access, they guarantee that data is accurate, consistent, and recoverable.

In short:

  • Atomicity = All or nothing
  • Consistency = No rule violations
  • Isolation = Independent execution
  • Durability = Changes are permanent

Together, these properties make transactions robust and safeguard databases from inconsistencies, ensuring smooth operations in multi-user and fault-prone environments.

For more insights on databases and system design, stay connected with UpdateGadh.


transaction properties in dbms with examples
transaction in dbms
acid properties in dbms
transaction states in dbms
transaction properties in dbms pdf
transaction properties in dbms geeksforgeeks
transaction properties in dbms w3schools
transaction management in dbms
transaction properties in dbms
explain transaction properties in dbms
define transaction properties in dbms
list out the transaction properties in dbms
transaction properties in dbms with examples
transaction properties in dbms in hindi
transaction properties in dbms pdf
transaction properties in dbms with example
transaction properties in ddb
transaction properties in sql

    Post Views: 308
    DBMS Tutorial Tags:acid properties in a transaction, acid properties in dbms, acid properties in sql transactions, acid properties of transaction in dbms, acid properties of transaction in dbms in hindi, consistency properties in transaction, dbms - acid properties of a transaction, dbms acid properties in hindi, transaction acid properties in hindi, transaction in dbms, transaction processing in dbms, transaction states in dbms, transactions in dbms, types of transaction in dbms

    Post navigation

    Previous Post: Best Leave Management System Using Django & Python
    Next Post: Online Resume Builder using Django

    More Related Articles

    Lock-Based Protocol Lock-Based Protocol DBMS Tutorial
    Understanding Transactions in Databases Understanding Transactions in Databases DBMS Tutorial
    States of Transaction States of Transaction DBMS Tutorial

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    You may also like

    1. What is a Database? Definition, Types, Examples
    2. Difference Between DBMS and RDBMS
    3. ER Design Issues
    4. DBMS Specialization
    5. Relational Model in DBMS
    6. Inclusion Dependency

    Most Viewed Posts

    1. Top Large Language Models in 2025
    2. Online Shopping System using PHP, MySQL with Free Source Code
    3. login form in php and mysql , Step-by-Step with Free Source Code
    4. Flipkart Clone using PHP And MYSQL Free Source Code
    5. News Portal Project in PHP and MySql Free Source Code
    6. User Login & Registration System Using PHP and MySQL Free Code
    7. Top 10 Final Year Project Ideas in Python
    8. Online Bike Rental Management System Using PHP and MySQL
    9. E learning Website in php with Free source code
    10. E-Commerce Website Project in Java Servlets (JSP)
    • AI
    • ASP.NET
    • Blockchain
    • ChatCPT
    • code Snippets
    • Collage Projects
    • Data Science Project
    • Data Science Tutorial
    • DBMS Tutorial
    • Deep Learning Tutorial
    • Final Year Projects
    • Free Projects
    • How to
    • html
    • Interview Question
    • Java Notes
    • Java Project
    • Java Script Notes
    • JAVASCRIPT
    • Javascript Project
    • JSP JAVA(J2EE)
    • Machine Learning Project
    • Machine Learning Tutorial
    • MySQL Tutorial
    • Node.js Tutorial
    • PHP Project
    • Portfolio
    • Python
    • Python Interview Question
    • Python Projects
    • PythonFreeProject
    • React Free Project
    • React Projects
    • Spring boot
    • SQL Tutorial
    • TOP 10
    • Uncategorized
    • Online Examination System in PHP with Source Code
    • AI Chatbot for College and Hospital
    • Job Portal Web Application in PHP MySQL
    • Online Tutorial Portal Site in PHP MySQL — Full Project with Source Code
    • Online Job Portal System in JSP Servlet MySQL

    Most Viewed Posts

    • Top Large Language Models in 2025 (8,613)
    • Online Shopping System using PHP, MySQL with Free Source Code (5,211)
    • login form in php and mysql , Step-by-Step with Free Source Code (4,866)

    Copyright © 2026 UpdateGadh.

    Powered by PressBook Green WordPress theme