SlideShare une entreprise Scribd logo
1  sur  20
BACKUP AND RECOVERY IN
DATABASE MANAGEMENT SYSTEM
Presented By:
BAIVABI NAYAK
WHAT IS BACKUP?
• Backup is an additional copy of data that can be used for
restore and recovery purposes.
• The backup copy is used when the primary copy is lost or
corrupted.
• This backup copy can be created by:
1. simply copying data(there can be one or more
copies).
2. mirroring data (the copy is always updated with
whatever is written to the primary copy).
TYPES OF BACKUP
1. FULL BACKUP:
As the name implies, a full backup is when every
single file and folder in the system is backed up. A full
backup takes longer and requires more space than
other types of backups but the process of restoring lost
data from backup is much faster.
2. INCREMENTAL BACKUP:
With incremental backup, only the initial backup is a full
one. Subsequent backups only stores changes that were made
since the previous backup. The process of restoring lost data
from backup is longer but the backup process is muck quicker.
3. DIFFERENTIAL BACKUP:
It is similar to the incremental backup. With both, the
initial backup is full and subsequent backup only store changes
made to files since the last backup. This type of backup
requires more storage space than incremental backup does,
however, but it also allows for a faster restore time.
4. MIRROR BACKUP:
A mirror backup, as the name implies, is when an exact
copy is made of the source data. The advantage of mirror
backup as opposed to full, incremental, or differential backups,
is that you’re not storing old, obsolete files. When obsolete
files are deleted, they disappear from the mirror the mirror
backup as well when the system back up. The downside to
mirror backup is that if files are accidentally deleted, they can
be lost from the backup is well if the deletion isn’t discovered
before the next scheduled backup.
THE NEED FOR DATABASE BACKUP
1. The backup can be performed in any of the several ways:
- Use SQL to create backup tables and copy
data into them.
- Use an implementation-defined mechanism
that backs up the whole database or
portions of it.
- Using DBMS installation.
LOG FILE
1. The DBMS maintains a special file called log file to keep
track of database transactions.
2. It may contain the following:
- transaction identifier
- type of log record
- identifier of data item affected by the database
action.
- before-image of the data item which means its
value before change.
- after-image of the data item which means the
value after change.
- log management information.
CHECK POINTING
1. Check pointing is the synchronization between the database
and the transaction log file.
2. Check points involves the following operations:
- writing all log records in main memory to
secondary storage.
- writing the modified blocks in the database
buffers to secondary storage.
- writing a check point record to log the file.
WHAT IS RECOVERY?
 Database recovery can be very complex task.
 Recovery involves much more than simply restoring an image
of the data as it appeared at some earlier point in time.
 A database recovery involves bringing a data back to its state
at(or before) the time of the problem.
 Simply stated, a successful recovery is one where you get the
application data to the state you want it- whether that state is
how it was last week , yesterday or just a moment ago.
THE NEED FOR RECOVERY
 There are many types of failure that can affect database
processing.
 Some causes of failures are as follows:
-system crashes
-media failures
- application software errors
- natural physical disasters
- carelessness
- sabotage
 A DBMS should provide the following facilities to assist with
recovery:
- a backup mechanism
- a logging factors
- a checkpoint facility
- a recovery manager
RECOVERY TECHNIQUES
 The recovery technique that must be selected is dependent on
the extent of the damage that has occurred to the database.
- if the database has been extensively
damaged , for example, a disk head crash
has occurred and destroyed the database.
- if the database has not been physically
damaged but has become inconsistent.
 Using the deferred update
- in the deferred update protocol, the updates
are not written to the database until after a
a transaction has reached its commit point.
 In this protocol, the log file is used as follows:
- write the transaction start record the log.
- write a log record containing the entire log
data specified previously.
- write a transaction commit log record.
- if the transaction aborts, ignore the log
records for the transaction and do not
perform the writes.
 Using the immediate update
- in the immediate update protocol, the
immediate updates are applied to the
database as they occur without waiting to
reach the commit point.
 In this protocol, the log file is used as follows:
- write the transaction start record to the log.
- write a record containing the necessary data
to the log file.
- write the updates to the database buffers.
- write a transaction commit record to the log.
FACTORS INFLUENCING THE
RECOVERY DURATION
 The smaller the size of the component that need to be
recovered, the shorter the recovery process will be.
 Recovering at the partition level can lessen recovery
duration. Sometimes a failure that would otherwise impact
an entire database object can be limited to impacting only a
single partition.
 Keeping image copy backups and log archive files on
disk(instead of tape or CD or DVD) can speed up the
recovery process.
 Test your image copy backups to make sure they are valid.
 Automate your backup and recovery procedures to the
greatest extent possible.
 Database with few independencies can minimize the
duration of a recovery because fewer related database
objects may need to be recovered at the same time.
 Be sure that every DBA understands the recovery
