Cp.4 Crash Recovery
Cp.4 Crash Recovery
4 Crash
PL/PGSQL
Recovery
Crash Recovery
1, Transaction Failure:
• There are two types of errors that may lead to transactlon fallure.
They are:
1) System Error: The system has entered an undesirable state as a
result of which a transaction cannot continue with its normal
execution.
2. System Crash:
There is a hardware bug or error In the database software or the
operating system that causes the loss of the content of volatile
storage and leads transaction processing to a halt. The content of
non-volatile storage remains undamaged and is not corrupted.
, Disk Failure:
disk failures disk block losses its content as a result of either a
head failure during a data transfer operation. Copies of the data on
other disks on tertiary media, such as tapes, disks etc., are used to
recover from the failure,
Crash Recovery
Crash recovery is the process by which the database is moved back to a consistent
and usable state. This is done by rolling back incomplete transactions and
completing committed transactions that were still in memory when the crash
occurred
Commit;