SlideShare a Scribd company logo
3
Most read
8
Most read
13
Most read
Database failure and recovery 1
 Database Failures
 Recovery Schemes:
Shadow Paging and Log-based Recovery,
Recovery wth Concurrent transactions.
There can be a case in database system like any computer system
when database failure happens. When data base fails then its
difficult for users or machines to access the data from data base and
if data base failure is not dealt efficiently then huge loss for
organization can happen because entire business process will stop.
database failure can be defined as inability of the system to provide
required functionality correctly. Database failure can be resulted due
to a variety of reasons such as disk-crash, power failure, software
error or even sabotage.
To see wherever the failure has occurred, we
tend to generalize a failure into numerous
classes, as follows:
 Transaction failure
 System crash
 Disk failure
Database failure and recovery 1
A transaction needs to abort once it fails to
execute or once it reaches to any further
extent from wherever it can’t go to any extent
further. This is often known as transaction
failure wherever solely many transactions or
processes are hurt. The reasons for transaction
failure are:
 Logical errors
 System errors
 Logical errors: Where a transaction cannot complete as a
result of its code error or an internal error condition.
 System errors: Wherever the information system itself
terminates an energetic transaction as a result of the
DBMS isn’t able to execute it, or it’s to prevent due to
some system condition. to Illustrate, just in case of
situation or resource inconvenience, the system aborts an
active transaction.
 There are issues − external to the system − that
will cause the system to prevent abruptly and
cause the system to crash. For instance,
interruptions in power supply might cause the
failure of underlying hardware or software
package failure. Examples might include OS
errors.
 In early days of technology evolution, it had
been a typical drawback wherever hard-disk
drives or storage drives accustomed to failing
oftentimes. Disk failures include the
formation of dangerous sectors,
unreachability to the disk, disk crash or the
other failure, that destroys all or a section of
disk storage.
Database recovery is the process of
restoring the database to a correct
(consistent) state in the event of a failure. In
other words, it is the process of restoring
the database to the most recent consistent
state that existed shortly before the time of
system failure.
 The failure may be the result of a system crash
due to hardware or software errors, a media
failure such as head crash, or a software error in
the application such as a logical error in the
program that is accessing the database.
Recovery restores a database form a given state,
usually inconsistent, to a previously consistent
state.
 The number of recovery techniques that are
used are based on the atomicity property of
transactions.
The storage of data usually includes four types of media with an increasing amount of reliability:
the main memory, the magnetic disk, the magnetic tape, and the optical disk. Many different
forms of failure can affect database processing and/or transaction, and each of them has to be
dealt with differently. Some data failures can affect the main memory only, while others involve
non-volatile or secondary storage also. Among the sources of failure are:
 Due to hardware or software errors, the system crashes, which ultimately resulting in loss of main
memory.
 Failures of media, such as head crashes or unreadable media that results in the loss of portions of
secondary storage.
 There can be application software errors, such as logical errors that are accessing the database
that can cause one or more transactions to abort or fail.
 Natural physical disasters can also occur, such as fires, floods, earthquakes, or power failures.
 Carelessness or unintentional destruction of data or directories by operators or users.
 Damage or intentional corruption or hampering of data (using malicious software or files)
hardware or software facilities.
Every DBMS should offer the following facilities to help
out with the recovery mechanism:
 Backup mechanism makes backup copies at a
specific interval for the database.
 Logging facilities keep tracing the current state of
transactions and any changes made to the database.
 Checkpoint facility allows updates to the database
for getting the latest patches to be made permanent
and keep secure from vulnerability.
 Recovery manager allows the database system for
restoring the database to a reliable and steady-state
after any failure occurs.

More Related Content

PPTX
Recovery Techniques and Need of Recovery
PPTX
Database recovery
PPTX
database recovery techniques
PPTX
BACKUP & RECOVERY IN DBMS
PPT
Database backup and recovery basics
PPTX
Transaction states and properties
PPTX
Recovery techniques
PPTX
Deadlock in database
Recovery Techniques and Need of Recovery
Database recovery
database recovery techniques
BACKUP & RECOVERY IN DBMS
Database backup and recovery basics
Transaction states and properties
Recovery techniques
Deadlock in database

What's hot (20)

PPTX
3 tier data warehouse
 
