
- DBMS Tutorial
- DBMS - Home
- DBMS - Overview
- DBMS - Architecture
- DBMS - Data Models
- DBMS - Data Schemas
- DBMS - Data Independence
- Entity Relationship Model
- DBMS - ER Model Basic Concepts
- DBMS - ER Diagram Representation
- DBMS - Generalization, Aggregation
- Relational Model
- DBMS - Codd's Rules
- DBMS - Relational Data Model
- DBMS - Relational Algebra
- DBMS - ER to Relational Model
- DBMS- SQL Overview
- Relational Database Design
- DBMS - Database Normalization
- DBMS - Database Joins
- Storage and File Structure
- DBMS - Storage System
- DBMS - File Structure
- Indexing and Hashing
- DBMS - Indexing
- DBMS - Hashing
- Transaction And Concurrency
- DBMS - Transaction
- DBMS - Concurrency Control
- DBMS - Deadlock
- Backup and Recovery
- DBMS - Data Backup
- DBMS - Data Recovery
- DBMS Useful Resources
- DBMS - Quick Guide
- DBMS - Useful Resources
- DBMS - Discussion
What are different types of recoverability of schedules(DBMS)?
If any transaction that performs a dirty read operation from an uncommitted transaction and also its committed operation becomes delayed till the uncommitted transaction is either committed or rollback such type of schedules is called as Recoverable Schedules.
Types of recoverable schedules
There are three types of recoverable schedules which are explained below with relevant examples −
- Cascading schedules
- Cascadeless Schedules
- Strict Schedules.
The types of recoverable schedules are given below in form of a chart −
Recoverable schedule
First, let us see an example of a recoverable schedule.
T1 | T2 |
---|---|
R(X) | |
W(X) | |
W(X) | |
R(X) | |
commit | |
Commit |
Here, transaction T2 is reading value written by transaction T1 and the commit of T2 occurs after the commit of T1. Hence, it is a recoverable schedule.
Again the recoverable schedule is divided into cascade less and strict schedule.
- Cascading Schedule
A cascading schedule is classified as a recoverable schedule. A recoverable schedule is basically a schedule in which the commit operation of a particular transaction that performs read operation is delayed until the uncommitted transaction either commits or roll backs.
A cascading rollback is a type of rollback in which if one transaction fails, then it will cause rollback of other dependent transactions. The main disadvantage of cascading rollback is that it can cause CPU time wastage.
Given below is an example of a cascading schedule −
T1 | T2 | T3 | T4 |
---|---|---|---|
Read(A) | |||
Write(A) | |||
Read (A) | |||
Write(A) | |||
Read(A) | |||
Write(A) | |||
Read(A) | |||
Write(A) | |||
Failure |
The above transaction is cascading rollback because of T1 failure, T2 is rollback and rollback of T2 causes T3 to rollback and rollback T3 causes the T4 to rollback.
- Cascadeless schedule
When a transaction is not allowed to read data until the last transaction which has written it is committed or aborted, these types of schedules are called cascadeless schedules.
Given below is an example of a cascadeless schedule −
T1 | T2 |
---|---|
R(X) | |
W(X) | |
W(X) | |
commit | |
R(X) | |
Commit |
Here, the updated value of X is read by transaction T2 only after the commit of transaction T1. Hence, the schedule is cascadeless schedule.
- Strict schedule
Given below is an example of a strict schedule −
T1 | T2 |
---|---|
R(X) | |
R(X) | |
W(X) | |
commit | |
W(X) | |
R(X) | |
Commit |
Here, transaction T2 reads and writes the updated or written value of transaction T1 only after the transaction T1 commits. Hence, the schedule is strict schedule.
The recoverable schedules are represented in the diagram below −
- Related Articles
- What are the different types of schedules in DBMS?
- What are the different types of DBMS?
- What are different types of DBMS languages?
- Characterizing Schedules Based on Recoverability
- Explain the concept of recoverability in DBMS
- Check if the given schedules are view serializable(DBMS)
- What are different types of interrupts?
- What are Different Types of Testing?
- What are different types of Respiration?
- What are different types of plant?
- Calculation of Serial and Non-Serial Schedules in DBMS
- Explain the different types of users who play different roles in DBMS?
- Check whether two schedules are view equal or not(DBMS)
- Explain attributes and the different types of attributes in DBMS?
- What are different types of eating disorders?
