SlideShare a Scribd company logo
TRANSACTION
PROCESSING CONCEPT
DATABASE
MANAGEMENT SYSTEM
SUBMITTED TO:
MS. FATMEEN NAQVI
SUBMITTED BY:
MITALI SHARMA
B.Tech CSE 3rd yr
WHAT IS TRANSACTION?
 A transaction is a set of changes that must all be
made together.
 Collection of operations that form a single logical
unit of work are called TRANSACTIONS.
 A database system must ensure proper execution
of transactions deplete failures.
 It must manage concurrent execution of
transactions to avoid inconsistency.
A transaction is a unit of program execution that accesses
and possibly updates various data items. A program
contains statements of the form begin transaction and
end transaction. The transactions consists of all
operations executed between the begin transaction and
end transaction.
Database in
consistent state
Database in
consistent state
Begin
transaction
End
transaction
Execution of transaction
(In between its execution, database may be
in inconsistent state)
TRNSACTION CONCEPT
A transaction accesses data with a series of Read
and Write operations.
Read operation : Reading of a database object
means that it is, firstly, brought into main memory
from the disk and then its value is copied into a
program variable i.e.,
Disk to
Main memory Program Variableto
Similarly, during write operation, copy of the object is
first modified and then written to disk.
Program Variable
to
Main memory Diskto
Example: Let T be a transaction that transfers $50 from account A
to account B. This transaction can be defined as:
T : read(A)
A:=A-50
write(A)
read(B)
B:=B+50
write(B)
PROPERTIES OF TRANSACTION
There are four important properties of transaction(ACID):
 Atomicity : A transaction is said to be atomic if a
transaction always executes all of its action in one step
or not execute any actions at all.
It implies that either all or none of the transaction’s
operations are performed.
 Consistency : A transaction must preserve the
consistency of a database after its execution. It means
that the execution of a transaction must leave a
database in either its prior stable state or new stable
state.
If a transaction fails then the database must be
returned to its previous state.
If it is successful then the database must reflect new
changes.
 Isolation : It means that the data used during the
execution of a transaction cannot be used by a second
transaction until the first one is completed.
The transactions do not interfere with each other. They
must behave as if they are executed in isolation.
This isolation property of a transaction is used in
multiuser database environments.
 Durability : The effect of a completed or
committed transaction should persist even after
a system’s failure (crash).
It means that once a transaction commits, the
system must guarantee that result of its
operations will never be lost.
It is the responsibility of the recovery subsystem
of DBMS.
S.No. Property Meaning
1. Atomicity All or nothing
2. Consistency No violation of integrity
constraints
3. Isolation Concurrent changes invisible
4. Durability Committed update persist.
So, we can say that:
STATES OF TRANSACTION
A transaction can be in various states as shown below in
figure.
Transaction state diagram.
Active state: It is the initial state. The transaction stays
in this state while it is executing.
Partially committed state: When the final statement
has been executed, we say, transaction is in partially
committed state.
Failed state: When the normal execution can no longer
proceed, we say that the transaction is in a failed state.
Aborted state: A transaction is aborted if the
transaction has been rolled back and the database has
been restored to its state prior to the start of the
transaction.
Committed state: When a transaction has successfully
been completed.
Explanation:- A transaction starts in the active state.
When it finishes its last statement, it enters the
partially committed state. At this time, the
transaction has completed its execution but it is still
possible that it may have to be aborted as the actual
output may still be temporarily residing in the main
memory. DBMS then writes information to disk that
even if the system failure occurs, the update
performed by T can be recreated when the final or last
of this information is written out, the transaction
enters the committed state.
Transaction

More Related Content

What's hot

Transaction Management
Transaction Management Transaction Management
Transaction Management
Visakh V
 
Active database
Active databaseActive database
Active database
Dabbal Singh Mahara
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMSkoolkampus
 
4. concurrency control
4. concurrency control4. concurrency control
4. concurrency controlAbDul ThaYyal
 
