3: Recovery Flashcards

1
Q

What is recovery and what is it used for ?

A

Used in an event of failure that may leave the DB in an inconsistent state.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When may a failure occur?

A

At any point, including the period when data held in buffers is being written to disk for permanent storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How is a transaction log used ?

A

The recovery manager establishes the status of any update operations performed by a transaction that may be affected by failure in the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Name the two types of recovery technique ?

A
  • Deferred Recovery

- Immediate Recovery

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which technique favours applying updates to the database (i.e. ‘to disk’, ‘to secondary storage’) when the write operation is performed?

A

Immediate Recovery

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which technique employs ‘force-writing’ of the log to disk in order to preserve the Before-Image (i.e. the old values of the database)?

A

Immediate Recovery

How well did you know this?
1
Not at all
2
3
4
5
Perfectly