PPTX
Client server architecture
PPTX
RAID LEVELS
PPTX
serializability in dbms
PPT
program partitioning and scheduling IN Advanced Computer Architecture
PPTX
Macro Processor
PPTX
Overview of physical storage media
PPTX
Congestion control
PPTX
Fault tolerance in distributed systems
PPTX
Lec 7 query processing
PPTX
Message passing in Distributed Computing Systems
PPTX
Challenges of Conventional Systems.pptx
DOC
Distributed Mutual exclusion algorithms
PPTX
DBMS - RAID
PPTX
Multiprocessor system
PPTX
Concurrency Control in Distributed Database.
PPTX
Database System Architectures
PPTX
Computer registers
PPTX
Syntax Analysis in Compiler Design
PPTX
Query processing and optimization (updated)
3 tier data warehouse
 
Client server architecture
RAID LEVELS
serializability in dbms
program partitioning and scheduling IN Advanced Computer Architecture
Macro Processor
Overview of physical storage media
Congestion control
Fault tolerance in distributed systems
Lec 7 query processing
Message passing in Distributed Computing Systems
Challenges of Conventional Systems.pptx
Distributed Mutual exclusion algorithms
DBMS - RAID
Multiprocessor system
Concurrency Control in Distributed Database.
Database System Architectures
Computer registers
Syntax Analysis in Compiler Design
Query processing and optimization (updated)
Ad

Similar to Database failure and recovery 1 (20)

PPTX
backup. the database administration.pptx
PPTX
PPTX
PPT
Tranasaction management
PDF
Db lec 07_new
PDF
DBMS Vardhaman.pdf
PPT
blockchain recovery system presentation part 1
PPTX
Introduction to transaction processing concepts and theory
PPTX
Recovery system
PPT
Lesson08 tm recovery
PPTX
Adbms 34 transaction processing and recovery
PDF
Chapter 7. Database Recovery Techniques.pdf
PPTX
Recovery system
PPTX
PPT
17 Recovery system.ppt
PPTX
BCT 2312 - Chapter 4 - Database Recovery.pptx
PPTX
Backup & Recovery
PPTX
Recovery system
PPTX
database backup and recovery
PDF
Recovery
backup. the database administration.pptx
Tranasaction management
Db lec 07_new
DBMS Vardhaman.pdf
blockchain recovery system presentation part 1
Introduction to transaction processing concepts and theory
Recovery system
Lesson08 tm recovery
Adbms 34 transaction processing and recovery
Chapter 7. Database Recovery Techniques.pdf
Recovery system
17 Recovery system.ppt
BCT 2312 - Chapter 4 - Database Recovery.pptx
Backup & Recovery
Recovery system
database backup and recovery
Recovery
Ad

More from vishal choudhary (20)

