SlideShare a Scribd company logo
Aleks Yemets
Veeam SE
Oracle DB in a VM:
easy and reliable way to protect your data
with Veeam B&R
test 1
• A bit of theory: Oracle’s self-protection
• Crash-consistent consistent?
• Universal solution – our backup+their logs
• Backup process
• Recovery scenarios
• BUT, there are a few "buts"- ASM, pRDM, mnode RAC (?)
• Instant recovery – no way…
• Classic DB recovery – yes, indeed…
User
Process
DDL/DML,
Result
Sets
OracleServer
Process
DatabaseBufferCache
(Blocksbeingusedinmemory)
Database
writer
Datafiles
Blocks
Changed Blocks
(Dirty Buffers)
Oracle Server
Process
LogBuffer
LogWriter
OnlineRedo
LogFiles
Archiver
ArchivedRedo
LogFiles
ControlFiles
Checkpoint
Redostream–TransactionInformation
Checkpoint
SCN
Checkpoint
SCN
• At each commit
• Every three seconds
• When the redo log buffer is one-third full
• Oracle uses write-ahead protocol
• Any changes are written to Log Buffer
• The Log Writer writes to the online redo files under the following
circumstances:
• redo log is cyclically overwritten
• Oracle uses write-ahead protocol
• Any changes are written to Log Buffer
• The Log Writer writes to the online redo files under the following
circumstances:
• redo log is cyclically overwritten
• DB in archivelog mode archives redo log
• archive logs allow to recover DB to any needed
point in time
• In archivelog mode you can backup whole DB in any of the
following ways:
• Closed and consistent
• Closed and inconsistent
• Open and inconsistent
The ability to back up a database
while it is open and in use is a key
benefit of running a
database in archivelog mode.
&
• Snapshots are OK!
Oracle will officially support the Snapshot Backup and
Recovery operations assuming that the third party
snapshot technology can meet the prerequisites listed
below
• If a point-in-time copy of the database is required, the snapshot must
contain all the data files, control files and online redo logs.
• If full (i.e. zero data loss) recovery is required, the snapshot must
contain only the data files or have the ability to restore only the data
files.
For detailed information refer to Metalink Note 604683.1
Crash-consistent  consistent?
• Begin/End backup database vs Crash-consistent
• With Begin/End backup
• Stops updating datafile headers
• Duplicates datafile block writes to redo log
Then
• Snapshot whole VM…. redo log writes stopped
• Crash-consistent snapshot
• Just snapshot whole VM
- By definition, an online backup is always inconsistent.
Pros for VM: Begin/End backup can affect DB only in “physical” world –
backup(copying) takes a datafile offline for a long period of time
In virtual world – do not affect DB – datafile offline period is very short
RMAN – differense and benefits
only on “physics”
• RMAN is to backup online DB
• Doesn’t stop updates to datafile headers
• Backs up data up to last fixed SCN
• redo log is not overloaded
Is it a datafile
snapshot at Oracle
DB level?...
• Regular backup with fixed RPO
• Veeam VM backup w/o interacting with Oracle DB
• Veeam VM backup with interacting with Oracle DB
• Switch current redo log
• Optional – switch DB to hotbackup mode
• Backup for Point-in-Time zero dataloss recovery
• Veeam VM backup with/without interacting with Oracle DB
• Sparately backup/mirror the following
• Current Control File
• Redo/archive log
• Recovery with fixed RPO
Original:
• data files
• control files
• online redo logs
Backups –
Restore points
Recovered VM:
• data files
• control files
• online redo logs
• Backup for Point-in-Time zero dataloss recovery
Original :
• data files
• control files
• online redo logs
Backups –
Recovery points
Recovered VM:
• data files
• control files
• online redo logs
• control files
• online redo logs
• arch redo logs
Restore
database
Restore/mount
• control files
• logs
• arch logs
Recover
database
• No snapshots – no backups (Veeam point of view, and others)
• No instant recovery available
• Classic approach to backup needed:
• Separate OS backup
• Separate DB backup
• Classic recovery – big(long) RTO……..
Veeam backup Oracle DB in a VM is easy and reliable way to protect data

More Related Content

PPTX
Developing imperfect software
PPTX
Cutting the pipe
PDF
Streaming Replication (Keynote @ PostgreSQL Conference 2009 Japan)
PPT
PostgreSQL9.3 Switchover/Switchback
PDF
Logical Replication in PostgreSQL - FLOSSUK 2016
PDF
Remote DBA Experts SQL Server 2008 New Features
PDF
Highly efficient backups with percona xtrabackup
ODP
Using ТРСС to study Firebird performance
Developing imperfect software
Cutting the pipe
Streaming Replication (Keynote @ PostgreSQL Conference 2009 Japan)
PostgreSQL9.3 Switchover/Switchback
Logical Replication in PostgreSQL - FLOSSUK 2016
Remote DBA Experts SQL Server 2008 New Features
Highly efficient backups with percona xtrabackup
Using ТРСС to study Firebird performance

