SlideShare a Scribd company logo
1 of 30
Post.Graduate Govt Gulberge College For
Women,Lahore
Subimitted to: Ma'am Furwa Ali
Submitted by:
Sidra Tahir 1922110043
Alisha 1922110002
NidaFfatima 1922110027
Tyyaba 1922110047
Nayyab Mir 1922110025
Aneela 1922110006
Ruqia Naz 1922110032
Taimul Tosha 1922110046
Areeka 1922110009
Sawera 1922110039
Subject: Database Managment System
Department: BS(COMPUTER SCIENCE)
Session : 2019-2023
Presentation Topic: OVERVIEW OF DATABASE BACKUP AND RECOVERY TECHNIQUES
Database Backup
part 1
Definition:
• Database backup is the process of backing up the operational
state, architecture and stored data of database software. It
enables the creation of a duplicate instance or copy of a
database in case the primary database crashes, is corrupted or
is lost.
Examples:
• User error
• Hardware failure
• Catastrophic event
How we can backup of data in database:
• The different methods of backup in a database are:
• Transaction log
• Full Backup
• Diffrential backup
Why we need database backup?
Backups help to restore computer devices during the process of
disaster recovery and restore data after files have undergone
damage or deletion. Database backups are essential for protection
against data loss that can completely disrupt business operations.
Types Of Backup
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.
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 much quicker.
Differential backup
Differential backup is similar to incremental backup. With both, the initial backup is full and
subsequent backups 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.
Error inBackup
Whatiserrorinbackup?
❖ There is a failure in preparing the backup image of one of the volume in the backup
set.
❖ If specified file or data is not found while restoring a data in full backup is called
Error in backup.
❖ ailure in preparing the backup image of one of the volume in the backup set.
❖ If specified file or data is not found while restoring a data in full backup is called
Error in backup.
Common Causes Of Error
Media Failure
● Failure of disk drive
● Failure of disk controller
● Deletion or curruption of database file
Infrastructure Failure
● Tape disk ,libraries
● disk arrays and backup server and network can
faier
● Deletion or curruption of database file
Software updates
● Incompatibilities between backup software and new version of applications Human
Error
● Invalid path
● Deciding inconsistent device to store data in spite of recommented device
Cyberattacks
● Hackers can delete data
Database recovery:
Definition:
Database recovery means recovering the data when it get
deleted , damaged or hacked accidentally.
part 2
Explanation:
1. Database recovery comes in the limelight when data loss takes place due to
certain factors which includes accidental , deleting data , partition loss , window
reinstalltion accidental formatting of the hard drive.
2. Data recovery software will recover the hard to access data even if the storage
device has stopped working.
Causes of recovery:
1. Electro mechanical failure
2. Natural disaster
3. Computer virus
4. Data corruption
5. Computer crime
6. Human error
TYPES OF DATABASE FAILURE
System
failure
Hardware
failure
Tansaction
failure
Add your words here
Software
failure
1 Hardware failure
Hardware failure may include:
. Memory errors
. Disk sectors
. Disk fuul errors
. Disk craches
2 Software failure
Software failure may include failure related to software's such as
. Operating system
. DBMS software( MY SQL, IBM ,FOX PRO, DB2, ORACLE)etc.
. Application software
3 System failure
System craches due to:
.Hardware
.Software error, resulting in the loss of main memory
4 Recovery from transaction failure
means that the database is restored to the most recent consistent state just before the
time of failure to do this, the system must keep information obout the change that were
applied to data items by the various transaction, this information is kept in system log.
backup transaction
recovery
Solution Of Database Failure
Stable Storage:
stable storege is a storage where we can store same data more
then one computer if one computer is damage because of some reasons than we can
restore data with the help of remaining computers.
pc 1
pc 2 pc 3
Performance of recovery techniques:-
1.Log based recovery
2.Shadow paging
Log based recovery:-
• Log is a sequence of log records, recording all the update activities
in DB.
• Fields:-
• #Transaction Identifier: T start
• Data item identifier: T X,10,15
• Old value: T abort (X=10)
• New value: T commit (X=15)
Transaction. Log
• (a=b=1000)
• To:read(a)
• a=a-50
• Write(a)
• Read(b)
• b=b+50
• Write(b)
• To start
• To a,1000,950
• To b,1000,1050
• To commit
Shadow paging:-
• It is a technique used to achieve the atomic and durable transactions and
provides the ability to manipulate pages in a database.
• In shadow paging,need to maintain 2 pages table:
• Current page table.
• Shadow page table.
• When transactions begin,the current page is copied to shadow
page.(Both page table are identical.)
• The current page table copy data to shadow page and then it copy it to
disk.
Why Backup and Recovery is important
Backup copies allow data to be restored from an earlier point in time to
help the business recover from an unplanned event. Storing the copy of
the data on separate medium is critical to protect against primary data
loss or corruption.
Backup and Recovery with RMAN
The most noteworthy are:
 Incremental backups, which provide more compact backups (storing only changed blocks) and
