Google Answers Logo
View Question
 
Q: Database 4 ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: Database 4
Category: Computers
Asked by: eksolutions-ga
List Price: $10.00
Posted: 04 Dec 2002 14:22 PST
Expires: 03 Jan 2003 14:22 PST
Question ID: 119322
Please answer the following questions briefly:

a.	What are the properties required of LSNs?
b.	What are the fields in an update log record?
c.	What are redoable log records?
d.	What are the differences between update log records and CLRs?
Answer  
Subject: Re: Database 4
Answered By: maniac-ga on 04 Dec 2002 17:14 PST
Rated:5 out of 5 stars
 
Hello Eksolutions,

a. LSN's (or Log Sequence Numbers) must be
 - unique
 - always increasing

b. Fields in an update log record includes:
 - PrevLSN
 - Transaction Id (or XID)
 - Type (update)
 - pageID
 - length
 - offset
 - before-image
 - after-image

c. Redoable log records generally refer to actions that must be
"redone" as part of crash recovery. Starting at page 18 of the first
reference below there is a good illustration and explanation of the
difference between redoable and undone updates and how they are used
in crash recovery.

d. Update log records are as described above. A Compensation Log
Record (or CLR) records "Undo" actions and are never "undone". You
write a CLR before you restore the old value of a page (and thus you
log even in crash recovery). It generally has an additional field -
"undo next LSN" to refer to the next LSN to be undone.

If the acronyms are not correct - please use a clarification request
for get a better answer.

For reference material, search with phrases such as
  database LSN CLR update redoable log records

Material for this answer was drawn primarily from
  http://www.cs.colorado.edu/~rick/Classes/3287/Lectures/lec8_bw.pdf
[a PDF of a powerpoint presentation]
and
  http://www.cs.ndsu.nodak.edu/~vshi/cs366/Lectures/ch20.html

  --Maniac
eksolutions-ga rated this answer:5 out of 5 stars

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy