Strict Serializability and Strict Recoverability of A Schedule
Strict Serializability and Strict Recoverability of A Schedule
AND STRICT
RECOVERABILITY OF A
SCHEDULE
ORACLE AND MS-SQL DBMS
1. Betelhem Mulugeta
2. Hayat Ramadan
3. Kalkidan Dereje
4. Yordanos Tsegaye
Transaction Concept
• A transaction is a unit of program execution that accesses and possibly
updates various data items.
• A transaction must see a consistent database.
• During transaction execution the database may be inconsistent.
• When the transaction is committed, the database must be consistent.
• Two main issues to deal with:
*Failures of various kinds, such as hardware failures and system
Crashes
*Concurrent execution of multiple transactions
SCHEDULES
CLASSIFICATION OF SCHEDULES
Schedules can be classified as on the basis of two types,
• On the basis of Serializability
• On the basis of Recoverability
SERIALIZABILITY
When multiple transactions run concurrently, then it may give rise to
inconsistency of the database.
T1 T2
R(A)
W(A)
R(A)
W(A)
Rollback W(A) COMMIT
2. Cascading Rollback
It is a type of Rollback, when because of the Rollback of one
transaction, Rollback of many other transaction is caused.
T1 T2 T3 T4
EXAMPLE
W(A)
R(A)
W(A)
R(A)
W(A)
R(A)
W(A)
Rollback
• S is strict if each transaction may read and write only items previously
written by committed transactions.
• S is recoverable if each transaction commits only after
all transactions from which it read have committed.
• Allows dirty read
• S avoids cascading rollback if each transaction may read
only those values written by committed transactions.
• Disallows dirty read