0% found this document useful (0 votes)
239 views

Data Recovery Presentation

Database recovery techniques allow a database to recover from failures while ensuring data availability. These techniques rely on a system log containing transaction information. Major techniques include undoing transactions, deferred updates which don't physically update data until commit, immediate updates which log updates before applying them, buffering, and shadow paging which provides atomicity and durability through a shadow directory. Recovery prevents data loss through undo/redo or backup methods.

Uploaded by

Ayush Sharma
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
239 views

Data Recovery Presentation

Database recovery techniques allow a database to recover from failures while ensuring data availability. These techniques rely on a system log containing transaction information. Major techniques include undoing transactions, deferred updates which don't physically update data until commit, immediate updates which log updates before applying them, buffering, and shadow paging which provides atomicity and durability through a shadow directory. Recovery prevents data loss through undo/redo or backup methods.

Uploaded by

Ayush Sharma
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

DATABASE RECOVERY TECHNIQUES

Database systems, like any other computer


system, are subject to failures but the data stored
in it must be available as and when required.

When a database fails it must possess the facilities for fast


recovery.
Recovery techniques are heavily dependent upon the
existence of a special file known as a system log. It
contains information about the start and end of each
transaction and any updates which occur in
the transaction.
Types of Recovery Techniques

Undoing

Deferred Update

Immediate Update

Buffering

Shadow Paging
Undoing
 If a transaction crashes, then the recovery manager
may undo transactions i.e. reverse the operations
of a transaction. 

 If a transaction crashes, then the recovery manager


may undo transactions i.e. reverse the operations
of a transaction.

 There are two major techniques for recovery from


non-catastrophic transaction failures: deferred
updates and immediate updates.  
Deferred Update
 This technique does not physically update the
database on disk until a transaction has reached its
commit point.

 If a transaction fails before reaching its commit


point, it will not have changed the database in any
way so UNDO is not needed. 

  Hence, a deferred update is also known as the No-


undo/redo algorithm
Immediate Update
  In the immediate update, the database may be
updated by some operations of a transaction
before the transaction reaches its commit point. 

  However, these operations are recorded in a log on


disk before they are applied to the database,
making recovery still possible. 

 This technique is known as undo/redo algorithm.


Shadow Paging

  It provides atomicity and durability.

 A directory with n entries is constructed, where the


ith entry points to the ith database page on the link. 

 When a transaction began executing the current


directory is copied into a shadow directory. 

 When a page is to be modified, a shadow page is


allocated in which changes are made and when it is
ready to become durable
Conclusion To Data Recovery Techniques

 The techniques used to recover the lost data


due to system crash, transaction errors,
viruses, catastrophic failure, incorrect
commands execution etc. are database
recovery techniques.

 To prevent data loss recovery techniques


based on deferred update and immediate
update or backing up data can be used.
THANK YOU

You might also like