
- DBMS Tutorial
- DBMS - Home
- DBMS - Overview
- DBMS - Architecture
- DBMS - Data Models
- DBMS - Data Schemas
- DBMS - Data Independence
- Entity Relationship Model
- DBMS - ER Model Basic Concepts
- DBMS - ER Diagram Representation
- DBMS - Generalization, Aggregation
- Relational Model
- DBMS - Codd's Rules
- DBMS - Relational Data Model
- DBMS - Relational Algebra
- DBMS - ER to Relational Model
- DBMS- SQL Overview
- Relational Database Design
- DBMS - Database Normalization
- DBMS - Database Joins
- Storage and File Structure
- DBMS - Storage System
- DBMS - File Structure
- Indexing and Hashing
- DBMS - Indexing
- DBMS - Hashing
- Transaction And Concurrency
- DBMS - Transaction
- DBMS - Concurrency Control
- DBMS - Deadlock
- Backup and Recovery
- DBMS - Data Backup
- DBMS - Data Recovery
- DBMS Useful Resources
- DBMS - Quick Guide
- DBMS - Useful Resources
- DBMS - Discussion
What are the states of transaction in DBMS?
A transaction is a unit of database processing which contains a set of operations. For example, deposit of money, balance enquiry, reservation of tickets etc.
Every transaction starts with delimiters begin transaction and terminates with end transaction delimiters. The set of operations within these two delimiters constitute one transaction.
main() { begin transaction } end transaction
A transaction is divided into states to handle various situations such as failure. It passes through various states during its lifetime. The state of a transaction is defined by the current activity it is performing.
At a particular instant of time, a transaction can be in one of the following state −
- Active − Transaction is executing.
- Failed − Transaction fails to complete successfully.
- Abort − changes made by transaction are cancelled (roll back).
- Partially commit − Final statement of transaction is executed.
- Commit − Transaction completes its execution successfully.
- Terminated − Transaction is finished.
The states of transaction are diagrammatically represented as follows −
A transaction will terminate either when it commits or when it is aborted.
- Related Articles
- What are different transaction isolation levels in DBMS?
- What is transaction processing? Explain the properties of the transaction(DBMS)
- What are the different ways the transaction can be executed(DBMS)?
- What is dirty read in a transaction(DBMS)?
- What are the states of matter?
- Explain check pointing in the transaction management system(DBMS)
- What are the three states of matter?
- What are process states?
- What are the components of DBMS?
- What are the applications of DBMS?
- What are the different states of a Process?\n
- What are the different types of DBMS?
- What are the different status states of REPL in Java 9?
- Explain serial execution or transaction with an example(DBMS)
- What are the process states in Windows and Linux?
