- Transaction Failure- It is basically due to Logical errors and System errors.
- System Crash- These are issues that will cause the system to prevent abruptly and cause the system to crash. It can be due to interruption in electricity or software failure.
- Disk Failure- Disk failures include the formation of dangerous sectors, unreachability to the disk, disk crash, or the other failure, that destroys all or a section of disk storage.
Recovery Techniques
Here are some forms of techniques, which may facilitate a database management system in recovering as well as maintaining the atomicity of a transaction:
- Maintaining the logs of every transaction
- Redo and Undo phase
Log-based recovery- The log is a sequence of records, which maintains the records of actions performed by dealing. The log file is unbroken on a stable storage media. When a transaction enters the system and starts execution, it writes a log regarding it. It has these fields:
• Transaction identifier is the unique identifier of the transaction that performed the write operation.
• Data-item identifier is the unique identifier of the data item written. Typically, it is the location on disk of the data item.
• Old value is the value of the data item prior to the write.
• New value is the value that the data item will have after the write.
0 Comments
Doubts? Please let our team know So that we can serve you better.