Académique Documents
Professionnel Documents
Culture Documents
Database Recovery
1
Muhammad Asghar Khan
Database Recovery (1/8)
2
Database Recovery (2/8)
1. Backup Facilities
• Backup facility should produce a backup copy of the
entire database
• Backup copy is produced at least once per day
• Backup copy should be saved in safe place
3
Database Recovery (3/8)
4
Database Recovery (4/8)
Database Database
Transaction
(Current) Change
Log
Log
Database
(Backup)
5
Database Recovery (5/8)
• Transitional Log
• Contains a record of essential data for each transaction that is
processed against a database
• Record may include the transaction ID, time of transaction, user ID
or system ID, input data values, record accessed or record modified
4. Recovery Manager
• A module of DBMS that restores the database to a correct
condition when a failure occurs and resumes processing
user requests
9
Types of Recovery Procedures (1/6)
10
Types of Recovery Procedures (2/6)
Switch
• In this type of technique the database must be mirrored
• The most recent copy (say, from previous day) is restored and all
transactions that have occurred since that copy are restored from
transaction log
Database
(With
Changes) Database
DBMS (Without
Changes)
Before
Image
13
Types of Recovery Procedures (5/6)
Database
(Without
Changes) Database
DBMS (With
Changes)
After
Image
15