faster datafile media recovery (reducing the need to apply redo during datafile media recovery)
• Block media recovery, in which a datafile with only a small number of corrupt data blocks can be
repaired without being taken offline or restored from backup
• Unused block compression, where RMAN can in some cases skip unused datafile blocks during
backups
• Binary compression, which uses a compression mechanism integrated into the Oracle database
server to reduce the size of backups
• Encrypted backups, which uses encryption capabilities integrated into the Oracle database to
store backups in an encrypted format
Data Definition Language
part 3
Definition:
“Data definition language is a type of SQL language.It is used to create and
modify the structure of dba object in database.These database object includes
views,schema,table,indexes etc.
Purposes and uses of ddl:
• It is used to describe the fields and record in db table.
• Ddl are the sets of commands which are used to
create,update,delete,structure of db.
• These commands are not for end users but used by db designer and DBA.
Example:
EMPLOYEE
ID NO. ENAME AGE CITY
1 ali 45 lahore
FUNCTIONS OF DDL
 DDL(Data Definition Language) : DDL or Data Definition Language actually consists of
the SQL commands that can be used to define the database schema. It simply deals with
descriptions of the database schema and is used to create and modify the structure of
database objects in the database.
 Examples of DDL commands:

 CREATE – is used to create the database or its objects (like table, index, function, views,
store procedure and triggers).
 DROP – is used to delete objects from the database.
 ALTER-is used to alter the structure of the database.
 TRUNCATE–is used to remove all records from a table, including all spaces allocated for
the records are removed.
database backup and recovery

More Related Content

What's hot

Understanding DB2 Optimizer
Understanding DB2 OptimizerUnderstanding DB2 Optimizer
Understanding DB2 Optimizerterraborealis
 
10 Problems with your RMAN backup script - whitepaper
10 Problems with your RMAN backup script - whitepaper10 Problems with your RMAN backup script - whitepaper
10 Problems with your RMAN backup script - whitepaperYury Velikanov
 
Getting Started with Kubernetes
Getting Started with Kubernetes Getting Started with Kubernetes
Getting Started with Kubernetes VMware Tanzu
 
Analytics in a Day Virtual Workshop
Analytics in a Day Virtual WorkshopAnalytics in a Day Virtual Workshop
Analytics in a Day Virtual WorkshopCCG
 
Introduction to Docker - 2017
Introduction to Docker - 2017Introduction to Docker - 2017
Introduction to Docker - 2017Docker, Inc.
 
Kubernetes Helm (Boulder Kubernetes Meetup, June 2016)
Kubernetes Helm (Boulder Kubernetes Meetup, June 2016)Kubernetes Helm (Boulder Kubernetes Meetup, June 2016)
Kubernetes Helm (Boulder Kubernetes Meetup, June 2016)Matt Butcher
 
Helm – The package manager for Kubernetes
Helm – The package manager for KubernetesHelm – The package manager for Kubernetes
Helm – The package manager for KubernetesFabianRosenthal1
 
Optimizing Delta/Parquet Data Lakes for Apache Spark
Optimizing Delta/Parquet Data Lakes for Apache SparkOptimizing Delta/Parquet Data Lakes for Apache Spark
Optimizing Delta/Parquet Data Lakes for Apache SparkDatabricks
 
Understanding Kubernetes
Understanding KubernetesUnderstanding Kubernetes
Understanding KubernetesTu Pham
 
AWS CloudFormation Intrinsic Functions and Mappings
AWS CloudFormation Intrinsic Functions and Mappings AWS CloudFormation Intrinsic Functions and Mappings
AWS CloudFormation Intrinsic Functions and Mappings Adam Book
 
stupid-simple-kubernetes-final.pdf
stupid-simple-kubernetes-final.pdfstupid-simple-kubernetes-final.pdf
stupid-simple-kubernetes-final.pdfDaniloQueirozMota
 
Docker and kubernetes_introduction
Docker and kubernetes_introductionDocker and kubernetes_introduction
Docker and kubernetes_introductionJason Hu
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)Satishbabu Gunukula
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetesRishabh Indoria
 
