Transaction Management- Recovery

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/13

flashcard set

Earn XP

Description and Tags

ICT502

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

14 Terms

1
New cards

Database Recovery

Process of restoring database to a correct state in the event of a failure.

2
New cards

There’s two types of storage, volatile storage and stable storage. How will these storage survive system crashes?

Volatile storage does not survive system crashes.

Stable storage represents information that has been replicated in several nonvolatile storage media with independent failure modes.

3
New cards

Types of failure

  1. System crashes: loss of main memory.

  2. Media failures: loss of parts of secondary storage.

  3. Application software errors.

  4. Natural physical disasters.

  5. Carelessness or unintentional destruction of data or facilities.

  6. Sabotage, or intentional corruption or destruction of data, hardware or software facilities.

4
New cards

What are the two types of storage mentioned?

Volatile (main memory) and nonvolatile (secondary storage).

5
New cards

What is stable storage?

Information replicated in several nonvolatile storage media with independent failure modes.

6
New cards

Recovery facilities (Backing up): What is database backup?

A copy of the database taken regularly and stored separately from the original.

7
New cards

Recovery facilities (Maintaining a journal / log file): What is a log file (journal) used for?

To keep track of changes to the database (INSERT, UPDATE, DELETE) and support recovery.

8
New cards

Recovery facilities (Checkpoint facility): What is a checkpoint?

A point at which all database updates in progress are made permanent (written to disk).

9
New cards

Recovery facilities (Recovery manager): What is the role of the recovery manager?

To restore the database to a consistent state after a failure.

10
New cards

If the database is damaged, what is the recovery process?

Reapply all updates to the backup database using journal.

11
New cards

If the database is inconsistent (but not damaged), what is done?

Undo or redo the updates

12
New cards

Main recovery technique: What is shadow paging?

A method to maintain database consistency by keeping two copies of the database pages:

Current pages: the ones actively being updated.

Shadow pages: a stable copy before the current transaction started.

13
New cards

Main recovery technique: What is deferred update?

Updates are not written to the database until after a transaction has reached its commit point.

Commited: redo from start

Unfinished: do nothing

14
New cards

Main recovery technique: What is immediate update?

Updates are applied to the database as they occured.

Commited: redo from checkpoint

Unfinished: undo from most recent logs