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
States of Transaction

States of Transaction

Posted on August 19, 2025August 19, 2025 By Rishabh saini No Comments on States of Transaction

States of Transaction

Introduction

A series of actions carried out as a single logical unit is called a transaction in a database. Although it is treated as a unified task, a transaction passes through several distinct stages during its execution. Understanding these states is crucial for ensuring data consistency, reliability, and proper recovery in database systems.

DBMS States of Transaction

The various states of a transaction are explained below:

Active State

The active state is the initial state of every transaction. During this stage, the transaction is actively executing its operations.
Example: Inserting, updating, or deleting a record occurs while the transaction is active. None of the modifications are yet stored in the database permanently.

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

Partially Committed State

When a transaction completes its last action but before the modifications are permanently stored in the database, it enters the partially committed state.
Example: In a total marks calculation scenario, displaying the final marks occurs in the partially committed state. Although the transaction has finished, it has not yet been completely committed to the database.

Committed State

When all of a transaction’s actions are completed successfully and the results are stored in the database in an irreversible manner, the transaction is said to be committed. This condition guarantees that the modifications are permanent and unchangeable.

Failed State

If a transaction encounters an error during execution or violates database constraints, it moves to the failed state.
Example: In the marks calculation scenario, if the database fails to fetch the required records, the transaction cannot complete successfully and enters the failed state.

Aborted State

To preserve database consistency, the database recovery mechanism reverses the modifications made whenever a transaction reaches a failed state.This process is known as aborting the transaction. After aborting, the system can either:

  1. Restart the transaction, or
  2. Kill the transaction entirely

If the transaction fails in the middle of execution, all partial operations are undone to restore the database to its previous consistent state.

Terminated State

The terminated state is the final stage of a transaction. A transaction enters this state after completing its life cycle, either successfully (committed) or unsuccessfully (aborted).

Transaction Lifecycle in a Database

When a transaction starts, it performs its initial operation and enters the active state. Upon completing the last operation, it enters the partially committed state, prompting the DBMS to reflect the changes.

Between the partially committed and committed states, failures such as hardware or logical errors may prevent changes from being fully propagated. This can force the transaction into a failed or aborted state. Failed or aborted transactions may be restarted automatically or resubmitted by users.

To provide control over transactions, many data manipulation languages offer commands such as COMMIT and ROLLBACK, allowing users to define transaction boundaries. Without these commands, the DBMS would handle all operations automatically as a single process.

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

Download New Real Time Projects :–Click here


states of transaction in dbms
states of transaction in dbms diagram
properties of transaction in dbms
transaction state diagram
aborted state in dbms
partially committed state in dbms
acid properties of transaction in dbms
transaction states in dbms with examples
states of transaction example
states of transaction pdf
how many states of transaction

    Post Views: 299
    DBMS Tutorial Tags:dbms - state transition of a transaction, dbms states of transaction, dbms states of transactions, dbms transaction states, failed transaction states, state of transaction in dbms, states of transaction, states of transaction in dbms in hindi, states of transactions, states of transactions in telugu, transaction states, transaction states in database, transaction states in dbms, transaction states in dbms in hindi, transaction states in rdbms, what are transaction states in dbms

    Post navigation

    Previous Post: Best Tour Management System using Django and Bootstrap
    Next Post: Best Online Toy Shop Django Project

    More Related Articles

    ACID Properties in DBMS ACID Properties in DBMS DBMS Tutorial
    Degree of Relations in DBMS Degree of Relations in DBMS DBMS Tutorial
    Lock-Based Protocol Lock-Based Protocol 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,614)
    • Online Shopping System using PHP, MySQL with Free Source Code (5,215)
    • login form in php and mysql , Step-by-Step with Free Source Code (4,869)

    Copyright © 2026 UpdateGadh.

    Powered by PressBook Green WordPress theme