SlideShare a Scribd company logo
4
L E C T U R E 4
DBA: BACKUPS &
RECOVERY
AGENDA
• Define backup
• Discuss Backup Terminology
• Explain various backup and restore options in
Oracle
• Demonstrate backups in Oracle
2
3
B A C K U P
QUESTION: WHAT IS A
BACKUP?
4
A P R O C E D U R E F O R M A K I N G E X T R A C O P I E S
O F D A T A F O R T H E P U R P O S E O F
R E S T O R A T I O N I N C A S E O F L O S S D A M A G E .
BACKUP
BACKUP TERMINOLOGY
• Hot Backup
• Cold Backup
• Full Backup
• Incremental Backup
• Differential Backup
• Backup Window
• Backup Job
• On-line
• Off-line
• Off-Site
• Data Compression
• Data Deduplication
• Data Encryption
5
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.
6
Backup Sun (F) Mon Tue Wed Thu Fri Sat
Full 2TB 2TB 2TB 2TB 2TB 2TB 2TB
Incr. 2TB 1GB 1.2GB 1.6GB 1.9GB 2.3GB 2.8GB
Diff 2TB 1GB 0.2GB 0.4GB 0.3GB 0.4GB 0.5GB
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
Full backups monthly, differentials daily.
7
LET’S TALK STRATEGY
• Ideally we’d like to backup everything all the time
and keep it around forever.
• Realistically, we cannot do that.
• You need a combination of short-term and long-
term strategies. For example:
• At least 3 copies of the data, 1 off site.
• Hot backups for convince, cold backups for insurance D/R.
• Test your restore process, at multiple levels.
• Others?
8
DATABASE BACKUP AND RECOVERY
• Important database administration support tasks
include:
• Backup
• Offline/cold
• Online/hot
• Recovery
• Restore Entire tablespaces
• Build test / dev environments from restores
• Recover missing / erroneous data in tables.
9
CREATING OFFLINE (COLD) BACKUPS
1. Shut down database instance
2. Copy specific database files to alternate disk
location
1. Parameter file
2. Control files
3. Datafiles
4. Not redo logs
3. Restart database instance
10
CREATING ONLINE (HOT) BACKUPS
1. Place database instance in ARCHIVELOG
mode
2. Back up control file
3. Back up datafiles
4. Instruct database to write current contents of
redo log files to archive files
- Create backup copies of archive log files
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
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
13
DEMO – START AND STOP ORACLE
• Let’s use OEM to start and stop your Oracle
instance, then create a cold backup
14
ORACLE BACKUP STRATEGIES
• Cold backups
• Simplest to perform
• Satisfactory for databases whose:
• Contents do not change very much
• Users can tolerate downtime while DBA creates cold
backup files
• Hot backups
• Complex to perform
• Better suited for dynamic, mission-critical databases
• If you setup a clustered environment you can
perform cold backups without loss of service.
15
16
?
QUESTIONS

More Related Content

Similar to Oracle Database Administration backup and recovery (20)

PDF
You Oracle Technical Interview
Hossam El-Faxe
 
PPTX
Database Backup and Recovery in DBMS.pptx
muneebwaseem168
 
PPTX
database backup and recovery
sdrhr
 
PDF
MySQL Enterprise Backup - BnR Scenarios
Keith Hollman
 
PPTX
Prevent Recovery Amnesia - Forget The Backups
Chris Bell
 
DOC
Backup and Recovery Procedure
Anar Godjaev
 
PDF
DB2 LUW - Backup and Recovery
imranasayed
 
PDF
Hotbackup
oracle documents
 
PDF
Recovery oracle
Nelson Gonzalez
 
PDF
Real liferecoverypresentation
oracle documents
 
PDF
MySQL Enterprise Backup: Better Very Large Database Backup & Recovery and More!!
Tinku Ajit
 
PPTX
BACKUP & RECOVERY IN DBMS
BaivabiNayak
 
PDF
UKOUG - RMAN Back to Basics - Oct 2017
Zahid Anwar (OCM)
 
PDF
Hjrbur
oracle documents
 
PPSX
MS SQL Backups explained by a DBA
Wally Pons
 
ODP
Pdb my sql backup london percona live 2012
Pythian
 
PPT
Les 02 config
Femi Adeyemi
 
PPT
Less15 backups
Amit Bhalla
 
PDF
MySQL enterprise backup overview
郁萍 王
 
PDF
OSBConf 2016: The Database Backup is done - what next? - by Jörg Brühe
NETWAYS
 
You Oracle Technical Interview
Hossam El-Faxe
 
Database Backup and Recovery in DBMS.pptx
muneebwaseem168
 