10 ways to improve your rman script
10 ways to improve your rman script10 ways to improve your rman script
10 ways to improve your rman scriptMaris Elsins
 
Downscaling: The Achilles heel of Autoscaling Apache Spark Clusters
Downscaling: The Achilles heel of Autoscaling Apache Spark ClustersDownscaling: The Achilles heel of Autoscaling Apache Spark Clusters
Downscaling: The Achilles heel of Autoscaling Apache Spark ClustersDatabricks
 
Everything You Need To Know About Persistent Storage in Kubernetes
Everything You Need To Know About Persistent Storage in KubernetesEverything You Need To Know About Persistent Storage in Kubernetes
Everything You Need To Know About Persistent Storage in KubernetesThe {code} Team
 
Espresso: LinkedIn's Distributed Data Serving Platform (Paper)
Espresso: LinkedIn's Distributed Data Serving Platform (Paper)Espresso: LinkedIn's Distributed Data Serving Platform (Paper)
Espresso: LinkedIn's Distributed Data Serving Platform (Paper)Amy W. Tang
 

What's hot (20)

Understanding DB2 Optimizer
Understanding DB2 OptimizerUnderstanding DB2 Optimizer
Understanding DB2 Optimizer
 
10 Problems with your RMAN backup script - whitepaper
10 Problems with your RMAN backup script - whitepaper10 Problems with your RMAN backup script - whitepaper
10 Problems with your RMAN backup script - whitepaper
 
Getting Started with Kubernetes
Getting Started with Kubernetes Getting Started with Kubernetes
Getting Started with Kubernetes
 
Analytics in a Day Virtual Workshop
Analytics in a Day Virtual WorkshopAnalytics in a Day Virtual Workshop
Analytics in a Day Virtual Workshop
 
Introduction to Docker - 2017
Introduction to Docker - 2017Introduction to Docker - 2017
Introduction to Docker - 2017
 
Apache Spark Architecture
Apache Spark ArchitectureApache Spark Architecture
Apache Spark Architecture
 
Kubernetes Helm (Boulder Kubernetes Meetup, June 2016)
Kubernetes Helm (Boulder Kubernetes Meetup, June 2016)Kubernetes Helm (Boulder Kubernetes Meetup, June 2016)
Kubernetes Helm (Boulder Kubernetes Meetup, June 2016)
 
Helm – The package manager for Kubernetes
Helm – The package manager for KubernetesHelm – The package manager for Kubernetes
Helm – The package manager for Kubernetes
 
Optimizing Delta/Parquet Data Lakes for Apache Spark
Optimizing Delta/Parquet Data Lakes for Apache SparkOptimizing Delta/Parquet Data Lakes for Apache Spark
Optimizing Delta/Parquet Data Lakes for Apache Spark
 
Understanding Kubernetes
Understanding KubernetesUnderstanding Kubernetes
Understanding Kubernetes
 
AWS CloudFormation Intrinsic Functions and Mappings
AWS CloudFormation Intrinsic Functions and Mappings AWS CloudFormation Intrinsic Functions and Mappings
AWS CloudFormation Intrinsic Functions and Mappings
 
stupid-simple-kubernetes-final.pdf
stupid-simple-kubernetes-final.pdfstupid-simple-kubernetes-final.pdf
stupid-simple-kubernetes-final.pdf
 
Docker and kubernetes_introduction
Docker and kubernetes_introductionDocker and kubernetes_introduction
Docker and kubernetes_introduction
 
Hands-on Helm
Hands-on Helm Hands-on Helm
Hands-on Helm
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetes
 
10 ways to improve your rman script
10 ways to improve your rman script10 ways to improve your rman script
10 ways to improve your rman script
 
Downscaling: The Achilles heel of Autoscaling Apache Spark Clusters
Downscaling: The Achilles heel of Autoscaling Apache Spark ClustersDownscaling: The Achilles heel of Autoscaling Apache Spark Clusters
Downscaling: The Achilles heel of Autoscaling Apache Spark Clusters
 
Everything You Need To Know About Persistent Storage in Kubernetes
Everything You Need To Know About Persistent Storage in KubernetesEverything You Need To Know About Persistent Storage in Kubernetes
Everything You Need To Know About Persistent Storage in Kubernetes
 
