Most Important Topic For Interview Perspective is ACID properties in DBMS.
So, What is Transaction??
1.Atomicity
Suppose, you are transferring money from your bank account to your friend’s bank account. This transaction to transfer funds from one account to another involves making a withdrawal operation from the first account and a deposit operation on the second. If the deposit operation failed, you don’t want the withdrawal operation to happen either. Otherwise that money would disappear!
Lumping both operations into a single atomic transaction ensures data integrity. This is what is called atomicity in DBMS. It is the property that a transaction is a single indivisible transaction. The individual operations within a transaction either all have to be performed or none will be performed. If any single operation fails then the whole transaction fails. This ensures that the databases are in a valid state at all times.
The transaction management unit of a database management system is responsible for maintaining atomicity transactions on a database.
2.Consistency
3.Isolation
4.Durability
Imagine you have 10 lakh amount in your bank account. The bank database server goes down, all data stored on that server is gone and so your money is gone! So you need durability, a fault free system.
This property ensures that once the transaction has completed execution, the updates and modifications to the database are stored in and written to the disk(of the database server) and they persist permanently even if a system failure occurs.
Organizations, such as banks and hospitals, their very existence depends on the information systems run on databases. The ability to recover 100% of all committed transactions is absolutely crucial. The recovery rate must be 100 percent, not 90 percent or even 99.9 percent. In addition, this recovery must be permanent, meaning all transactions must be reconstructed, even if the database server crashes due to OS failure or power loss.
The recovery management component of the database management system is responsible for maintaining durability in a database.
I hope that much explain you all๐.
Comments
Post a Comment