SlideShare a Scribd company logo
 Transaction Failure :
› Logical errors
› System errors
 System Crash
 Disk Failure
 Volatile Storage
 Non-Volatile Storage
 Stable Storage
X
Y
A
B
x1
y1
buffer
Buffer Block A
Buffer Block B
input(A)
output(B)
read(X)
write(Y)
disk
work area
of T1
work area
of T2
memory
x2
 Shadow Paging
 Log-based Recovery
Log records are written directly to stable storage.
Log Types:
 <Ti start>
 <Ti, X, V>
 <Ti, X, V1, V2>
 <Ti commit>
 <Ti abort>
 Transactions T0 and T1 (T0 executes before T1):
T0: read (A) T1 : read (C)
A: - A - 50 C:-C- 100
write (A) write (C)
read (B)
B:- B + 50
write (B)
 Below we show the log as it appears at three instances
of time.
 Transactions T0 and T1 (T0 executes before T1):
T0: read (A) T1 : read (C)
A: - A - 50 C:-C- 100
write (A) write (C)
read (B)
B:- B + 50
write (B)
 Below we show the log as it appears at three instances
of time.
Database Recovery

More Related Content

Viewers also liked

Dbms
DbmsDbms
24. Advanced Transaction Processing in DBMS
24. Advanced Transaction Processing in DBMS24. Advanced Transaction Processing in DBMS
24. Advanced Transaction Processing in DBMSkoolkampus
 
Winterwind presentation
Winterwind presentationWinterwind presentation
Winterwind presentationWinterwind
 
Vinyaidees
Vinyaidees Vinyaidees
Vinyaidees
elsv1ny4ls
 
[ELVAS] [CEMITÉRIO DOS INGLESES]
[ELVAS] [CEMITÉRIO DOS INGLESES][ELVAS] [CEMITÉRIO DOS INGLESES]
[ELVAS] [CEMITÉRIO DOS INGLESES]
CORREDORESDEIDEAS
 
[ÉVORA MONTE] [CEMITÉRIO]
[ÉVORA MONTE] [CEMITÉRIO][ÉVORA MONTE] [CEMITÉRIO]
[ÉVORA MONTE] [CEMITÉRIO]
CORREDORESDEIDEAS
 
[ERMITA DE SANTA OLALLA] [CÁCERES]
[ERMITA DE SANTA OLALLA] [CÁCERES][ERMITA DE SANTA OLALLA] [CÁCERES]
[ERMITA DE SANTA OLALLA] [CÁCERES]
CORREDORESDEIDEAS
 
CV Jane Andrews Mar 16
CV Jane Andrews Mar 16CV Jane Andrews Mar 16
CV Jane Andrews Mar 16Jane Andrews
 
Why Power Your Home with Solar
Why Power Your Home with SolarWhy Power Your Home with Solar
Why Power Your Home with Solar
richardkane
 
Database application and design
Database application and designDatabase application and design
Database application and designsieedah
 
[LOS MARES DEL NORTE] [VISTOS DESDE EL OESTE]
[LOS MARES DEL NORTE] [VISTOS DESDE EL OESTE][LOS MARES DEL NORTE] [VISTOS DESDE EL OESTE]
[LOS MARES DEL NORTE] [VISTOS DESDE EL OESTE]
CORREDORESDEIDEAS
 
Υγιή μαλλιά, νύχια & υγιές δέρμα - Genny-Genny Eshop
Υγιή μαλλιά, νύχια & υγιές δέρμα - Genny-Genny EshopΥγιή μαλλιά, νύχια & υγιές δέρμα - Genny-Genny Eshop
Υγιή μαλλιά, νύχια & υγιές δέρμα - Genny-Genny Eshop
Thanos Lentzos
 
Actividad 11 programa educativo
Actividad 11 programa educativoActividad 11 programa educativo
Actividad 11 programa educativoolgadelacanal
 
Transaction management DBMS
Transaction  management DBMSTransaction  management DBMS
Transaction management DBMS
Megha Patel
 
Module2
Module2Module2
Module2
rpclemson
 
NEC PARTE 1
NEC PARTE 1NEC PARTE 1
NEC PARTE 1
WILSON VELASTEGUI
 
Trabajo practico marketing
Trabajo practico marketingTrabajo practico marketing
Trabajo practico marketing
Jose Marquez
 
Raw water treatment
Raw water treatmentRaw water treatment
Raw water treatment
Afzal Zubair
 

Viewers also liked (20)

Dbms
DbmsDbms
Dbms
 
24. Advanced Transaction Processing in DBMS
24. Advanced Transaction Processing in DBMS24. Advanced Transaction Processing in DBMS
24. Advanced Transaction Processing in DBMS
 
Winterwind presentation
Winterwind presentationWinterwind presentation
Winterwind presentation
 
Vinyaidees
Vinyaidees Vinyaidees
Vinyaidees
 
[ELVAS] [CEMITÉRIO DOS INGLESES]
[ELVAS] [CEMITÉRIO DOS INGLESES][ELVAS] [CEMITÉRIO DOS INGLESES]
[ELVAS] [CEMITÉRIO DOS INGLESES]
 
Eegii
EegiiEegii
Eegii
 
[ÉVORA MONTE] [CEMITÉRIO]
[ÉVORA MONTE] [CEMITÉRIO][ÉVORA MONTE] [CEMITÉRIO]
[ÉVORA MONTE] [CEMITÉRIO]
 
[ERMITA DE SANTA OLALLA] [CÁCERES]
[ERMITA DE SANTA OLALLA] [CÁCERES][ERMITA DE SANTA OLALLA] [CÁCERES]
[ERMITA DE SANTA OLALLA] [CÁCERES]
 
CV Jane Andrews Mar 16
CV Jane Andrews Mar 16CV Jane Andrews Mar 16
CV Jane Andrews Mar 16
 
Why Power Your Home with Solar
Why Power Your Home with SolarWhy Power Your Home with Solar
Why Power Your Home with Solar
 
Database application and design
Database application and designDatabase application and design
Database application and design
 
[LOS MARES DEL NORTE] [VISTOS DESDE EL OESTE]
[LOS MARES DEL NORTE] [VISTOS DESDE EL OESTE][LOS MARES DEL NORTE] [VISTOS DESDE EL OESTE]
[LOS MARES DEL NORTE] [VISTOS DESDE EL OESTE]
 
Υγιή μαλλιά, νύχια & υγιές δέρμα - Genny-Genny Eshop
Υγιή μαλλιά, νύχια & υγιές δέρμα - Genny-Genny EshopΥγιή μαλλιά, νύχια & υγιές δέρμα - Genny-Genny Eshop
Υγιή μαλλιά, νύχια & υγιές δέρμα - Genny-Genny Eshop
 
Actividad 11 programa educativo
Actividad 11 programa educativoActividad 11 programa educativo
Actividad 11 programa educativo
 
Transaction management DBMS
Transaction  management DBMSTransaction  management DBMS
Transaction management DBMS
 
Module2
Module2Module2
Module2
 
NEC PARTE 1
NEC PARTE 1NEC PARTE 1
NEC PARTE 1
 
Trabajo practico marketing
Trabajo practico marketingTrabajo practico marketing
Trabajo practico marketing
 
Raw water treatment
Raw water treatmentRaw water treatment
Raw water treatment
 
Macro y microambiente de la mercadotecnia
Macro y microambiente de la mercadotecniaMacro y microambiente de la mercadotecnia
Macro y microambiente de la mercadotecnia
 

Recently uploaded

ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 

Recently uploaded (20)

ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 

Database Recovery