PPTX
mobile application using automatin using node ja java on
PPTX
mobile development using node js and java
PPTX
Pixel to Percentage conversion Convert left and right padding of a div to per...
PPTX
esponsive web design means that your website (
PPTX
function in php using like three type of function
PPTX
data base connectivity in php using msql database
PPTX
software evelopment life cycle model and example of water fall model
PPTX
software Engineering lecture on development life cycle
PPTX
strings in php how to use different data types in string
PPTX
OPEN SOURCE WEB APPLICATION DEVELOPMENT question
PPTX
web performnace optimization using css minification
PPTX
web performance optimization using style
PPTX
Data types and variables in php for writing and databse
PPTX
Data types and variables in php for writing
PPTX
Data types and variables in php for writing
PPTX
sofwtare standard for test plan it execution
PPTX
Software test policy and test plan in development
PPTX
function in php like control loop and its uses
PPTX
introduction to php and its uses in daily
PPTX
data type in php and its introduction to use
mobile application using automatin using node ja java on
mobile development using node js and java
Pixel to Percentage conversion Convert left and right padding of a div to per...
esponsive web design means that your website (
function in php using like three type of function
data base connectivity in php using msql database
software evelopment life cycle model and example of water fall model
software Engineering lecture on development life cycle
strings in php how to use different data types in string
OPEN SOURCE WEB APPLICATION DEVELOPMENT question
web performnace optimization using css minification
web performance optimization using style
Data types and variables in php for writing and databse
Data types and variables in php for writing
Data types and variables in php for writing
sofwtare standard for test plan it execution
Software test policy and test plan in development
function in php like control loop and its uses
introduction to php and its uses in daily
data type in php and its introduction to use

Recently uploaded (20)

PPTX
Institutional Correction lecture only . . .
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Basic Mud Logging Guide for educational purpose
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Pre independence Education in Inndia.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
master seminar digital applications in india
PDF
Complications of Minimal Access Surgery at WLH
PDF
01-Introduction-to-Information-Management.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Business Ethics Teaching Materials for college
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
TR - Agricultural Crops Production NC III.pdf
Institutional Correction lecture only . . .
O7-L3 Supply Chain Operations - ICLT Program
Basic Mud Logging Guide for educational purpose
Abdominal Access Techniques with Prof. Dr. R K Mishra
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Supply Chain Operations Speaking Notes -ICLT Program
Anesthesia in Laparoscopic Surgery in India
Microbial diseases, their pathogenesis and prophylaxis
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Pre independence Education in Inndia.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Week 4 Term 3 Study Techniques revisited.pptx
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
master seminar digital applications in india
Complications of Minimal Access Surgery at WLH
01-Introduction-to-Information-Management.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
Business Ethics Teaching Materials for college
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
TR - Agricultural Crops Production NC III.pdf

Database failure and recovery 1

  • 2.  Database Failures  Recovery Schemes: Shadow Paging and Log-based Recovery, Recovery wth Concurrent transactions.
  • 3. There can be a case in database system like any computer system when database failure happens. When data base fails then its difficult for users or machines to access the data from data base and if data base failure is not dealt efficiently then huge loss for organization can happen because entire business process will stop. database failure can be defined as inability of the system to provide required functionality correctly. Database failure can be resulted due to a variety of reasons such as disk-crash, power failure, software error or even sabotage.
  • 4. To see wherever the failure has occurred, we tend to generalize a failure into numerous classes, as follows:  Transaction failure  System crash  Disk failure
  • 6. A transaction needs to abort once it fails to execute or once it reaches to any further extent from wherever it can’t go to any extent further. This is often known as transaction failure wherever solely many transactions or processes are hurt. The reasons for transaction failure are:  Logical errors  System errors
  • 7.  Logical errors: Where a transaction cannot complete as a result of its code error or an internal error condition.  System errors: Wherever the information system itself terminates an energetic transaction as a result of the DBMS isn’t able to execute it, or it’s to prevent due to some system condition. to Illustrate, just in case of situation or resource inconvenience, the system aborts an active transaction.
  • 8.  There are issues − external to the system − that will cause the system to prevent abruptly and cause the system to crash. For instance, interruptions in power supply might cause the failure of underlying hardware or software package failure. Examples might include OS errors.
  • 9.  In early days of technology evolution, it had been a typical drawback wherever hard-disk drives or storage drives accustomed to failing oftentimes. Disk failures include the formation of dangerous sectors, unreachability to the disk, disk crash or the other failure, that destroys all or a section of disk storage.
  • 10. Database recovery is the process of restoring the database to a correct (consistent) state in the event of a failure. In other words, it is the process of restoring the database to the most recent consistent state that existed shortly before the time of system failure.
  • 11.  The failure may be the result of a system crash due to hardware or software errors, a media failure such as head crash, or a software error in the application such as a logical error in the program that is accessing the database. Recovery restores a database form a given state, usually inconsistent, to a previously consistent state.  The number of recovery techniques that are used are based on the atomicity property of transactions.
  • 12. The storage of data usually includes four types of media with an increasing amount of reliability: the main memory, the magnetic disk, the magnetic tape, and the optical disk. Many different forms of failure can affect database processing and/or transaction, and each of them has to be dealt with differently. Some data failures can affect the main memory only, while others involve non-volatile or secondary storage also. Among the sources of failure are:  Due to hardware or software errors, the system crashes, which ultimately resulting in loss of main memory.  Failures of media, such as head crashes or unreadable media that results in the loss of portions of secondary storage.  There can be application software errors, such as logical errors that are accessing the database that can cause one or more transactions to abort or fail.  Natural physical disasters can also occur, such as fires, floods, earthquakes, or power failures.  Carelessness or unintentional destruction of data or directories by operators or users.  Damage or intentional corruption or hampering of data (using malicious software or files) hardware or software facilities.
  • 13. Every DBMS should offer the following facilities to help out with the recovery mechanism:  Backup mechanism makes backup copies at a specific interval for the database.  Logging facilities keep tracing the current state of transactions and any changes made to the database.  Checkpoint facility allows updates to the database for getting the latest patches to be made permanent and keep secure from vulnerability.  Recovery manager allows the database system for restoring the database to a reliable and steady-state after any failure occurs.