Espresso: LinkedIn's Distributed Data Serving Platform (Paper)
Espresso: LinkedIn's Distributed Data Serving Platform (Paper)Espresso: LinkedIn's Distributed Data Serving Platform (Paper)
Espresso: LinkedIn's Distributed Data Serving Platform (Paper)
 

Similar to database backup and recovery

Oaklands college: Protecting your data.
Oaklands college: Protecting your data.Oaklands college: Protecting your data.
Oaklands college: Protecting your data.JISC RSC Eastern
 
my final ppresenntation.pptx
my final ppresenntation.pptxmy final ppresenntation.pptx
my final ppresenntation.pptxAlifAlAshik2
 
High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2Mario Redón Luz
 
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
 
Oracle Database Backup
Oracle Database BackupOracle Database Backup
Oracle Database BackupHandy_Backup
 
Database Design and Implementation
Database Design and ImplementationDatabase Design and Implementation
Database Design and ImplementationChristian Reina
 
Unit-I mech for studendts for btech .ppt
Unit-I mech for studendts for btech .pptUnit-I mech for studendts for btech .ppt
Unit-I mech for studendts for btech .pptDeepakShakya39
 
Less14 Br Concepts
Less14 Br ConceptsLess14 Br Concepts
Less14 Br Conceptsvivaankumar
 
DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)Gustavo Rene Antunez
 
Oracle OCP Backup Exam
Oracle OCP Backup ExamOracle OCP Backup Exam
Oracle OCP Backup ExamInprise Group
 
[db tech showcase Tokyo 2015] D25:The difference between logical and physical...
[db tech showcase Tokyo 2015] D25:The difference between logical and physical...[db tech showcase Tokyo 2015] D25:The difference between logical and physical...
[db tech showcase Tokyo 2015] D25:The difference between logical and physical...Insight Technology, Inc.
 
Oracle ocp backup exam
Oracle ocp backup examOracle ocp backup exam
Oracle ocp backup examsriram raj
 
Combining IBM Real-time Compression and IBM ProtecTIER Deduplication
Combining IBM Real-time Compression and IBM ProtecTIER DeduplicationCombining IBM Real-time Compression and IBM ProtecTIER Deduplication
Combining IBM Real-time Compression and IBM ProtecTIER DeduplicationIBM India Smarter Computing
 
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...Maaz Anjum
 
24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes
24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes
24 HOP edición Español - Sql server 2014 backup encryption - Percy ReyesSpanishPASSVC
 
Oracle 12 c new-features
Oracle 12 c new-featuresOracle 12 c new-features
Oracle 12 c new-featuresNavneet Upneja
 

Similar to database backup and recovery (20)

Oaklands college: Protecting your data.
Oaklands college: Protecting your data.Oaklands college: Protecting your data.
Oaklands college: Protecting your data.
 
my final ppresenntation.pptx
my final ppresenntation.pptxmy final ppresenntation.pptx
my final ppresenntation.pptx
 
High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2
 
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
 
Oracle Database Backup
Oracle Database BackupOracle Database Backup
Oracle Database Backup
 
Database Design and Implementation
Database Design and ImplementationDatabase Design and Implementation
Database Design and Implementation
 
Data administration
Data administrationData administration
Data administration
 
Unit-I mech for studendts for btech .ppt
Unit-I mech for studendts for btech .pptUnit-I mech for studendts for btech .ppt
Unit-I mech for studendts for btech .ppt
 
Less14 Br Concepts
Less14 Br ConceptsLess14 Br Concepts
Less14 Br Concepts
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
ora_sothea
ora_sotheaora_sothea
ora_sothea
 
DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)
 
Oracle OCP Backup Exam
Oracle OCP Backup ExamOracle OCP Backup Exam
Oracle OCP Backup Exam
 
[db tech showcase Tokyo 2015] D25:The difference between logical and physical...
[db tech showcase Tokyo 2015] D25:The difference between logical and physical...[db tech showcase Tokyo 2015] D25:The difference between logical and physical...
[db tech showcase Tokyo 2015] D25:The difference between logical and physical...
 
Oracle ocp backup exam
Oracle ocp backup examOracle ocp backup exam
Oracle ocp backup exam
 
Combining IBM Real-time Compression and IBM ProtecTIER Deduplication
Combining IBM Real-time Compression and IBM ProtecTIER DeduplicationCombining IBM Real-time Compression and IBM ProtecTIER Deduplication
Combining IBM Real-time Compression and IBM ProtecTIER Deduplication
 
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
 
24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes
24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes
24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes
 
Oracle 12 c new-features
Oracle 12 c new-featuresOracle 12 c new-features
Oracle 12 c new-features
 
