Professional Documents
Culture Documents
Advanced Databases
Agenda
Define backup
Discuss Backup Terminology
Explain various backup and restore
options in Oracle
Demonstrate backups in Oracle
Advanced Databases
Question: What is a
Backup?
Advanced Databases
Backup
A procedure for making extra
copies of data for the purpose of
restoration in case of loss or
damage.
Guide to Oracle 10g
Advanced Databases
Backup Terminology
On-line
Off-line
Off-Site
Hot Backup
Cold Backup
Full Backup
Incremental Backup
Differential Backup
Backup Window
Backup Job
Data Compression
Data Deduplication
Data Encryption
Advanced Databases
Types of Backup
A full backup (level 0) is a complete copy of a
partition.
An incremental backup (level 1) is an archive of
only the files that have changed since the last full
backup.
A differential backup (level 2, 3, etc) is an
archive of only the file that have changed since the
last backup (not necessarily full backup.
Backu
p
Sun
(F)
Mon
Full
2TB
2TB
Incr.
2TB
1GB
Diff
2TB
1GB
Tue
Wed
Thu
2TB
2TB
Guide
to Oracle
10g 2TB
Fri
Sat
2TB
2TB
1.2GB
1.6GB
1.9GB
2.3GB
2.8GB
0.2GB
0.4GB
0.3GB
0.4GB
0.5GB
Advanced Databases
Short-Sighted Backups
Why?
Why are each of these a bad backup
strategy? Advantages /
Disadvantages?
Only taking Cold, Full Backups
One Full Offsite backup
Just hot backups
Guide
to Oracle 10gdifferentials
Full backups
monthly,
daily.
Advanced Databases
Recovery
Restore Entire tablespaces
Build test / dev environments from restores
Recover missing / erroneous data in tables.
Advanced Databases
Parameter file
Control files
Datafiles
Not redo logs
10
11
Database Recovery
Process of restoring database from
either cold or hot backup files
Necessary after database failure
Cold backup recovery:
Shut down database
Restore backed up control file and
datafiles to database server
Restart database
Advanced Databases
12
Database Recovery
(continued)
Hot backup recovery:
Recover database to point at which last
hot backup created
Use control trace file to generate new
copy of control file
Restore backup copies of datafiles
Perform media recovery
Guide to Oracle 10g
Advanced Databases
13
14
Hot backups
Complex to perform
Better suited for dynamic, mission-critical
databases
15
Questions
Advanced Databases
16