Transactions In DBMS “Transaction is a set of

Transactions In DBMS “Transaction is a set of
1 / 1
Transactions In DBMS “Transaction is a set of - slide 1 of 38 Transactions In DBMS “Transaction is a set of - slide 2 of 38 Transactions In DBMS “Transaction is a set of - slide 3 of 38 Transactions In DBMS “Transaction is a set of - slide 4 of 38 Transactions In DBMS “Transaction is a set of - slide 5 of 38 Transactions In DBMS “Transaction is a set of - slide 6 of 38 Transactions In DBMS “Transaction is a set of - slide 7 of 38 Transactions In DBMS “Transaction is a set of - slide 8 of 38 Transactions In DBMS “Transaction is a set of - slide 9 of 38 Transactions In DBMS “Transaction is a set of - slide 10 of 38 Transactions In DBMS “Transaction is a set of - slide 11 of 38 Transactions In DBMS “Transaction is a set of - slide 12 of 38 Transactions In DBMS “Transaction is a set of - slide 13 of 38 Transactions In DBMS “Transaction is a set of - slide 14 of 38 Transactions In DBMS “Transaction is a set of - slide 15 of 38 Transactions In DBMS “Transaction is a set of - slide 16 of 38 Transactions In DBMS “Transaction is a set of - slide 17 of 38 Transactions In DBMS “Transaction is a set of - slide 18 of 38 Transactions In DBMS “Transaction is a set of - slide 19 of 38 Transactions In DBMS “Transaction is a set of - slide 20 of 38 Transactions In DBMS “Transaction is a set of - slide 21 of 38 Transactions In DBMS “Transaction is a set of - slide 22 of 38 Transactions In DBMS “Transaction is a set of - slide 23 of 38 Transactions In DBMS “Transaction is a set of - slide 24 of 38 Transactions In DBMS “Transaction is a set of - slide 25 of 38 Transactions In DBMS “Transaction is a set of - slide 26 of 38 Transactions In DBMS “Transaction is a set of - slide 27 of 38 Transactions In DBMS “Transaction is a set of - slide 28 of 38 Transactions In DBMS “Transaction is a set of - slide 29 of 38 Transactions In DBMS “Transaction is a set of - slide 30 of 38 Transactions In DBMS “Transaction is a set of - slide 31 of 38 Transactions In DBMS “Transaction is a set of - slide 32 of 38 Transactions In DBMS “Transaction is a set of - slide 33 of 38 Transactions In DBMS “Transaction is a set of - slide 34 of 38 Transactions In DBMS “Transaction is a set of - slide 35 of 38 Transactions In DBMS “Transaction is a set of - slide 36 of 38 Transactions In DBMS “Transaction is a set of - slide 37 of 38 Transactions In DBMS “Transaction is a set of - slide 38 of 38
Transactions In DBMS Transaction is a set of operations which are all logically related. or Transaction is a single logical unit of work formed by a set of operations. Operations in Transaction- The main operations in a transaction are-

Related Topics

Download this presentation From Below

"Transactions In DBMS “Transaction is a set of" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Presentation Transcript

01
Transactions In DBMS “Transaction is a set of operations which are all logically related.” or “Transaction is a single logical unit of work formed by a set of operations.”
Operations in Transaction-
The main operations in a transaction are-
1. Read Operation-
Read operation reads the data from the database and then stores it in the buffer in main memory.
For example- Read(A) instruction will read the value of A from the database and will store it in the buffer in main memory.
2. Write Operation-
Write operation writes the updated data value back to the database from the buffer.
For example- Write(A) will write the updated value of A from the buffer to the database.<br>
02
Transaction States
A transaction goes through many different states throughout its life cycle.
These states are called as transaction states.
Transaction states are as follows-









1. Active State-
This is the first state in the life cycle of a transaction.
A transaction is called in an active state as long as its instructions are getting executed.
All the changes made by the transaction now are stored in the buffer in main memory.<br>
03
2. Partially Committed State- After the last instruction of transaction has executed, it enters into a partially committed state.
After entering this state, the transaction is considered to be partially committed.
It is not considered fully committed because all the changes made by the transaction are still stored in the buffer in main memory.

3. Committed State-
After all the changes made by the transaction have been successfully stored into the database, it enters into a committed state.
Now, the transaction is considered to be fully committed.

NOTE-
After a transaction has entered the committed state, it is not possible to roll back the transaction.
In other words, it is not possible to undo the changes that has been made by the transaction.<br>