What's hot (20)

PDF
Basics of Logical Replication,Streaming replication vs Logical Replication ,U...
PPTX
PostgreSQL Hangout Replication Features v9.4
PDF
Dw tpain - Gordon Klok
PPT
Life In The FastLane: Full Speed XPages
PPTX
Life in the fast lane. Full speed XPages
PPTX
Streaming Replication Made Easy in v9.3
PDF
DB Latency Using DRAM + PMem in App Direct & Memory Modes
PPTX
Get More Out of MongoDB with TokuMX
PDF
Scaling the Rails
PPT
Speculative Locking: Breaking the Scale Barrier (JAOO 2005)
PPT
The Pensions Trust - VM Backup Experiences
PDF
12 cool features in defrag 12
PDF
DbB 10 Webcast #3 The Secrets Of Scalability
PPTX
Creating a Benchmarking Infrastructure That Just Works
PPTX
Scalabe MySQL Infrastructure
PDF
Extreme HTTP Performance Tuning: 1.2M API req/s on a 4 vCPU EC2 Instance
PDF
What's New in Postgres Plus Advanced Server 9.3
 
PDF
(ATS4-PLAT08) Server Pool Management
PPTX
MongoDB 101 & Beyond: Get Started in MongoDB 3.0, Preview 3.2 & Demo of Ops M...
PDF
11 cool features in Defrag.nsf+ 11
Basics of Logical Replication,Streaming replication vs Logical Replication ,U...
PostgreSQL Hangout Replication Features v9.4
Dw tpain - Gordon Klok
Life In The FastLane: Full Speed XPages
Life in the fast lane. Full speed XPages
Streaming Replication Made Easy in v9.3
DB Latency Using DRAM + PMem in App Direct & Memory Modes
Get More Out of MongoDB with TokuMX
Scaling the Rails
Speculative Locking: Breaking the Scale Barrier (JAOO 2005)
The Pensions Trust - VM Backup Experiences
12 cool features in defrag 12
DbB 10 Webcast #3 The Secrets Of Scalability
Creating a Benchmarking Infrastructure That Just Works
Scalabe MySQL Infrastructure
Extreme HTTP Performance Tuning: 1.2M API req/s on a 4 vCPU EC2 Instance
What's New in Postgres Plus Advanced Server 9.3
 
(ATS4-PLAT08) Server Pool Management
MongoDB 101 & Beyond: Get Started in MongoDB 3.0, Preview 3.2 & Demo of Ops M...
11 cool features in Defrag.nsf+ 11
Ad

Similar to Veeam backup Oracle DB in a VM is easy and reliable way to protect data (20)

PPT
Dueling duplications RMAN vs Delphix
PPTX
AUSPC 2013 - Business Continuity Management in SharePoint
PPTX
Backing Up and Recovery
PDF
Rman Presentation
PPT
Oracle DataGuard Online Training in USA | INDIA
PPTX
Exchange Server 2013 : les mécanismes de haute disponibilité et la redondance...
PPTX
Sql disaster recovery
PPT
Backups And Recovery
PPT
PDF
KoprowskiT_SPBizConf_2AMaDisasterJustBegan
PDF
KoprowskiT_SPBizConference_2AMaDisasterJustBegan
PPT
Oracle Dataguard
PDF
MySQL enterprise backup overview
PDF
[db tech showcase Tokyo 2015] D25:The difference between logical and physical...
PPTX
6421 b Module-13
PPT
Exploring the Oracle Database Architecture.ppt
PPT
exploring-the-oracle-database-architecture.ppt
PPT
exploring-the-oracle-database-architecture.ppt
PDF
Aem maintenance
PPT
AD maintenance Troubleshooting and Disaster Recovery.ppt
Dueling duplications RMAN vs Delphix
AUSPC 2013 - Business Continuity Management in SharePoint
Backing Up and Recovery
Rman Presentation
Oracle DataGuard Online Training in USA | INDIA
Exchange Server 2013 : les mécanismes de haute disponibilité et la redondance...
Sql disaster recovery
Backups And Recovery
KoprowskiT_SPBizConf_2AMaDisasterJustBegan
KoprowskiT_SPBizConference_2AMaDisasterJustBegan
Oracle Dataguard
MySQL enterprise backup overview
[db tech showcase Tokyo 2015] D25:The difference between logical and physical...
6421 b Module-13
Exploring the Oracle Database Architecture.ppt
exploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.ppt
Aem maintenance
AD maintenance Troubleshooting and Disaster Recovery.ppt
Ad

Recently uploaded (20)

PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
cuic standard and advanced reporting.pdf
PPTX
Cloud computing and distributed systems.
PDF
KodekX | Application Modernization Development
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Machine learning based COVID-19 study performance prediction
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
Unlocking AI with Model Context Protocol (MCP)
cuic standard and advanced reporting.pdf
Cloud computing and distributed systems.
KodekX | Application Modernization Development
Understanding_Digital_Forensics_Presentation.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Per capita expenditure prediction using model stacking based on satellite ima...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Empathic Computing: Creating Shared Understanding
Building Integrated photovoltaic BIPV_UPV.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Machine learning based COVID-19 study performance prediction
“AI and Expert System Decision Support & Business Intelligence Systems”
Encapsulation_ Review paper, used for researhc scholars
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
The AUB Centre for AI in Media Proposal.docx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Big Data Technologies - Introduction.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Diabetes mellitus diagnosis method based random forest with bat algorithm

Veeam backup Oracle DB in a VM is easy and reliable way to protect data

  • 1. Aleks Yemets Veeam SE Oracle DB in a VM: easy and reliable way to protect your data with Veeam B&R test 1
  • 2. • A bit of theory: Oracle’s self-protection • Crash-consistent consistent? • Universal solution – our backup+their logs • Backup process • Recovery scenarios • BUT, there are a few "buts"- ASM, pRDM, mnode RAC (?) • Instant recovery – no way… • Classic DB recovery – yes, indeed…
  • 3. User Process DDL/DML, Result Sets OracleServer Process DatabaseBufferCache (Blocksbeingusedinmemory) Database writer Datafiles Blocks Changed Blocks (Dirty Buffers) Oracle Server Process LogBuffer LogWriter OnlineRedo LogFiles Archiver ArchivedRedo LogFiles ControlFiles Checkpoint Redostream–TransactionInformation Checkpoint SCN Checkpoint SCN
  • 4. • At each commit • Every three seconds • When the redo log buffer is one-third full • Oracle uses write-ahead protocol • Any changes are written to Log Buffer • The Log Writer writes to the online redo files under the following circumstances: • redo log is cyclically overwritten
  • 5. • Oracle uses write-ahead protocol • Any changes are written to Log Buffer • The Log Writer writes to the online redo files under the following circumstances: • redo log is cyclically overwritten • DB in archivelog mode archives redo log • archive logs allow to recover DB to any needed point in time
  • 6. • In archivelog mode you can backup whole DB in any of the following ways: • Closed and consistent • Closed and inconsistent • Open and inconsistent The ability to back up a database while it is open and in use is a key benefit of running a database in archivelog mode.
  • 7. & • Snapshots are OK! Oracle will officially support the Snapshot Backup and Recovery operations assuming that the third party snapshot technology can meet the prerequisites listed below • If a point-in-time copy of the database is required, the snapshot must contain all the data files, control files and online redo logs. • If full (i.e. zero data loss) recovery is required, the snapshot must contain only the data files or have the ability to restore only the data files. For detailed information refer to Metalink Note 604683.1
  • 8. Crash-consistent  consistent? • Begin/End backup database vs Crash-consistent • With Begin/End backup • Stops updating datafile headers • Duplicates datafile block writes to redo log Then • Snapshot whole VM…. redo log writes stopped • Crash-consistent snapshot • Just snapshot whole VM - By definition, an online backup is always inconsistent. Pros for VM: Begin/End backup can affect DB only in “physical” world – backup(copying) takes a datafile offline for a long period of time In virtual world – do not affect DB – datafile offline period is very short
  • 9. RMAN – differense and benefits only on “physics” • RMAN is to backup online DB • Doesn’t stop updates to datafile headers • Backs up data up to last fixed SCN • redo log is not overloaded Is it a datafile snapshot at Oracle DB level?...
  • 10. • Regular backup with fixed RPO • Veeam VM backup w/o interacting with Oracle DB • Veeam VM backup with interacting with Oracle DB • Switch current redo log • Optional – switch DB to hotbackup mode • Backup for Point-in-Time zero dataloss recovery • Veeam VM backup with/without interacting with Oracle DB • Sparately backup/mirror the following • Current Control File • Redo/archive log
  • 11. • Recovery with fixed RPO Original: • data files • control files • online redo logs Backups – Restore points Recovered VM: • data files • control files • online redo logs
  • 12. • Backup for Point-in-Time zero dataloss recovery Original : • data files • control files • online redo logs Backups – Recovery points Recovered VM: • data files • control files • online redo logs • control files • online redo logs • arch redo logs Restore database Restore/mount • control files • logs • arch logs Recover database
  • 13. • No snapshots – no backups (Veeam point of view, and others) • No instant recovery available • Classic approach to backup needed: • Separate OS backup • Separate DB backup • Classic recovery – big(long) RTO……..