Discuss how the log file (or journal) is a fundamental feature in any recovery mechanism. Explain what is meant by forward and backward recovery and describe how the log file is used in forward and backward recovery. What is the significance of the write-ahead log protocol? How do checkpoints affect the recovery protocol?

What will be an ideal response?


Log file contains before and after-images of updates to the database. Before images can be used to
undo changes to the database (i.e. perform backward recovery); after-images can be used to redo
changes (i.e. perform forward recovery).
Write-ahead log protocol ensures that log records are written before the corresponding write to the
database. Thus, if the system fails before the write occurs after the log record has been written but
before the write to the database, the system can recover using the information in the log file.
Log file also contains a checkpoint record, which can speed up the time for recovery following a
failure.

Computer Science & Information Technology

You might also like to view...

____ is the content that makes up the interior of a shape, line, or character.

A. Fill B. Color C. Texture D. Grain

Computer Science & Information Technology

Problems with GRUB or LILO can cause which of the following problems with Linux? a. Can't run commands as root (superuser). b. Can't boot. c. Can't run backups

d. Can't update Linux.

Computer Science & Information Technology

Match the following file viewers with their typical description:

8. Conversions Plus a. provides for thumbnails and batch editing, and may be run on Windows systems 9. Thumbs Plus b. allows users to access, view, and print any document irrespective of creative platform 10. Quick View Plus c. commercial viewer capable of reading MAC formats

Computer Science & Information Technology

A site license is needed when you purchase software for your home computer. 

Answer the following statement true (T) or false (F)

Computer Science & Information Technology