database backup and recovery
sdrhr
 
MySQL Enterprise Backup - BnR Scenarios
Keith Hollman
 
Prevent Recovery Amnesia - Forget The Backups
Chris Bell
 
Backup and Recovery Procedure
Anar Godjaev
 
DB2 LUW - Backup and Recovery
imranasayed
 
Hotbackup
oracle documents
 
Recovery oracle
Nelson Gonzalez
 
Real liferecoverypresentation
oracle documents
 
MySQL Enterprise Backup: Better Very Large Database Backup & Recovery and More!!
Tinku Ajit
 
BACKUP & RECOVERY IN DBMS
BaivabiNayak
 
UKOUG - RMAN Back to Basics - Oct 2017
Zahid Anwar (OCM)
 
MS SQL Backups explained by a DBA
Wally Pons
 
Pdb my sql backup london percona live 2012
Pythian
 
Les 02 config
Femi Adeyemi
 
Less15 backups
Amit Bhalla
 
MySQL enterprise backup overview
郁萍 王
 
OSBConf 2016: The Database Backup is done - what next? - by Jörg Brühe
NETWAYS
 

Recently uploaded (20)

PPTX
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
PPTX
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PDF
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
PDF
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
PDF
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
DOCX
Import Data Form Excel to Tally Services
Tally xperts
 
PPTX
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
PPTX
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
PDF
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
PPTX
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PPTX
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
PPTX
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
PDF
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
PPTX
Human Resources Information System (HRIS)
Amity University, Patna
 
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
Import Data Form Excel to Tally Services
Tally xperts
 
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
Human Resources Information System (HRIS)
Amity University, Patna
 
Ad

Oracle Database Administration backup and recovery

  • 1. 4 L E C T U R E 4 DBA: BACKUPS & RECOVERY
  • 2. AGENDA • Define backup • Discuss Backup Terminology • Explain various backup and restore options in Oracle • Demonstrate backups in Oracle 2
  • 3. 3 B A C K U P QUESTION: WHAT IS A BACKUP?
  • 4. 4 A P R O C E D U R E F O R M A K I N G E X T R A C O P I E S O F D A T A F O R T H E P U R P O S E O F R E S T O R A T I O N I N C A S E O F L O S S D A M A G E . BACKUP
  • 5. BACKUP TERMINOLOGY • Hot Backup • Cold Backup • Full Backup • Incremental Backup • Differential Backup • Backup Window • Backup Job • On-line • Off-line • Off-Site • Data Compression • Data Deduplication • Data Encryption 5
  • 6. 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. 6 Backup Sun (F) Mon Tue Wed Thu Fri Sat Full 2TB 2TB 2TB 2TB 2TB 2TB 2TB Incr. 2TB 1GB 1.2GB 1.6GB 1.9GB 2.3GB 2.8GB Diff 2TB 1GB 0.2GB 0.4GB 0.3GB 0.4GB 0.5GB
  • 7. 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 Full backups monthly, differentials daily. 7
  • 8. LET’S TALK STRATEGY • Ideally we’d like to backup everything all the time and keep it around forever. • Realistically, we cannot do that. • You need a combination of short-term and long- term strategies. For example: • At least 3 copies of the data, 1 off site. • Hot backups for convince, cold backups for insurance D/R. • Test your restore process, at multiple levels. • Others? 8
  • 9. DATABASE BACKUP AND RECOVERY • Important database administration support tasks include: • Backup • Offline/cold • Online/hot • Recovery • Restore Entire tablespaces • Build test / dev environments from restores • Recover missing / erroneous data in tables. 9
  • 10. CREATING OFFLINE (COLD) BACKUPS 1. Shut down database instance 2. Copy specific database files to alternate disk location 1. Parameter file 2. Control files 3. Datafiles 4. Not redo logs 3. Restart database instance 10
  • 11. CREATING ONLINE (HOT) BACKUPS 1. Place database instance in ARCHIVELOG mode 2. Back up control file 3. Back up datafiles 4. Instruct database to write current contents of redo log files to archive files - Create backup copies of archive log files 11
  • 12. 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 12
  • 13. 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 13
  • 14. DEMO – START AND STOP ORACLE • Let’s use OEM to start and stop your Oracle instance, then create a cold backup 14
  • 15. ORACLE BACKUP STRATEGIES • Cold backups • Simplest to perform • Satisfactory for databases whose: • Contents do not change very much • Users can tolerate downtime while DBA creates cold backup files • Hot backups • Complex to perform • Better suited for dynamic, mission-critical databases • If you setup a clustered environment you can perform cold backups without loss of service. 15