SlideShare una empresa de Scribd logo
1 de 17
Oracle Database
Backup & Recovery with RMAN
Internet & Network Security
Abid Hussain
Syed Muhammad Mohsin
Agenda
Types of failures and backups in Oracle
RMAN Architecture
Manual vs. RMAN backups
RMAN backup strategies
Exemplary recovery scanarios
Types of failures
 Instance Failure
 Usually connected with an Oracle process failure
 Media Failure
 Disk failure, storage array controller failure etc.
 Block Corruption
 Usually caused by bugs in Oracle software
 Human error
 In most cases accidentally deleted/updated data
 Database user or DBA
 Disaster
 Fire, flood, earthquake, plane crash etc.
Backup options in Oracle
 Physical backups
 Cold (off-line) backups
Full database only
Require downtime
Do not provide flexibility for point in time recovery (PiTR)
 Hot (on-line) backups
Different types of backups: full, incr. (cumulative, differential), archivelogs
Different scopes: full database, tablespace(s) or datafile(s)
Do not require database downtime
Can be used to recover full database, single/multiple
tablespace(s)/datafile(s) or a corrupted block
Database can be recovered to any point in time within assumed backup
retention period
Backup options in Oracle (2)
Logical backups
Logical copy of data in the database
Support for different backup granularity
Can be taken either with legacy Export/Import tools or
with Data Pump (10g)
Standby systems (Data Guard)
Physical and logical standby databases
How hot backups are possible?
SGA
Serverproc.
DBWR LGWR
RedoLog
RedoLog
Db file
Db file
Db file
Db file
Logarchiver
Archived redo logs
Backupproc.
Tapes
or
disks
system
RMAN architecture
Target
Database
RMAN Client
Target
Database
Target
Database
Auxiliary
Database
RMAN
Catalog
Schema
Catalog
Database
Types of RMAN hot backups
 Copy or backupset
 Full database backup
 Incremental backups (in 10g 2 levels available: 0 and 1)
 Cumulative, differential
 Can be used to update a copy of the database
 Archivelog backups
 Tablespace(s), datafile(s) backups
Differential incremental Cumulative incremental
Manual vs. RMAN backups
 RMAN advantages:
 Supports incremental backup strategies
 RMAN on-line backups are not so heavy for the system as manual
on-line backups
 RMAN can detect corrupted blocks
 RMAN automatically track database structure changes
 Provides easy, automated backup, restore and recovery operations
 Keeps invenotory of taken backups
 Can seamlessly work with third party media managers
 Disadvantage: something new to learn
 RMAN concepts and command syntax sometimes are not intuitive
RMAN backup strategies
RMAN allows many types of backups
It possible to build own backup strategy that suits
given database best
There are also Oracle recommended backup
strategies:
Incremental backup strategy: level 0 backups + level 1
backups (cumulative and/or differential) and archivelog
backups inbetween.
Incrementally updated database copy: 1 backup as
copy of the whole database + incremental backups
used to update the copy + archived redo logs.
• Automatic failover
– Database down
– Designated health-check
conditions
– Or at request of an
application
• Failed primary
automatically reinstated as
standby database
• All other standby’s
automatically synchronize
with the new primary
Primary
Database
Observer
Primary
Database
Primary
Database
Standby
Database
Data Guard Fast-Start Failover
Role
specific
database
services start
automatically
2
Standby
Database
Database Tier- Oracle
Real Application Clusters
Application Tier - Oracle
Application Server Clusters
Database
Services
Primary
Database
Primary Database
Standby
becomes
primary
database
Data Guard
Automatic
Failover
1
FAN breaks clients out
of TCP timeout.
TAF/FCF automatically
reconnects applications
to new primary
3
Standby Database
Data Guard Automatic Failover
Real-time
Queries
Production
Database
Continuous redo
shipping, validation & apply
Real-time
Reporting
Fast
Incremental
Backups
•Offload read-only queries to an up-to-date physical standby
Real-time
Reporting
Active Standby
Database
Read-write
Workload
Active Data Guard
•Use fast incremental backups on a physical standby – up to 20x faster
Simple to Manage
Primary Site Remote Site
Disaster Recovery
Standby
Database
Remote
Standby
Database
ASYNC
Data Guard
Primary
Database
SYNC
Ultimate High Availability
Primary Site Remote Site
Disaster Recovery
ASYNC
Data Guard
Primary
Database
Remote
Standby
Database
Ultimate High Availability
Backup & recovery with rman

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive
 
Oracle Data Guard
Oracle Data GuardOracle Data Guard
Oracle Data Guard
 
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdfOracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
 
Oracle statistics by example
Oracle statistics by exampleOracle statistics by example
Oracle statistics by example
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
 
Oracle architecture ppt
Oracle architecture pptOracle architecture ppt
Oracle architecture ppt
 
Oracle dataguard overview
Oracle dataguard overviewOracle dataguard overview
Oracle dataguard overview
 
Oracle ASM Training
Oracle ASM TrainingOracle ASM Training
Oracle ASM Training
 