Dbms acid
Dbms acidDbms acid
Dbms acid
Zaheer Soomro
 
Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databases
James Serra
 
Transactions in dbms
Transactions in dbmsTransactions in dbms
Transactions in dbms
Nancy Gulati
 
Distributed transaction
Distributed transactionDistributed transaction
Distributed transaction
MohitKothari26
 
Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
Sunita Sahu
 
Acid properties
Acid propertiesAcid properties
Acid properties
NomitaKumawat
 
Middleware
MiddlewareMiddleware
Middleware
Dr. Uday Saikia
 
Database Programming
Database ProgrammingDatabase Programming
Database Programming
Henry Osborne
 
Locking base concurrency control
  Locking base concurrency control  Locking base concurrency control
Locking base concurrency control
Prakash Poudel
 
Flow oriented modeling
Flow oriented modelingFlow oriented modeling
Flow oriented modelingramyaaswin
 
Distributed Transaction
Distributed TransactionDistributed Transaction
Distributed Transaction
Pratik Tambekar
 
Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPT
Trinath
 
Key-Value NoSQL Database
Key-Value NoSQL DatabaseKey-Value NoSQL Database
Key-Value NoSQL Database
Heman Hosainpana
 
Nosql databases
Nosql databasesNosql databases
Nosql databases
ateeq ateeq
 
Introduction to UML
Introduction to UMLIntroduction to UML

What's hot (20)

Distributed database
Distributed databaseDistributed database
Distributed database
 
Transaction Management
Transaction Management Transaction Management
Transaction Management
 
Active database
Active databaseActive database
Active database
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMS
 
4. concurrency control
4. concurrency control4. concurrency control
4. concurrency control
 
Dbms acid
Dbms acidDbms acid
Dbms acid
 
Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databases
 
Transactions in dbms
Transactions in dbmsTransactions in dbms
Transactions in dbms
 
Distributed transaction
Distributed transactionDistributed transaction
Distributed transaction
 
Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
 
Acid properties
Acid propertiesAcid properties
Acid properties
 
Middleware
MiddlewareMiddleware
Middleware
 
Database Programming
Database ProgrammingDatabase Programming
Database Programming
 
Locking base concurrency control
  Locking base concurrency control  Locking base concurrency control
Locking base concurrency control
 
Flow oriented modeling
Flow oriented modelingFlow oriented modeling
Flow oriented modeling
 
Distributed Transaction
Distributed TransactionDistributed Transaction
Distributed Transaction
 
Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPT
 
Key-Value NoSQL Database
Key-Value NoSQL DatabaseKey-Value NoSQL Database
Key-Value NoSQL Database
 
Nosql databases
Nosql databasesNosql databases
Nosql databases
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 

Similar to Transaction

Transaction management
Transaction managementTransaction management
Transaction management
ArchanaMani2
 
Dbms sixth chapter_part-1_2011
Dbms sixth chapter_part-1_2011Dbms sixth chapter_part-1_2011
Dbms sixth chapter_part-1_2011
sumit_study
 
DBMS-chap 2-Concurrency Control
DBMS-chap 2-Concurrency ControlDBMS-chap 2-Concurrency Control
DBMS-chap 2-Concurrency Control
Mukesh Tekwani
 
DBMS UNIT IV.pptx
DBMS UNIT IV.pptxDBMS UNIT IV.pptx
DBMS UNIT IV.pptx
Janagi Raman S
 
Hema rdbms
Hema rdbmsHema rdbms
Hema rdbms
SangeethaSasi1
 
Hema rdbms
Hema rdbmsHema rdbms
Hema rdbms
SanSan149
 
DBMS UNIT 4
DBMS UNIT 4DBMS UNIT 4
DBMS UNIT 4
SURBHI SAROHA
 
Transaction Processing Concept
Transaction Processing ConceptTransaction Processing Concept
Transaction Processing Concept
Nishant Munjal
 
