SlideShare a Scribd company logo
1 of 13
© Copyright 2008 STI - INNSBRUCK www.sti-innsbruck.at
Presentation of
Advance Database
on
Concurrenccy Control & DB Recovery
Designed and Prepared by Rafi Uah & Fazli Mola Jan
Chapter 12 © 2007 by Prentice Hall 2
Database Recovery
 Mechanism for restoring a database
quickly and accurately after loss or
damage
 Recovery facilities:
• Backup Facilities
• Journalizing Facilities
• Checkpoint Facility
• Recovery Manager
Chapter 12 © 2007 by Prentice Hall 3
Back-up Facilities
 Automatic dump facility that produces
backup copy of the entire database
 Periodic backup (e.g. nightly, weekly)
 Backups stored in secure, off-site
location
Chapter 12 © 2007 by Prentice Hall 4
Checkpoint Facilities
 DBMS periodically refuses to accept new
transactions
  system is in a quiet simple
 Database and transaction logs are
synchronized
This allows recovery manager to resume processing
from short period, instead of repeating entire day
Chapter 12 © 2007 by Prentice Hall 5
Concurrency Control
 Problem–in a multiuser environment,
simultaneous access to data can result
in interference and data loss
 Solution–Concurrency Control
 The process of managing simultaneous
operations against a database so that data
integrity is maintained and the operations
do not interfere with each other in a multi-
user environment
Chapter 12 © 2007 by Prentice Hall 6
Concurrency Control
 Process of managing simultaneous
execution of transactions in a shared
database, to ensure the serializability of
transactions, is known as concurrency
control.
Chapter 12 © 2007 by Prentice Hall 7
Concurrency Control Techniques
 Pessimistic concurrency control
 Optimistic concurrency control
Chapter 12 © 2007 by Prentice Hall 8
Pessimistic Concurrency Control
• Pessimistic Concurrency Control
assumes that conflicts will happen
• Pessimistic Concurrency Control
techniques detect conflicts as soon as
they occur and resolve them using
blocking.
Chapter 12 © 2007 by Prentice Hall 9
Optimistic Concurrency Control
• Optimistic Concurrency Control assumes
that conflicts between transactions are
rare.
• Does not require locking
• Transaction executed without
restrictions
Chapter 12 © 2007 by Prentice Hall 10
Concurrency Control Techniques
 Serializability
 Finish one transaction before starting
another
 Locking Mechanisms
 The most common way of achieving
serialization
 Data that is retrieved for the purpose of
updating is locked for the updater
 No other user can perform update until
unlocked
Chapter 12 © 2007 by Prentice Hall 11
Locking Mechanisms
 Locking level:
 Database–The entire database is locked and
become unavailable to other users.This is used
during the backup of the entire Database.
 Table–The entire Table containing a requested
record is locked
 Page–very commonly used
 Record–only the requested row is locked; fairly
commonly used
 Field–only particular field or column is locked;
impractical
Chapter 12 © 2007 by Prentice Hall 12
Locking Mechanisms
 Types of locks:
 Shared lock–Read but no update permitted.
 Exclusive lock–No access permitted. Used when
preparing to update
13

More Related Content

Similar to Fazal rafi.. database concurancy control and recovery

Data & database administration hoffer
Data & database administration   hofferData & database administration   hoffer
Data & database administration hofferMohd Arif
 
Unit no 5 transation processing DMS 22319
Unit no 5 transation processing DMS 22319Unit no 5 transation processing DMS 22319
Unit no 5 transation processing DMS 22319ARVIND SARDAR
 
Module 4 disaster recovery student slides ver 1.0
Module 4 disaster recovery   student slides ver 1.0Module 4 disaster recovery   student slides ver 1.0
Module 4 disaster recovery student slides ver 1.0Aladdin Dandis
 
Creating And Implementing A Data Disaster Recovery Plan
Creating And Implementing A Data Disaster Recovery PlanCreating And Implementing A Data Disaster Recovery Plan
Creating And Implementing A Data Disaster Recovery PlanRishu Mehra
 