Oracle User Management
Oracle User ManagementOracle User Management
Oracle User Management
 
Data Guard Architecture & Setup
Data Guard Architecture & SetupData Guard Architecture & Setup
Data Guard Architecture & Setup
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19c
 
What to Expect From Oracle database 19c
What to Expect From Oracle database 19cWhat to Expect From Oracle database 19c
What to Expect From Oracle database 19c
 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
 
SQL Server High Availability and Disaster Recovery
SQL Server High Availability and Disaster RecoverySQL Server High Availability and Disaster Recovery
SQL Server High Availability and Disaster Recovery
 
Oracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creationsOracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creations
 
Oracle RDBMS architecture
Oracle RDBMS architectureOracle RDBMS architecture
Oracle RDBMS architecture
 
What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1
 
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best PracticesOracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
 
153 Oracle dba interview questions
153 Oracle dba interview questions153 Oracle dba interview questions
153 Oracle dba interview questions
 
The Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - PresentationThe Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - Presentation
 

Destacado

Oracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ AutodeskOracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ Autodesk
Alan Williams
 
You most probably dont need rman catalog database white paper
You most probably dont need rman catalog database white paperYou most probably dont need rman catalog database white paper
You most probably dont need rman catalog database white paper
Yury Velikanov
 

Destacado (7)

Oracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ AutodeskOracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ Autodesk
 
You most probably dont need an RMAN catalog database
You most probably dont need an RMAN catalog databaseYou most probably dont need an RMAN catalog database
You most probably dont need an RMAN catalog database
 
Introduction to Oracle RMAN, backup and recovery tool.
Introduction to Oracle RMAN, backup and recovery tool.Introduction to Oracle RMAN, backup and recovery tool.
Introduction to Oracle RMAN, backup and recovery tool.
 
You most probably dont need rman catalog database white paper
You most probably dont need rman catalog database white paperYou most probably dont need rman catalog database white paper
You most probably dont need rman catalog database white paper
 
RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA
 
10 Problems with your RMAN backup script
10 Problems with your RMAN backup script10 Problems with your RMAN backup script
10 Problems with your RMAN backup script
 
RMAN backup Oracle
RMAN backup OracleRMAN backup Oracle
RMAN backup Oracle
 

Similar a Backup & recovery with rman

Oracle ocp backup exam
Oracle ocp backup examOracle ocp backup exam
Oracle ocp backup exam
sriram raj
 
Oracle OCP Backup Exam
Oracle OCP Backup ExamOracle OCP Backup Exam
Oracle OCP Backup Exam
Inprise Group
 
Backup and Recovery Procedure
Backup and Recovery ProcedureBackup and Recovery Procedure
Backup and Recovery Procedure
Anar Godjaev
 
MySQL enterprise backup overview
MySQL enterprise backup overviewMySQL enterprise backup overview
MySQL enterprise backup overview
郁萍 王
 
Disaster Recovery & Data Backup Strategies
Disaster Recovery & Data Backup StrategiesDisaster Recovery & Data Backup Strategies
Disaster Recovery & Data Backup Strategies
Spiceworks
 
1 ISACA JOURNAL VOLUME 1, 2012FeatureThe ability to r.docx
1 ISACA JOURNAL  VOLUME 1, 2012FeatureThe ability to r.docx1 ISACA JOURNAL  VOLUME 1, 2012FeatureThe ability to r.docx
1 ISACA JOURNAL VOLUME 1, 2012FeatureThe ability to r.docx
honey725342
 

Similar a Backup & recovery with rman (20)

Less15 Backups
Less15 BackupsLess15 Backups
Less15 Backups
 
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
 
Backup and Recovery Procedure
Backup and Recovery ProcedureBackup and Recovery Procedure
Backup and Recovery Procedure
 
MySQL enterprise backup overview
MySQL enterprise backup overviewMySQL enterprise backup overview
MySQL enterprise backup overview
 
Disaster Recovery & Data Backup Strategies
Disaster Recovery & Data Backup StrategiesDisaster Recovery & Data Backup Strategies
Disaster Recovery & Data Backup Strategies
 
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
 
Tech Ed Africa Demystifying Backup Restore In Share Point 2007
Tech Ed Africa Demystifying Backup Restore In Share Point 2007Tech Ed Africa Demystifying Backup Restore In Share Point 2007
Tech Ed Africa Demystifying Backup Restore In Share Point 2007
 
Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02
Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02
Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02
 
Backup beyond just a strategy with SQL Server
Backup beyond just a strategy with SQL ServerBackup beyond just a strategy with SQL Server
Backup beyond just a strategy with SQL Server
 
Data backup and disaster recovery
Data backup and disaster recoveryData backup and disaster recovery
Data backup and disaster recovery
 
Database backup and recovery basics
Database backup and recovery basicsDatabase backup and recovery basics
Database backup and recovery basics
 
MySQL Enterprise Backup
MySQL Enterprise BackupMySQL Enterprise Backup
MySQL Enterprise Backup
 