DATABASE ADMINSTRATION
DATABASE ADMINSTRATION DATABASE ADMINSTRATION
DATABASE ADMINSTRATION
 

More from sdrhr

VIRUSES.pptx
VIRUSES.pptxVIRUSES.pptx
VIRUSES.pptxsdrhr
 
probability reasoning
probability reasoningprobability reasoning
probability reasoningsdrhr
 
c#(loops,arrays)
c#(loops,arrays)c#(loops,arrays)
c#(loops,arrays)sdrhr
 
GSM channels wireless
GSM channels  wirelessGSM channels  wireless
GSM channels wirelesssdrhr
 
Social
SocialSocial
Socialsdrhr
 
social service
 social service social service
social servicesdrhr
 
Group8 ppt
Group8 pptGroup8 ppt
Group8 pptsdrhr
 
Agrobactrium mediated transformation
Agrobactrium mediated transformationAgrobactrium mediated transformation
Agrobactrium mediated transformationsdrhr
 
GENE MUTATION
       GENE  MUTATION       GENE  MUTATION
GENE MUTATIONsdrhr
 
Virtual function
Virtual functionVirtual function
Virtual functionsdrhr
 
Defects
DefectsDefects
Defectssdrhr
 
computer ethics
computer ethicscomputer ethics
computer ethicssdrhr
 

More from sdrhr (12)

VIRUSES.pptx
VIRUSES.pptxVIRUSES.pptx
VIRUSES.pptx
 
probability reasoning
probability reasoningprobability reasoning
probability reasoning
 
c#(loops,arrays)
c#(loops,arrays)c#(loops,arrays)
c#(loops,arrays)
 
GSM channels wireless
GSM channels  wirelessGSM channels  wireless
GSM channels wireless
 
Social
SocialSocial
Social
 
social service
 social service social service
social service
 
Group8 ppt
Group8 pptGroup8 ppt
Group8 ppt
 
Agrobactrium mediated transformation
Agrobactrium mediated transformationAgrobactrium mediated transformation
Agrobactrium mediated transformation
 
GENE MUTATION
       GENE  MUTATION       GENE  MUTATION
GENE MUTATION
 
Virtual function
Virtual functionVirtual function
Virtual function
 
Defects
DefectsDefects
Defects
 
computer ethics
computer ethicscomputer ethics
computer ethics
 

Recently uploaded

vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Bookvip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Bookmanojkuma9823
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024thyngster
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改yuu sss
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理e4aez8ss
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAbdelrhman abooda
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 

Recently uploaded (20)

vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Bookvip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 