Creating And Implementing A Data Disaster Recovery Plan
Creating And Implementing A Data  Disaster  Recovery  PlanCreating And Implementing A Data  Disaster  Recovery  Plan
Creating And Implementing A Data Disaster Recovery PlanRishu Mehra
 
What is active-active
What is active-activeWhat is active-active
What is active-activeSaif Ahmad
 
database recovery techniques
database recovery techniques database recovery techniques
database recovery techniques Kalhan Liyanage
 
8 i rman_love_it
8 i rman_love_it8 i rman_love_it
8 i rman_love_itAnil Pandey
 
Unlocking the Full Power of Your Backup Data with Veritas NetBackup Data Virt...
Unlocking the Full Power of Your Backup Data with Veritas NetBackup Data Virt...Unlocking the Full Power of Your Backup Data with Veritas NetBackup Data Virt...
Unlocking the Full Power of Your Backup Data with Veritas NetBackup Data Virt...Veritas Technologies LLC
 
17855584.ppt
17855584.ppt17855584.ppt
17855584.pptNoorEjaz1
 
The Sun ZFS Backup Appliance
The Sun ZFS Backup ApplianceThe Sun ZFS Backup Appliance
The Sun ZFS Backup Applianceomnidba
 
Hrm database-management-java-project
Hrm database-management-java-projectHrm database-management-java-project
Hrm database-management-java-projectchetanmbhimewal
 
2007-05-23 Cecchet_PGCon2007.ppt
2007-05-23 Cecchet_PGCon2007.ppt2007-05-23 Cecchet_PGCon2007.ppt
2007-05-23 Cecchet_PGCon2007.pptnadirpervez2
 

Similar to Fazal rafi.. database concurancy control and recovery (20)

Chapter 12
Chapter 12Chapter 12
Chapter 12
 
Data & database administration hoffer
Data & database administration   hofferData & database administration   hoffer
Data & database administration hoffer
 
Guide on Raid Data Recovery
Guide on Raid Data RecoveryGuide on Raid Data Recovery
Guide on Raid Data Recovery
 
Unit no 5 transation processing DMS 22319
Unit no 5 transation processing DMS 22319Unit no 5 transation processing DMS 22319
Unit no 5 transation processing DMS 22319
 
Database recovery
Database recoveryDatabase recovery
Database recovery
 
Ch 13 D B Admin
Ch 13  D B  AdminCh 13  D B  Admin
Ch 13 D B Admin
 
Module 4 disaster recovery student slides ver 1.0
Module 4 disaster recovery   student slides ver 1.0Module 4 disaster recovery   student slides ver 1.0
Module 4 disaster recovery student slides ver 1.0
 
Creating And Implementing A Data Disaster Recovery Plan
Creating And Implementing A Data Disaster Recovery PlanCreating And Implementing A Data Disaster Recovery Plan
Creating And Implementing A Data Disaster Recovery Plan
 
Creating And Implementing A Data Disaster Recovery Plan
Creating And Implementing A Data  Disaster  Recovery  PlanCreating And Implementing A Data  Disaster  Recovery  Plan
Creating And Implementing A Data Disaster Recovery Plan
 
What is active-active
What is active-activeWhat is active-active
What is active-active
 
database recovery techniques
database recovery techniques database recovery techniques
database recovery techniques
 
8 i rman_love_it
8 i rman_love_it8 i rman_love_it
8 i rman_love_it
 
7.ppt
7.ppt7.ppt
7.ppt
 
Unlocking the Full Power of Your Backup Data with Veritas NetBackup Data Virt...
Unlocking the Full Power of Your Backup Data with Veritas NetBackup Data Virt...Unlocking the Full Power of Your Backup Data with Veritas NetBackup Data Virt...
Unlocking the Full Power of Your Backup Data with Veritas NetBackup Data Virt...
 
Data Guard25 August
Data Guard25 AugustData Guard25 August
Data Guard25 August
 
17855584.ppt
17855584.ppt17855584.ppt
17855584.ppt
 
