Docsity

Database Systems Homework 6: Recovery and Concurrency Control, Assignments of Deductive Database Systems

Partial preview of the text

Download Database Systems Homework 6: Recovery and Concurrency Control and more Assignments Deductive Database Systems in PDF only on Docsity!

CS411 Database Systems

Fall 2008

HW#

Due: 3:15pm CST, 12/11/

Note: Print your name and NetID in the upper right corner of every page of your submission. Hand in your stapled homework to Donna Coleman in 2106 SC. In case Donna is not in office, slide your homework under the door.

Expect to lose points if your handwritten answer is unclear or misread by the grader.

Problem 1 Recovery (50 points)

(a) The following is a sequence of undo-log records written by two transactions T and U:

<T,A,10> <U,B,20> <T,C,30> <U,D,40> <T,E,50>

Describe the action(s) of the recovery manager based on undo-logging, including changes to both disk and the log, if there is a crash and the last log record to appear on disk is:

(1) ¡Start U¿ (2) ¡T,E,50¿ (3) ¡Commit T¿

(b) Describe the action(s) of the recovery manager based on redo-logging for part(a).