Dbms voc 5 unit
Dbms voc 5 unitDbms voc 5 unit
Dbms voc 5 unit
gurjotkawatra
 
Dbms
DbmsDbms
TRANSACTION MANAGEMENT AND TIME STAMP PROTOCOLS AND BACKUP RECOVERY
TRANSACTION MANAGEMENT AND TIME STAMP PROTOCOLS AND BACKUP RECOVERYTRANSACTION MANAGEMENT AND TIME STAMP PROTOCOLS AND BACKUP RECOVERY
TRANSACTION MANAGEMENT AND TIME STAMP PROTOCOLS AND BACKUP RECOVERY
Rohit Kumar
 
Unit 4 chapter - 8 Transaction processing Concepts (1).pptx
Unit 4 chapter - 8 Transaction processing Concepts (1).pptxUnit 4 chapter - 8 Transaction processing Concepts (1).pptx
Unit 4 chapter - 8 Transaction processing Concepts (1).pptx
Koteswari Kasireddy
 
Transaction states and properties
Transaction states and propertiesTransaction states and properties
Transaction states and properties
Chetan Mahawar
 
Ho20
Ho20Ho20
Transaction Properties(ACID Properties)
Transaction Properties(ACID Properties)Transaction Properties(ACID Properties)
Transaction Properties(ACID Properties)
Yaksh Jethva
 
Presentation on Transaction
Presentation on TransactionPresentation on Transaction
Presentation on Transaction
Rahul Prajapati
 
Transactionsmanagement
TransactionsmanagementTransactionsmanagement
Transactionsmanagement
Sanjeev Gupta
 

Similar to Transaction (20)

Transaction management
Transaction managementTransaction management
Transaction management
 
Dbms sixth chapter_part-1_2011
Dbms sixth chapter_part-1_2011Dbms sixth chapter_part-1_2011
Dbms sixth chapter_part-1_2011
 
DBMS-chap 2-Concurrency Control
DBMS-chap 2-Concurrency ControlDBMS-chap 2-Concurrency Control
DBMS-chap 2-Concurrency Control
 
Job Opportunity
Job OpportunityJob Opportunity
Job Opportunity
 
DBMS UNIT IV.pptx
DBMS UNIT IV.pptxDBMS UNIT IV.pptx
DBMS UNIT IV.pptx
 
Hema rdbms
Hema rdbmsHema rdbms
Hema rdbms
 
Hema rdbms
Hema rdbmsHema rdbms
Hema rdbms
 
DBMS UNIT 4
DBMS UNIT 4DBMS UNIT 4
DBMS UNIT 4
 
Transaction Processing Concept
Transaction Processing ConceptTransaction Processing Concept
Transaction Processing Concept
 
Dbms voc 5 unit
Dbms voc 5 unitDbms voc 5 unit
Dbms voc 5 unit
 
Dbms
DbmsDbms
Dbms
 
TRANSACTION MANAGEMENT AND TIME STAMP PROTOCOLS AND BACKUP RECOVERY
TRANSACTION MANAGEMENT AND TIME STAMP PROTOCOLS AND BACKUP RECOVERYTRANSACTION MANAGEMENT AND TIME STAMP PROTOCOLS AND BACKUP RECOVERY
TRANSACTION MANAGEMENT AND TIME STAMP PROTOCOLS AND BACKUP RECOVERY
 
Unit 4 chapter - 8 Transaction processing Concepts (1).pptx
Unit 4 chapter - 8 Transaction processing Concepts (1).pptxUnit 4 chapter - 8 Transaction processing Concepts (1).pptx
Unit 4 chapter - 8 Transaction processing Concepts (1).pptx
 
Dbms module iii
Dbms module iiiDbms module iii
Dbms module iii
 
Transaction states and properties
Transaction states and propertiesTransaction states and properties
Transaction states and properties
 
Ho20
Ho20Ho20
Ho20
 
Chapter 4 u
Chapter 4 uChapter 4 u
Chapter 4 u
 