The Sun ZFS Backup Appliance
The Sun ZFS Backup ApplianceThe Sun ZFS Backup Appliance
The Sun ZFS Backup Appliance
 
Hrm database-management-java-project
Hrm database-management-java-projectHrm database-management-java-project
Hrm database-management-java-project
 
DBMS unit-5.pdf
DBMS unit-5.pdfDBMS unit-5.pdf
DBMS unit-5.pdf
 
2007-05-23 Cecchet_PGCon2007.ppt
2007-05-23 Cecchet_PGCon2007.ppt2007-05-23 Cecchet_PGCon2007.ppt
2007-05-23 Cecchet_PGCon2007.ppt
 

Recently uploaded

Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixingviprabot1
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage examplePragyanshuParadkar1
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture designssuser87fa0c1
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIkoyaldeepu123
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 

Recently uploaded (20)

Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixing
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage example
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture design
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AI
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 

Fazal rafi.. database concurancy control and recovery

  • 1. © Copyright 2008 STI - INNSBRUCK www.sti-innsbruck.at Presentation of Advance Database on Concurrenccy Control & DB Recovery Designed and Prepared by Rafi Uah & Fazli Mola Jan
  • 2. Chapter 12 © 2007 by Prentice Hall 2 Database Recovery  Mechanism for restoring a database quickly and accurately after loss or damage  Recovery facilities: • Backup Facilities • Journalizing Facilities • Checkpoint Facility • Recovery Manager
  • 3. Chapter 12 © 2007 by Prentice Hall 3 Back-up Facilities  Automatic dump facility that produces backup copy of the entire database  Periodic backup (e.g. nightly, weekly)  Backups stored in secure, off-site location
  • 4. Chapter 12 © 2007 by Prentice Hall 4 Checkpoint Facilities  DBMS periodically refuses to accept new transactions   system is in a quiet simple  Database and transaction logs are synchronized This allows recovery manager to resume processing from short period, instead of repeating entire day
  • 5. Chapter 12 © 2007 by Prentice Hall 5 Concurrency Control  Problem–in a multiuser environment, simultaneous access to data can result in interference and data loss  Solution–Concurrency Control  The process of managing simultaneous operations against a database so that data integrity is maintained and the operations do not interfere with each other in a multi- user environment
  • 6. Chapter 12 © 2007 by Prentice Hall 6 Concurrency Control  Process of managing simultaneous execution of transactions in a shared database, to ensure the serializability of transactions, is known as concurrency control.
  • 7. Chapter 12 © 2007 by Prentice Hall 7 Concurrency Control Techniques  Pessimistic concurrency control  Optimistic concurrency control
  • 8. Chapter 12 © 2007 by Prentice Hall 8 Pessimistic Concurrency Control • Pessimistic Concurrency Control assumes that conflicts will happen • Pessimistic Concurrency Control techniques detect conflicts as soon as they occur and resolve them using blocking.
  • 9. Chapter 12 © 2007 by Prentice Hall 9 Optimistic Concurrency Control • Optimistic Concurrency Control assumes that conflicts between transactions are rare. • Does not require locking • Transaction executed without restrictions
  • 10. Chapter 12 © 2007 by Prentice Hall 10 Concurrency Control Techniques  Serializability  Finish one transaction before starting another  Locking Mechanisms  The most common way of achieving serialization  Data that is retrieved for the purpose of updating is locked for the updater  No other user can perform update until unlocked
  • 11. Chapter 12 © 2007 by Prentice Hall 11 Locking Mechanisms  Locking level:  Database–The entire database is locked and become unavailable to other users.This is used during the backup of the entire Database.  Table–The entire Table containing a requested record is locked  Page–very commonly used  Record–only the requested row is locked; fairly commonly used  Field–only particular field or column is locked; impractical
  • 12. Chapter 12 © 2007 by Prentice Hall 12 Locking Mechanisms  Types of locks:  Shared lock–Read but no update permitted.  Exclusive lock–No access permitted. Used when preparing to update
  • 13. 13