procedures for each database object under his or her
control.
ALTERNATIVES TO BACKUP & RECOVERY
• Standby databases
• Replication
- snapshot
- symmetric replication
• Disk mirroring
THANK YOU…

Contenu connexe

Tendances

file system in operating system
file system in operating systemfile system in operating system
file system in operating systemtittuajay
 
Presentation on backup and recoveryyyyyyyyyyyyy
Presentation on backup and recoveryyyyyyyyyyyyyPresentation on backup and recoveryyyyyyyyyyyyy
Presentation on backup and recoveryyyyyyyyyyyyyTehmina Gulfam
 
Chapter 11 - File System Implementation
Chapter 11 - File System ImplementationChapter 11 - File System Implementation
Chapter 11 - File System ImplementationWayne Jones Jnr
 
Database backup & recovery
Database backup & recoveryDatabase backup & recovery
Database backup & recoveryMustafa Khan
 
Allocation methods continuous method.47
Allocation methods continuous method.47 Allocation methods continuous method.47
Allocation methods continuous method.47 myrajendra
 
Recovery in Multi database Systems
Recovery in Multi database SystemsRecovery in Multi database Systems
Recovery in Multi database SystemsMoutasm Tamimi
 
Directory implementation and allocation methods
Directory implementation and allocation methodsDirectory implementation and allocation methods
Directory implementation and allocation methodssangrampatil81
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oraclesadegh salehi
 
deadlock handling
deadlock handlingdeadlock handling
deadlock handlingSuraj Kumar
 
03 backup-and-recovery
03 backup-and-recovery03 backup-and-recovery
03 backup-and-recoveryhunny garg
 
Database recovery techniques
Database recovery techniquesDatabase recovery techniques
Database recovery techniquespusp220
 
Overview of physical storage media
Overview of physical storage mediaOverview of physical storage media
Overview of physical storage mediaSrinath Sri
 
Backup And Recovery
Backup And RecoveryBackup And Recovery
Backup And RecoveryWynthorpe
 
File Protection in Operating System
File Protection in Operating SystemFile Protection in Operating System
File Protection in Operating SystemMeghaj Mallick
 
Operating Systems: Virtual Memory
Operating Systems: Virtual MemoryOperating Systems: Virtual Memory
Operating Systems: Virtual MemoryDamian T. Gordon
 

Tendances (20)

file system in operating system
file system in operating systemfile system in operating system
file system in operating system
 
Presentation on backup and recoveryyyyyyyyyyyyy
Presentation on backup and recoveryyyyyyyyyyyyyPresentation on backup and recoveryyyyyyyyyyyyy
Presentation on backup and recoveryyyyyyyyyyyyy
 
File system
File systemFile system
File system
 
Deadlock in database
Deadlock in databaseDeadlock in database
Deadlock in database
 
Chapter 11 - File System Implementation
Chapter 11 - File System ImplementationChapter 11 - File System Implementation
Chapter 11 - File System Implementation
 
Database backup & recovery
Database backup & recoveryDatabase backup & recovery
Database backup & recovery
 
Allocation methods continuous method.47
Allocation methods continuous method.47 Allocation methods continuous method.47
Allocation methods continuous method.47
 
Recovery in Multi database Systems
Recovery in Multi database SystemsRecovery in Multi database Systems
Recovery in Multi database Systems
 
Directory implementation and allocation methods
Directory implementation and allocation methodsDirectory implementation and allocation methods
Directory implementation and allocation methods
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oracle
 
deadlock handling
deadlock handlingdeadlock handling
deadlock handling
 
Hard drive partitions
Hard drive partitionsHard drive partitions
Hard drive partitions
 
03 backup-and-recovery
03 backup-and-recovery03 backup-and-recovery
03 backup-and-recovery
 
Database recovery techniques
Database recovery techniquesDatabase recovery techniques
Database recovery techniques
 
Overview of physical storage media
Overview of physical storage mediaOverview of physical storage media
Overview of physical storage media
 
Backup And Recovery
Backup And RecoveryBackup And Recovery
Backup And Recovery
 
File organization
File organizationFile organization
File organization
 
Chapter19
Chapter19Chapter19
Chapter19
 
File Protection in Operating System
File Protection in Operating SystemFile Protection in Operating System
File Protection in Operating System
 
Operating Systems: Virtual Memory
Operating Systems: Virtual MemoryOperating Systems: Virtual Memory
Operating Systems: Virtual Memory
 

Similaire à BACKUP & RECOVERY IN DBMS

Oracle ocp backup exam
Oracle ocp backup examOracle ocp backup exam
Oracle ocp backup examsriram raj
 
Oracle OCP Backup Exam
Oracle OCP Backup ExamOracle OCP Backup Exam
Oracle OCP Backup ExamInprise Group
 
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
 