Backup Exec 21
Backup Exec 21Backup Exec 21
Backup Exec 21
 
Oracle Backup Solutions Overview August 2018
Oracle Backup Solutions Overview August 2018Oracle Backup Solutions Overview August 2018
Oracle Backup Solutions Overview August 2018
 
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
 
Rmanpres
RmanpresRmanpres
Rmanpres
 
MySQL Enterprise Backup
MySQL Enterprise BackupMySQL Enterprise Backup
MySQL Enterprise Backup
 
1 ISACA JOURNAL VOLUME 1, 2012FeatureThe ability to r.docx
1 ISACA JOURNAL  VOLUME 1, 2012FeatureThe ability to r.docx1 ISACA JOURNAL  VOLUME 1, 2012FeatureThe ability to r.docx
1 ISACA JOURNAL VOLUME 1, 2012FeatureThe ability to r.docx
 

Último

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
negromaestrong
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
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
heathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Último (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
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
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
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
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
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
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
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
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
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
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
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.
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
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
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 

Backup & recovery with rman

  • 1. Oracle Database Backup & Recovery with RMAN Internet & Network Security Abid Hussain Syed Muhammad Mohsin
  • 2. Agenda Types of failures and backups in Oracle RMAN Architecture Manual vs. RMAN backups RMAN backup strategies Exemplary recovery scanarios
  • 3. Types of failures  Instance Failure  Usually connected with an Oracle process failure  Media Failure  Disk failure, storage array controller failure etc.  Block Corruption  Usually caused by bugs in Oracle software  Human error  In most cases accidentally deleted/updated data  Database user or DBA  Disaster  Fire, flood, earthquake, plane crash etc.
  • 4. Backup options in Oracle  Physical backups  Cold (off-line) backups Full database only Require downtime Do not provide flexibility for point in time recovery (PiTR)  Hot (on-line) backups Different types of backups: full, incr. (cumulative, differential), archivelogs Different scopes: full database, tablespace(s) or datafile(s) Do not require database downtime Can be used to recover full database, single/multiple tablespace(s)/datafile(s) or a corrupted block Database can be recovered to any point in time within assumed backup retention period
  • 5. Backup options in Oracle (2) Logical backups Logical copy of data in the database Support for different backup granularity Can be taken either with legacy Export/Import tools or with Data Pump (10g) Standby systems (Data Guard) Physical and logical standby databases
  • 6. How hot backups are possible? SGA Serverproc. DBWR LGWR RedoLog RedoLog Db file Db file Db file Db file Logarchiver Archived redo logs Backupproc. Tapes or disks system
  • 8. Types of RMAN hot backups  Copy or backupset  Full database backup  Incremental backups (in 10g 2 levels available: 0 and 1)  Cumulative, differential  Can be used to update a copy of the database  Archivelog backups  Tablespace(s), datafile(s) backups Differential incremental Cumulative incremental
  • 9. Manual vs. RMAN backups  RMAN advantages:  Supports incremental backup strategies  RMAN on-line backups are not so heavy for the system as manual on-line backups  RMAN can detect corrupted blocks  RMAN automatically track database structure changes  Provides easy, automated backup, restore and recovery operations  Keeps invenotory of taken backups  Can seamlessly work with third party media managers  Disadvantage: something new to learn  RMAN concepts and command syntax sometimes are not intuitive
  • 10. RMAN backup strategies RMAN allows many types of backups It possible to build own backup strategy that suits given database best There are also Oracle recommended backup strategies: Incremental backup strategy: level 0 backups + level 1 backups (cumulative and/or differential) and archivelog backups inbetween. Incrementally updated database copy: 1 backup as copy of the whole database + incremental backups used to update the copy + archived redo logs.
  • 11. • Automatic failover – Database down – Designated health-check conditions – Or at request of an application • Failed primary automatically reinstated as standby database • All other standby’s automatically synchronize with the new primary Primary Database Observer Primary Database Primary Database Standby Database Data Guard Fast-Start Failover
  • 12. Role specific database services start automatically 2 Standby Database Database Tier- Oracle Real Application Clusters Application Tier - Oracle Application Server Clusters Database Services Primary Database Primary Database Standby becomes primary database Data Guard Automatic Failover 1 FAN breaks clients out of TCP timeout. TAF/FCF automatically reconnects applications to new primary 3 Standby Database Data Guard Automatic Failover
  • 13. Real-time Queries Production Database Continuous redo shipping, validation & apply Real-time Reporting Fast Incremental Backups •Offload read-only queries to an up-to-date physical standby Real-time Reporting Active Standby Database Read-write Workload Active Data Guard •Use fast incremental backups on a physical standby – up to 20x faster
  • 15. Primary Site Remote Site Disaster Recovery Standby Database Remote Standby Database ASYNC Data Guard Primary Database SYNC Ultimate High Availability
  • 16. Primary Site Remote Site Disaster Recovery ASYNC Data Guard Primary Database Remote Standby Database Ultimate High Availability