Posts

What is a Recoverability

1 min read

 

Recoverability of Schedule

Sometimes a transaction may not execute completely due to a software issue, system crash or hardware failure. In that case, the failed transaction has to be rollback. But some other transaction may also have used value produced by the failed transaction. So we also have to rollback those transactions.


DBMS Recoverability of Schedule

The above table 1 shows a schedule which has two transactions. T1 reads and writes the value of A and that value is read and written by T2. T2 commits but later on, T1 fails. Due to the failure, we have to rollback T1. T2 should also be rollback because it reads the value written by T1, but T2 can't be rollback because it already committed. So this type of schedule is known as irrecoverable schedule.

Irrecoverable schedule: The schedule will be irrecoverable if Tj reads the updated value of Ti and Tj committed before Ti commit.


DBMS Recoverability of Schedule

The above table 2 shows a schedule with two transactions. Transaction T1 reads and writes A, and that value is read and written by transaction T2. But later on, T1 fails. Due to this, we have to rollback T1. T2 should be rollback because T2 has read the value written by T1. As it has not committed before T1 commits so we can rollback transaction T2 as well. So it is recoverable with cascade rollback.

Recoverable with cascading rollback: The schedule will be recoverable with cascading rollback if Tj reads the updated value of Ti. Commit of Tj is delayed till commit of Ti.


DBMS Recoverability of Schedule

The above Table 3 shows a schedule with two transactions. Transaction T1 reads and write A and commits, and that value is read and written by T2. So this is a cascade less recoverable schedule.H,HM

You may like these posts

  •  Vorolatile Storage vs Non-Volatile StageVolatile StorageThis is a type of computer memory that remains while there is power and the data is lost when power is switched off. A…
  •  B+ File OrganizationB+ tree file organization is the advanced method of an indexed sequential access method. It uses a tree-like structure to store records in File.It uses th…
  •  Indexed sequential access method (ISAM)ISAM method is an advanced sequential file organization. In this method, records are stored in the file using the primary key. An index…
  •  What is a storage device?A storage device is a kind of hardware, which is also known as storage, storage medium, digital storage, or storage media that has the ability to sto…
  •  Cluster file organizationWhen the two or more records are stored in the same file, it is known as clusters. These files will have two or more tables in the same data block, a…
  •  RAIDRAID refers to redundancy array of the independent disk. It is a technology which is used to connect multiple secondary storage devices for increased performance, data re…

Post a Comment

© 2025DBMS. The Best Codder All rights reserved. Distributed by