Backup & Recovery
Backup & RecoveryBackup & Recovery
Backup & RecoveryAbhay Kumar
 
8 i rman_love_it
8 i rman_love_it8 i rman_love_it
8 i rman_love_itAnil Pandey
 
Backups And Recovery
Backups And RecoveryBackups And Recovery
Backups And Recoveryasifmalik110
 
03 Data Recovery - Notes
03 Data Recovery - Notes03 Data Recovery - Notes
03 Data Recovery - NotesKranthi
 
Preventing data loss OS
Preventing data loss OSPreventing data loss OS
Preventing data loss OSerrafazira96
 
Sql server lesson10
Sql server lesson10Sql server lesson10
Sql server lesson10Ala Qunaibi
 
MS SQL Backups explained by a DBA
MS SQL Backups explained by a DBAMS SQL Backups explained by a DBA
MS SQL Backups explained by a DBAWally Pons
 
database backup and recovery
database backup and recoverydatabase backup and recovery
database backup and recoverysdrhr
 
Backup and recovery in sql server database
Backup and recovery in sql server databaseBackup and recovery in sql server database
Backup and recovery in sql server databaseAnshu Maurya
 
Presentation recovery manager (rman) configuration and performance tuning ...
Presentation    recovery manager (rman) configuration and performance tuning ...Presentation    recovery manager (rman) configuration and performance tuning ...
Presentation recovery manager (rman) configuration and performance tuning ...xKinAnx
 
What is Database Backup? The 3 Important Recovery Techniques from transaction...
What is Database Backup? The 3 Important Recovery Techniques from transaction...What is Database Backup? The 3 Important Recovery Techniques from transaction...
What is Database Backup? The 3 Important Recovery Techniques from transaction...Raj vardhan
 
8 considerations for evaluating disk based backup solutions
8 considerations for evaluating disk based backup solutions8 considerations for evaluating disk based backup solutions
8 considerations for evaluating disk based backup solutionsServium
 

Similaire à BACKUP & RECOVERY IN DBMS (20)

Oracle ocp backup exam
Oracle ocp backup examOracle ocp backup exam
Oracle ocp backup exam
 
Oracle OCP Backup Exam
Oracle OCP Backup ExamOracle OCP Backup Exam
Oracle OCP Backup Exam
 
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
 
Backup & Recovery
Backup & RecoveryBackup & Recovery
Backup & Recovery
 
8 i rman_love_it
8 i rman_love_it8 i rman_love_it
8 i rman_love_it
 
Backups And Recovery
Backups And RecoveryBackups And Recovery
Backups And Recovery
 
Apps rollback patches1
Apps rollback patches1Apps rollback patches1
Apps rollback patches1
 
03 Data Recovery - Notes
03 Data Recovery - Notes03 Data Recovery - Notes
03 Data Recovery - Notes
 
Preventing data loss OS
Preventing data loss OSPreventing data loss OS
Preventing data loss OS
 
DBMS Vardhaman.pdf
DBMS Vardhaman.pdfDBMS Vardhaman.pdf
DBMS Vardhaman.pdf
 
Sql server lesson10
Sql server lesson10Sql server lesson10
Sql server lesson10
 
IMSDB - DBRC
IMSDB - DBRCIMSDB - DBRC
IMSDB - DBRC
 
MS SQL Backups explained by a DBA
MS SQL Backups explained by a DBAMS SQL Backups explained by a DBA
MS SQL Backups explained by a DBA
 
database backup and recovery
database backup and recoverydatabase backup and recovery
database backup and recovery
 
Backup and recovery in sql server database
Backup and recovery in sql server databaseBackup and recovery in sql server database
Backup and recovery in sql server database
 
Presentation recovery manager (rman) configuration and performance tuning ...
Presentation    recovery manager (rman) configuration and performance tuning ...Presentation    recovery manager (rman) configuration and performance tuning ...
Presentation recovery manager (rman) configuration and performance tuning ...
 
Backup&recovery
Backup&recoveryBackup&recovery
Backup&recovery
 
What is Database Backup? The 3 Important Recovery Techniques from transaction...
What is Database Backup? The 3 Important Recovery Techniques from transaction...What is Database Backup? The 3 Important Recovery Techniques from transaction...
What is Database Backup? The 3 Important Recovery Techniques from transaction...
 
8 considerations for evaluating disk based backup solutions
8 considerations for evaluating disk based backup solutions8 considerations for evaluating disk based backup solutions
8 considerations for evaluating disk based backup solutions
 
Db lec 07_new
Db lec 07_newDb lec 07_new
Db lec 07_new
 

Dernier

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 

Dernier (20)

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 