Transaction Properties(ACID Properties)
Transaction Properties(ACID Properties)Transaction Properties(ACID Properties)
Transaction Properties(ACID Properties)
 
Presentation on Transaction
Presentation on TransactionPresentation on Transaction
Presentation on Transaction
 
Transactionsmanagement
TransactionsmanagementTransactionsmanagement
Transactionsmanagement
 

Recently uploaded

ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 

Recently uploaded (20)

ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 

Transaction

  • 1. TRANSACTION PROCESSING CONCEPT DATABASE MANAGEMENT SYSTEM SUBMITTED TO: MS. FATMEEN NAQVI SUBMITTED BY: MITALI SHARMA B.Tech CSE 3rd yr
  • 2. WHAT IS TRANSACTION?  A transaction is a set of changes that must all be made together.  Collection of operations that form a single logical unit of work are called TRANSACTIONS.  A database system must ensure proper execution of transactions deplete failures.  It must manage concurrent execution of transactions to avoid inconsistency.
  • 3. A transaction is a unit of program execution that accesses and possibly updates various data items. A program contains statements of the form begin transaction and end transaction. The transactions consists of all operations executed between the begin transaction and end transaction. Database in consistent state Database in consistent state Begin transaction End transaction Execution of transaction (In between its execution, database may be in inconsistent state)
  • 4. TRNSACTION CONCEPT A transaction accesses data with a series of Read and Write operations. Read operation : Reading of a database object means that it is, firstly, brought into main memory from the disk and then its value is copied into a program variable i.e., Disk to Main memory Program Variableto
  • 5. Similarly, during write operation, copy of the object is first modified and then written to disk. Program Variable to Main memory Diskto Example: Let T be a transaction that transfers $50 from account A to account B. This transaction can be defined as: T : read(A) A:=A-50 write(A) read(B) B:=B+50 write(B)
  • 6. PROPERTIES OF TRANSACTION There are four important properties of transaction(ACID):  Atomicity : A transaction is said to be atomic if a transaction always executes all of its action in one step or not execute any actions at all. It implies that either all or none of the transaction’s operations are performed.
  • 7.  Consistency : A transaction must preserve the consistency of a database after its execution. It means that the execution of a transaction must leave a database in either its prior stable state or new stable state. If a transaction fails then the database must be returned to its previous state. If it is successful then the database must reflect new changes.
  • 8.  Isolation : It means that the data used during the execution of a transaction cannot be used by a second transaction until the first one is completed. The transactions do not interfere with each other. They must behave as if they are executed in isolation. This isolation property of a transaction is used in multiuser database environments.
  • 9.  Durability : The effect of a completed or committed transaction should persist even after a system’s failure (crash). It means that once a transaction commits, the system must guarantee that result of its operations will never be lost. It is the responsibility of the recovery subsystem of DBMS.
  • 10. S.No. Property Meaning 1. Atomicity All or nothing 2. Consistency No violation of integrity constraints 3. Isolation Concurrent changes invisible 4. Durability Committed update persist. So, we can say that:
  • 11. STATES OF TRANSACTION A transaction can be in various states as shown below in figure. Transaction state diagram.
  • 12. Active state: It is the initial state. The transaction stays in this state while it is executing. Partially committed state: When the final statement has been executed, we say, transaction is in partially committed state. Failed state: When the normal execution can no longer proceed, we say that the transaction is in a failed state. Aborted state: A transaction is aborted if the transaction has been rolled back and the database has been restored to its state prior to the start of the transaction. Committed state: When a transaction has successfully been completed.
  • 13. Explanation:- A transaction starts in the active state. When it finishes its last statement, it enters the partially committed state. At this time, the transaction has completed its execution but it is still possible that it may have to be aborted as the actual output may still be temporarily residing in the main memory. DBMS then writes information to disk that even if the system failure occurs, the update performed by T can be recreated when the final or last of this information is written out, the transaction enters the committed state.