














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Various database recovery techniques including checkpointing, undo/redo logging, and non-quiescent checkpoints. It covers the process of recovery after a crash, the key drawbacks of each technique, and real-world examples. The document also explains how to handle media failure and the importance of consistency in data.
Typology: Slides
1 / 22
This page cannot be seen from the preview
Don't miss anything!















First T1 wrote A,B Last Record Committed a year ago Record (1 year ago) --> STILL, Need to redo after crash!!
2
Crash
Example: what to do at recovery?
4
<T1,A,16> <T1,commit>
Checkpoint <T2,B,17> <T2,commit>
<T3,C,21>
Crash ... ... ... ... ... ...
Start from last checkpoint and move forward in the log file redoing updates for committed transactions.
Key drawbacks:
Rules
handles committed transactions with some changes not yet on disk
handles uncommitted transactions with some chnages already on disk
Non-quiescent Checkpoint for
Undo/Redo
Non-quiescent checkpoint for undo/redo
11
start ckpt active T's: T1,T2,...
end ckpt
Examples what to do at recovery time?
no T1 commit
13
a ...^
Ckpt T 1 ...^
Ckpt end ...^
... b
Example
14
a
b
c
cmt
ckpt- ... end
ckpt-s T 1
Solution
Media failure (loss of non-volatile storage)
17
Solution: Make copies of data!
Example 2 Redundant writes, Single reads
Example 3: DB Dump + Log
20
backup database
active database log