Database Recovery deals with restoring the database to a correct state in the event of a failure.Various storage that holds data and they include main memory, magnetic disk, magnetic tape and optical disks. Failure that could make the DBMS require recovery includes:
1. System crashes (Software & Hardware) 2. media failures 3. application software error 4. natural physical disaster 5. unintentional distraction 6. sabotage 7. Programming Exemption
Levels of backup
a. Full database backup b. Differential backup c. Transaction log backup
Transaction recovery comprises of the following:
? Write-ahead protocol ? Redundant transaction logs ? Database buffers ? Database checkpoints
There are two basic features for transaction recovery they are
1. Deferred-write and Deferred-update
? Changes are written to the transaction log ? Database updated after transaction reaches commit point
2. Write-through
? Immediately updated during execution ? Before the transaction reaches its commit point ? The transaction log is also updated ? If transaction fails, database uses log information to ROLLBACK