BACKUP & RECOVERY IN DBMS

  • 1. BACKUP AND RECOVERY IN DATABASE MANAGEMENT SYSTEM Presented By: BAIVABI NAYAK
  • 2. WHAT IS BACKUP? • Backup is an additional copy of data that can be used for restore and recovery purposes. • The backup copy is used when the primary copy is lost or corrupted. • This backup copy can be created by: 1. simply copying data(there can be one or more copies). 2. mirroring data (the copy is always updated with whatever is written to the primary copy).
  • 3. TYPES OF BACKUP 1. FULL BACKUP: As the name implies, a full backup is when every single file and folder in the system is backed up. A full backup takes longer and requires more space than other types of backups but the process of restoring lost data from backup is much faster.
  • 4. 2. INCREMENTAL BACKUP: With incremental backup, only the initial backup is a full one. Subsequent backups only stores changes that were made since the previous backup. The process of restoring lost data from backup is longer but the backup process is muck quicker.
  • 5. 3. DIFFERENTIAL BACKUP: It is similar to the incremental backup. With both, the initial backup is full and subsequent backup only store changes made to files since the last backup. This type of backup requires more storage space than incremental backup does, however, but it also allows for a faster restore time.
  • 6. 4. MIRROR BACKUP: A mirror backup, as the name implies, is when an exact copy is made of the source data. The advantage of mirror backup as opposed to full, incremental, or differential backups, is that you’re not storing old, obsolete files. When obsolete files are deleted, they disappear from the mirror the mirror backup as well when the system back up. The downside to mirror backup is that if files are accidentally deleted, they can be lost from the backup is well if the deletion isn’t discovered before the next scheduled backup.
  • 7. THE NEED FOR DATABASE BACKUP 1. The backup can be performed in any of the several ways: - Use SQL to create backup tables and copy data into them. - Use an implementation-defined mechanism that backs up the whole database or portions of it. - Using DBMS installation.
  • 8. LOG FILE 1. The DBMS maintains a special file called log file to keep track of database transactions. 2. It may contain the following: - transaction identifier - type of log record - identifier of data item affected by the database action. - before-image of the data item which means its value before change.
  • 9. - after-image of the data item which means the value after change. - log management information.
  • 10. CHECK POINTING 1. Check pointing is the synchronization between the database and the transaction log file. 2. Check points involves the following operations: - writing all log records in main memory to secondary storage. - writing the modified blocks in the database buffers to secondary storage. - writing a check point record to log the file.
  • 11. WHAT IS RECOVERY?  Database recovery can be very complex task.  Recovery involves much more than simply restoring an image of the data as it appeared at some earlier point in time.  A database recovery involves bringing a data back to its state at(or before) the time of the problem.  Simply stated, a successful recovery is one where you get the application data to the state you want it- whether that state is how it was last week , yesterday or just a moment ago.
  • 12. THE NEED FOR RECOVERY  There are many types of failure that can affect database processing.  Some causes of failures are as follows: -system crashes -media failures - application software errors - natural physical disasters - carelessness - sabotage
  • 13.  A DBMS should provide the following facilities to assist with recovery: - a backup mechanism - a logging factors - a checkpoint facility - a recovery manager
  • 14. RECOVERY TECHNIQUES  The recovery technique that must be selected is dependent on the extent of the damage that has occurred to the database. - if the database has been extensively damaged , for example, a disk head crash has occurred and destroyed the database. - if the database has not been physically damaged but has become inconsistent.
  • 15.  Using the deferred update - in the deferred update protocol, the updates are not written to the database until after a a transaction has reached its commit point.  In this protocol, the log file is used as follows: - write the transaction start record the log. - write a log record containing the entire log data specified previously. - write a transaction commit log record. - if the transaction aborts, ignore the log records for the transaction and do not perform the writes.
  • 16.  Using the immediate update - in the immediate update protocol, the immediate updates are applied to the database as they occur without waiting to reach the commit point.  In this protocol, the log file is used as follows: - write the transaction start record to the log. - write a record containing the necessary data to the log file. - write the updates to the database buffers. - write a transaction commit record to the log.
  • 17. FACTORS INFLUENCING THE RECOVERY DURATION  The smaller the size of the component that need to be recovered, the shorter the recovery process will be.  Recovering at the partition level can lessen recovery duration. Sometimes a failure that would otherwise impact an entire database object can be limited to impacting only a single partition.  Keeping image copy backups and log archive files on disk(instead of tape or CD or DVD) can speed up the recovery process.  Test your image copy backups to make sure they are valid.
  • 18.  Automate your backup and recovery procedures to the greatest extent possible.  Database with few independencies can minimize the duration of a recovery because fewer related database objects may need to be recovered at the same time.  Be sure that every DBA understands the recovery procedures for each database object under his or her control.
  • 19. ALTERNATIVES TO BACKUP & RECOVERY • Standby databases • Replication - snapshot - symmetric replication • Disk mirroring