Open In App

Why recovery is needed in DBMS

Basically, whenever a transaction is submitted to a DBMS for execution, the operating system is responsible for making sure or to be confirmed that all the operations which need to be performed in the transaction have been completed successfully and their effect is either recorded in the database or the transaction doesn’t affect the database or any other transactions. 

The DBMS must not permit some operation of the transaction T to be applied to the database while other operations of T are not. This basically may happen if a transaction fails after executing some of its operations but before executing all of them. 



Types of Failures

Failures are basically the inability of the database to perform a transaction or any kind of loss to the database. There are basically the following types of failures that may occur and lead to the failure of the transaction such as:

Recovery is an essential feature in Database Management Systems (DBMS) because it ensures that data can be restored to a consistent and correct state in case of failures or errors.



Why Recovery is Required in Database?

Here are some of the reasons why recovery is needed in DBMS.

Recovery is needed in DBMS to ensure data consistency, integrity, and availability in the face of various types of failures and errors.

FAQs on Recovery

1. What is Recovery and why it is needed?

Answer:

Recovery is basically making the database or rebuilding the database after the problem of failures.

2. What is the objective of the database recovery?

Answer: 

The most basic objective of database recovery is to maintain the integrity of the database.

3. What is the use of backup and recovery in DBMS?

Answer:

Backup and Recovery is basically a way to restore critical data in case of a loss.

Article Tags :