database backup and recovery

  • 1.
  • 2. Post.Graduate Govt Gulberge College For Women,Lahore Subimitted to: Ma'am Furwa Ali Submitted by: Sidra Tahir 1922110043 Alisha 1922110002 NidaFfatima 1922110027 Tyyaba 1922110047 Nayyab Mir 1922110025 Aneela 1922110006 Ruqia Naz 1922110032 Taimul Tosha 1922110046 Areeka 1922110009 Sawera 1922110039 Subject: Database Managment System Department: BS(COMPUTER SCIENCE) Session : 2019-2023 Presentation Topic: OVERVIEW OF DATABASE BACKUP AND RECOVERY TECHNIQUES
  • 4. Definition: • Database backup is the process of backing up the operational state, architecture and stored data of database software. It enables the creation of a duplicate instance or copy of a database in case the primary database crashes, is corrupted or is lost. Examples: • User error • Hardware failure • Catastrophic event
  • 5. How we can backup of data in database: • The different methods of backup in a database are: • Transaction log • Full Backup • Diffrential backup Why we need database backup? Backups help to restore computer devices during the process of disaster recovery and restore data after files have undergone damage or deletion. Database backups are essential for protection against data loss that can completely disrupt business operations.
  • 7. 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. 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 much quicker. Differential backup Differential backup is similar to incremental backup. With both, the initial backup is full and subsequent backups 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.
  • 8. Error inBackup Whatiserrorinbackup? ❖ There is a failure in preparing the backup image of one of the volume in the backup set. ❖ If specified file or data is not found while restoring a data in full backup is called Error in backup. ❖ ailure in preparing the backup image of one of the volume in the backup set. ❖ If specified file or data is not found while restoring a data in full backup is called Error in backup.
  • 10. Media Failure ● Failure of disk drive ● Failure of disk controller ● Deletion or curruption of database file Infrastructure Failure ● Tape disk ,libraries ● disk arrays and backup server and network can faier ● Deletion or curruption of database file
  • 11. Software updates ● Incompatibilities between backup software and new version of applications Human Error ● Invalid path ● Deciding inconsistent device to store data in spite of recommented device Cyberattacks ● Hackers can delete data
  • 12.
  • 13. Database recovery: Definition: Database recovery means recovering the data when it get deleted , damaged or hacked accidentally. part 2
  • 14. Explanation: 1. Database recovery comes in the limelight when data loss takes place due to certain factors which includes accidental , deleting data , partition loss , window reinstalltion accidental formatting of the hard drive. 2. Data recovery software will recover the hard to access data even if the storage device has stopped working.
  • 15. Causes of recovery: 1. Electro mechanical failure 2. Natural disaster 3. Computer virus 4. Data corruption 5. Computer crime 6. Human error
  • 16. TYPES OF DATABASE FAILURE System failure Hardware failure Tansaction failure Add your words here Software failure
  • 17. 1 Hardware failure Hardware failure may include: . Memory errors . Disk sectors . Disk fuul errors . Disk craches 2 Software failure Software failure may include failure related to software's such as . Operating system . DBMS software( MY SQL, IBM ,FOX PRO, DB2, ORACLE)etc. . Application software
  • 18. 3 System failure System craches due to: .Hardware .Software error, resulting in the loss of main memory 4 Recovery from transaction failure means that the database is restored to the most recent consistent state just before the time of failure to do this, the system must keep information obout the change that were applied to data items by the various transaction, this information is kept in system log. backup transaction recovery
  • 19. Solution Of Database Failure Stable Storage: stable storege is a storage where we can store same data more then one computer if one computer is damage because of some reasons than we can restore data with the help of remaining computers. pc 1 pc 2 pc 3
  • 20. Performance of recovery techniques:- 1.Log based recovery 2.Shadow paging
  • 21. Log based recovery:- • Log is a sequence of log records, recording all the update activities in DB. • Fields:- • #Transaction Identifier: T start • Data item identifier: T X,10,15 • Old value: T abort (X=10) • New value: T commit (X=15)
  • 22. Transaction. Log • (a=b=1000) • To:read(a) • a=a-50 • Write(a) • Read(b) • b=b+50 • Write(b) • To start • To a,1000,950 • To b,1000,1050 • To commit
  • 23. Shadow paging:- • It is a technique used to achieve the atomic and durable transactions and provides the ability to manipulate pages in a database. • In shadow paging,need to maintain 2 pages table: • Current page table. • Shadow page table. • When transactions begin,the current page is copied to shadow page.(Both page table are identical.) • The current page table copy data to shadow page and then it copy it to disk.
  • 24. Why Backup and Recovery is important Backup copies allow data to be restored from an earlier point in time to help the business recover from an unplanned event. Storing the copy of the data on separate medium is critical to protect against primary data loss or corruption.
  • 25. Backup and Recovery with RMAN The most noteworthy are:  Incremental backups, which provide more compact backups (storing only changed blocks) and faster datafile media recovery (reducing the need to apply redo during datafile media recovery) • Block media recovery, in which a datafile with only a small number of corrupt data blocks can be repaired without being taken offline or restored from backup • Unused block compression, where RMAN can in some cases skip unused datafile blocks during backups • Binary compression, which uses a compression mechanism integrated into the Oracle database server to reduce the size of backups • Encrypted backups, which uses encryption capabilities integrated into the Oracle database to store backups in an encrypted format
  • 27. Definition: “Data definition language is a type of SQL language.It is used to create and modify the structure of dba object in database.These database object includes views,schema,table,indexes etc. Purposes and uses of ddl: • It is used to describe the fields and record in db table. • Ddl are the sets of commands which are used to create,update,delete,structure of db. • These commands are not for end users but used by db designer and DBA.
  • 28. Example: EMPLOYEE ID NO. ENAME AGE CITY 1 ali 45 lahore
  • 29. FUNCTIONS OF DDL  DDL(Data Definition Language) : DDL or Data Definition Language actually consists of the SQL commands that can be used to define the database schema. It simply deals with descriptions of the database schema and is used to create and modify the structure of database objects in the database.  Examples of DDL commands:   CREATE – is used to create the database or its objects (like table, index, function, views, store procedure and triggers).  DROP – is used to delete objects from the database.  ALTER-is used to alter the structure of the database.  TRUNCATE–is used to remove all records from a table, including all spaces allocated for the records are removed.