SlideShare a Scribd company logo
1
2
<Insert Picture Here>
Backup and Recovery Best Practices for
Very Large Databases (VLDBs)
Tim Chien
Senior Product Manager
Oracle
Greg Green
Senior Database Administrator
Starbucks
4
<Insert Picture Here>
Agenda
• VLDB Trends and Requirements
• Backup and Recovery Design
• Assess Recovery Requirements
• Backup and Recovery Deployment
• Architect Backup Environment
• Evaluate Backup and Recovery Tools
• Plan Data Layout
• Develop Backup Procedure
• Develop Recovery Strategies
• Starbucks Case Study
• Summary/Q&A
5
• Rapidly growing databases
• 1 TB+ is ‘normal’ for initial deployments => 100 TB++
• Growth of intranet and internet resources
• Data consolidation
• Global view of the business
• Integrated, targeted analysis critical to business decisions
• Concurrent, heavy access
• Global user base – internal/partner/customer
VLDB Trends & Requirements
Need to be cost-effective while scaling for data growth
6
VLDB Backup & Recovery
• Key database protection requirements:
• Growing data – how to backup/restore in tolerable
window?
• Consolidated data – how to recover at an
application level? How to protect data in 24x7
environment?
• Cost efficiency with scale – how to manage
software, infrastructure, operational costs for data
protection/disaster recovery?
7
<Insert Picture Here>
Agenda
• VLDB Trends and Requirements
• Backup and Recovery Design
• Assess Recovery Requirements
• Backup and Recovery Deployment
• Architect Backup Environment
• Evaluate Backup and Recovery Tools
• Plan Data Layout
• Develop Backup Procedure
• Develop Recovery Strategies
• Starbucks Case Study
• Summary/Q&A
8
Backup and Recovery Design
Assess Recovery Requirements
• Analyze and identify the cost of unavailable data
• Design recovery requirements around data criticality and
logical relationships
• Assess tolerance for data loss - Recovery Point Objective (RPO)
• Prioritize data
• Point-in-time recovery required?
• Assess total recovery time - Recovery Time Objective (RTO)
• Problem identification & recovery planning time + H/W & S/W
recovery time + database recovery time (media + instance
recovery)
• Determine backup retention policy
9
<Insert Picture Here>
Agenda
• VLDB Trends and Requirements
• Backup and Recovery Design
• Assess Recovery Requirements
• Backup and Recovery Deployment
• Architect Backup Environment
• Evaluate Backup and Recovery Tools
• Plan Data Layout
• Develop Backup Procedure
• Develop Recovery Strategies
• Starbucks Case Study
• Summary/Q&A
10
Backup and Recovery Design
Architect Backup Environment
Cost
Disaster
Recovery
Performance
Compatibility,
Provisioning
VTL license + disk cost*
Optional file-based
replication
Fast, random I/O access
Standard tape interface
Virtual Tape
Library (VTL)
Well-known interface
across heterogeneous
systems
Tapes easily added, as
needed
OS, drivers, storage
must be compatible
Disk should be
provisioned for ‘worst’
case scenario
Sequential-only accessFast, random I/O
access
Offsite tapes to DR site,
long-term archival
Optional I/O-based
mirroring
Best price/capacity, e.g.
LTO-3 ($60 list) holds
800 GB compressed
Price/capacity starts
at few dollars/GB
(ATA)
Tape LibraryDisk
*File-level deduplication may reduce disk cost
11
Backup and Recovery Design
Architect Backup Environment
• Tape and disk considerations for VLDB
• Allocate disk backup for most critical tablespaces
• Utilize locally attached tape drives
• If tapes must be shared, consider disk and/or tape backup
SAN
• Assess host resource utilization, production disk I/O,
HBA/network & tape drive throughput
• Minimum performant component of these will be bottleneck
12
<Insert Picture Here>
Agenda
• VLDB Trends and Requirements
• Backup and Recovery Design
• Assess Recovery Requirements
• Backup and Recovery Deployment
• Architect Backup Environment
• Evaluate Backup and Recovery Tools
• Plan Data Layout
• Develop Backup Procedure
• Develop Recovery Strategies
• Starbucks Case Study
• Summary/Q&A
13
Backup and Recovery Deployment
Leverage Oracle Backup and Recovery Tools
• Recovery Manager (RMAN)
• Oracle-native tool for creating and managing physical
backups, restoring and recovering databases
• Multiplexed, parallel, block-validated full and incremental
backups scale with VLDB needs
• Supports data file, tablespace, and database backup and
recovery, in addition to block media recovery
• Flash Recovery Area manages all recovery-related files,
e.g. backups, archived logs
• Data Pump
• Logical backups of metadata and data (e.g. table,
database)
14
Backup and Recovery Deployment
Leverage Oracle Backup and Recovery Tools
• Oracle Secure Backup (OSB)
• Centralized tape backup management for database & file system
• Fastest database backup to tape on the market via elimination of
unused blocks and committed undo during backup
• Low price of $3,000/tape drive
• Flashback Technologies
• Broad suite of user error analysis and correction tools at the row,
transaction, table, and database level
• Optimized, continuous database snapshot with Flashback Database
(built-in Continuous Data Protection (CDP) capability)
• Data Guard
• Manages fast switchover and failover from production database to
synchronized standby database on separate hardware
• Serves as a remote, synchronized database ‘backup’
15
Error Correction with Flashback
• Correct errors at any level
• Recovery time is function of
changes, not database size
• Flashback Database –
restore database to point-in-
time (flashback log-based)
• Flashback Table – recover
contents of tables to point-
in-time (undo-based)
• Flashback Drop – restore
accidentally dropped tables
(based on free space in
tablespace)
• Flashback Transaction –
back out transaction and all
subsequent conflicting
transactions (redo-based)
0
10
20
30
40
50
60
70
80
Time To Recover (minutes)
Traditional
Recovery
Flashback
Database
Customer
Order
16
Backup and Recovery Deployment
Third Party Disk Backup Solutions
• Snapshots
• Fast point-in-time copy, but exposed to production array failures
• Split Mirror Backup
• Tape backup can be offloaded, but additional setup required
• Starbucks will present their criteria evaluating RMAN+Flash Recovery Area with split
mirror backup
• CDP Appliances
• Continuous snapshot via copy-on-write or allocate-on-write
• Only data file block
changes are tracked
• Only one before-image is
logged per 30 min interval,
regardless of number of
changes to the block
• All file changes must be logged
(control file, redo, data file)
• Each and every block change
must be logged
I/O consumption
Third Party CDP Flashback Database
Additional Cost
Additional Cost
Additional Cost
17
<Insert Picture Here>
Agenda
• VLDB Trends and Requirements
• Backup and Recovery Design
• Assess Recovery Requirements
• Architect Backup Environment
• Backup and Recovery Deployment
• Evaluate Backup and Recovery Tools
• Plan Data Layout
• Develop Backup Procedure
• Develop Recovery Strategies
• Starbucks Case Study
• Summary/Q&A
18
Backup and Recovery Deployment
Plan Data Layout
• Exploit partitioning and read-only tablespaces
• Older partitions can be moved to read-only tablespaces
• Backup read-only tablespaces once, then periodically, depending on
tape retention policy
• Table Compression – reduce space by 2-3X, no performance
degradation accessing compressed data
• OLTP Table Compression – minimize write overhead
NOV07JUL07 AUG07 SEP07 OCT07
Read-only (older data) Read-write (recent data)
19
<Insert Picture Here>
Agenda
• VLDB Trends and Requirements
• Backup and Recovery Design
• Assess Recovery Requirements
• Architect Backup Environment
• Backup and Recovery Deployment
• Evaluate Backup and Recovery Tools
• Plan Data Layout
• Develop Backup Procedure
• Develop Recovery Strategies
• Starbucks Case Study
• Summary/Q&A
20
Backup and Recovery Deployment
Develop Backup Procedure
• Option 1: Use Level 0 (Full) and Fast Incremental Backups
(Oracle Database 10g+)
• Weekly level 0 and nightly ‘differential’ incremental backups to
tape, with optional compression
• Only changed blocks are read and written during incremental
• Archived logs are backed up and retained on-disk, as needed
• Best for:
• VLDBs that can tolerate hours/days for restore & recovery
• Tape backup-only environments, where disk is premium
• Low-medium change frequency between backups
Level 0 (full) Level 1 (incremental)
….
Archived Logs Archived Logs
21
Backup and Recovery Deployment
Develop Backup Procedure
• Option 2: Use Level 0, Fast Incremental Backups,
Incrementally Updated Backup
• Initial level 0 image copy to disk, followed by nightly incremental backups
• Roll forward image copy with incremental, to produce new on-disk full
backup, on regular basis (e.g. daily/weekly/monthly)
• Full backup archived to tape, as needed
• Archived logs are backed up and retained on-disk, as needed
• Best for:
• VLDBs that can tolerate no more than several hours for restore &
recovery
• Fast recovery from disk or directly use image copies
• Environments where disk can be allocated for full database image copy
or image copy of most critical tablespaces
Level 0 (full) +
archive to tape
Level 1
….
Roll fwd image copy
+ Level 1
Archived Logs Archived Logs Archived Logs
22
Backup and Recovery Deployment
Develop Backup Procedure
• Option 3: Data Guard + Full/Incremental Backups
• Full and incremental backups can be offloaded to physical
standby database and used for restore at primary or standby
database
• Backups can be taken at each database for optimal local
protection
• Best for:
• VLDBs that require no more than several minutes of recovery
time, in event of any failure
• Environments that can allocate symmetric hardware and
storage for physical standby database
• Environments whose tape infrastructure can be shared
between primary and standby database sites
23
Backup and Recovery Deployment
Develop Backup Procedure
• Option 4: Maintain ETL loads
• Take full backup and maintain n ETL loads, where n is number of
days between full backups
• Restore last full backup and run needed ETL loads
• Manual backup and recovery process versus Options 1-3
• Best for:
• VLDBs that do not require point-in-time recovery or do not have
space for archived logs
• VLDBs whose changes are confined to controlled batch jobs
• Environments that cannot keep both incremental backups and
load files
• Legacy systems that will not be upgraded
Level 0 (full) Save ETL load
…
Level 0 (full)
…
24
Backup and Recovery Deployment
Develop Backup Procedure
• NOLOGGING considerations
• Data warehouse environments commonly use NOLOGGING to
increase performance and save space
• Recovery to point-in-time within NOLOGGING results in some
corrupt blocks
• Best practice is to take incremental backup when NOLOGGING
finishes, so ideal for controlled batch load environments
• E.g. Option 1: Level 0 + Fast Incremental Backups
Level 0 (full) Level 1 (incremental)
….
Archived Logs Archived LogsNo
logging
25
Backup and Recovery Deployment
Develop Backup Procedure
• Other considerations
• Divide full backup workload across multiple days
• BACKUP DATABASE NOT BACKED UP SINCE
‘SYSDATE-3’ DURATION 06:00 PARTIAL MINIMIZE
TIME;
• Manage backup window and user impact
• Full restore requires data file backups potentially taken on
several tapes
• Save time with tablespace level backups
• Backup index tablespaces less frequently than data
tablespaces
• Backup little used/less critical tablespaces less frequently
• Reduce restore time for most critical tablespaces, by
grouping them together in separate backups
26
Backup and Recovery Deployment
Develop Backup Procedure
• Oracle Database 11g Enhancements
• Multi-section backups (intrafile parallel backup)
• Best for databases composed of a few data files that are
significantly larger than the rest (e.g. bigfile tablespace)
• Or, if there are fewer data files than # of tape drives
• Scales linearly with addition of channels
• Start with section size = average data file size / # of channels
• Fast backup compression (ZLIB) -- 40% faster than Oracle
Database 10g
• Suitable for daily, incremental backups
• Use BZIP2 for full backup -- better compression ratio
• Data Pump export compression, including metadata & table data
27
<Insert Picture Here>
Agenda
• VLDB Trends and Requirements
• Backup and Recovery Design
• Assess Recovery Requirements
• Architect Backup Environment
• Backup and Recovery Deployment
• Evaluate Backup and Recovery Tools
• Plan Data Layout
• Develop Backup Procedure
• Develop Recovery Strategies
• Starbucks Case Study
• Summary/Q&A
28
• Data Recovery Advisor – built-in
database failure diagnosis, analysis, &
repair tool
Backup and Recovery Deployment
Develop Recovery Strategies
RMAN – restore all files to
new storage location
Media Failure
RMAN Block Media Recovery,
Trial Recovery, LogMiner
Block Corruption
Flashback Technologies,
RMAN TSPITR, LogMiner
User/Logical Error
Data Guard; RMAN -- restore
all files to new host/storage
Disaster
Oracle TechnologiesRecovery Scenario
29
<Insert Picture Here>
Starbucks Case Study
30
<Insert Picture Here>
Agenda
• VLDB Trends and Requirements
• Backup and Recovery Design
• Assess Recovery Requirements
• Architect Backup Environment
• Backup and Recovery Deployment
• Evaluate Backup and Recovery Tools
• Plan Data Layout
• Develop Backup Procedure
• Develop Recovery Strategies
• Starbucks Case Study
• Summary/Q&A
31
Resources
• Maximum Availability Architecture white papers:
http://www.oracle.com/technology/deploy/availability/htdocs/maa.htm
• Oracle HA Portal on OTN:
http://www.oracle.com/technology/deploy/availability/
• Oracle HA Customer Success Stories on OTN:
http://www.oracle.com/technology/deploy/availability/htdocs/HA_Case
Studies.html
32
Summary
• VLDBs growing rapidly
• More multi-PB systems in few years?
• Methodically work through backup and recovery design
and deployment
• Understand Data Layout and Change Characteristics
• Assess Recovery Requirements
• Architect Backup Environment
• Put design to the test with deployment
• Leverage Oracle Backup Tools & Strategy
• Develop and Test Recovery Strategies
33
Q U E S T I O N S
A N S W E R S
34
•S291495 - Oracle Streams Replication and Advanced Queuing (AQ): What's New in
Oracle Database 11g, 8:30 - 9:30 am, Moscone South 304
•S291499 - Best Practices for Implementing Replication with Oracle Streams in Oracle
Database 10g and 11g, 10:00 - 11:00 am, Moscone South 304
•S291525 - Maximum Availability Architecture (MAA) Best Practices: Online Patching,
Rolling Upgrades and Planned Maintenance with Minimal Downtime with Oracle Database,
11:30 am - 12:30 pm, Moscone South 104
Database HA Sessions From Oracle Development
•S291920 - Oracle Active Data Guard: How to Utilize Your Standby Databases for
Production Workload - What They Didn’t Print in the Manuals, 3:00 - 4:00 pm,
Moscone South 304
•S291917 - Oracle Data Guard Tips and Tricks: Direct From Oracle Development,
4:30 - 5:30 pm, Moscone South 102
Wednesday, Nov 14
Thursday, Nov 15
•S290542 - Maximum Availability Architecture (MAA) Best Practices for Siebel 8.0,
2:30 pm - 3:30 pm, Marriott Salon 10 & 11
•S291487 - Backup and Recovery Best Practices for Very Large Databases (VLDB), 11:15
am - 12:15 pm, Moscone South 104
35

More Related Content

PDF
Prepare for the Worst: Reliable Data Protection with Oracle RMAN and Oracle D...
PDF
Presentation recovery manager (rman) configuration and performance tuning ...
PDF
Rman Presentation
PDF
Oracle Database Backups and Disaster Recovery @ Autodesk
PPT
Oracle backup and recovery
PDF
Backup and recovery in oracle
DOC
Backup and Recovery Procedure
PDF
What is new on 12c for Backup and Recovery? Presentation
Prepare for the Worst: Reliable Data Protection with Oracle RMAN and Oracle D...
Presentation recovery manager (rman) configuration and performance tuning ...
Rman Presentation
Oracle Database Backups and Disaster Recovery @ Autodesk
Oracle backup and recovery
Backup and recovery in oracle
Backup and Recovery Procedure
What is new on 12c for Backup and Recovery? Presentation

What's hot (20)

PPT
Backup And Recovery
PPTX
Backup & recovery with rman
PPTX
What’s new in oracle 12c recovery manager (rman)
PPT
Xpp c user_rec
PPT
Less01 Dba1
PPT
Oracle 10g Introduction 1
PPTX
Why virtual private catalog?
PPTX
Data protection for oracle backup &amp; recovery for oracle databases
PPT
Les 09 diag
PDF
RMAN in 12c: The Next Generation (PPT)
PPT
Les 13 memory
PPT
Les 12 fl_db
PPT
Les 02 config
PPTX
Backing Up and Recovery
PDF
DBA 101 : Calling all New Database Administrators (WP)
PPT
Les 01 core
PPT
Les 20 dup_db
PDF
RMAN – The Pocket Knife of a DBA
PPT
Les 03 catalog
PPT
Les 11 fl2
Backup And Recovery
Backup & recovery with rman
What’s new in oracle 12c recovery manager (rman)
Xpp c user_rec
Less01 Dba1
Oracle 10g Introduction 1
Why virtual private catalog?
Data protection for oracle backup &amp; recovery for oracle databases
Les 09 diag
RMAN in 12c: The Next Generation (PPT)
Les 13 memory
Les 12 fl_db
Les 02 config
Backing Up and Recovery
DBA 101 : Calling all New Database Administrators (WP)
Les 01 core
Les 20 dup_db
RMAN – The Pocket Knife of a DBA
Les 03 catalog
Les 11 fl2
Ad

Viewers also liked (17)

PDF
Oracle backup and recovery user's guide
PPTX
VLDB Administration Strategies
PDF
Comparing Unitrends and EMC Avamar
PDF
2009-dec02_EMC2
PPTX
Aioug vizag ado_12c_aug20
PPTX
Corporate Laptop Backup and Recovery
PPTX
Recovery and backup for beginners
DOCX
Aspirus Enterprise Backup Assessment And Implementation Of Avamar
PPTX
Data backup and disaster recovery
PPTX
Exadata Backup
PPT
Les 06 Perform Rec
PPT
Lesson 8 - Understanding Backup and Recovery Methods
PPT
Backup And Recovery
PPT
Services Marketing
PDF
26 Time Management Hacks I Wish I'd Known at 20
PPT
Technology powerpoint presentations
PDF
4 Critical Elements of Your Onboarding Process
Oracle backup and recovery user's guide
VLDB Administration Strategies
Comparing Unitrends and EMC Avamar
2009-dec02_EMC2
Aioug vizag ado_12c_aug20
Corporate Laptop Backup and Recovery
Recovery and backup for beginners
Aspirus Enterprise Backup Assessment And Implementation Of Avamar
Data backup and disaster recovery
Exadata Backup
Les 06 Perform Rec
Lesson 8 - Understanding Backup and Recovery Methods
Backup And Recovery
Services Marketing
26 Time Management Hacks I Wish I'd Known at 20
Technology powerpoint presentations
4 Critical Elements of Your Onboarding Process
Ad

Similar to Presentation backup and recovery best practices for very large databases (vld bs) (20)

PPT
Disaster Recovery & Data Backup Strategies
PPTX
Backups _Disaster_Recovery for 202 .pptx
PPTX
system admin Backups Disaster Recovery .pptx
PPTX
Backing up the virtual datacentre. Charlie Llewellyn and Andy Powell from Edu...
PPTX
Prevent Recovery Amnesia - Forget The Backups
PDF
UKOUG - RMAN Back to Basics - Oct 2017
PPTX
Backup_exadata_update
ODP
Pdb my sql backup london percona live 2012
PDF
Datalink oracle backup_recovery_white_paper
PPTX
Basic principles of backup policies by Andrea Mauro, Backup Academy
PDF
MySQL Enterprise Backup
PPT
Data protection for oracle databases
PPTX
Backup &amp; recovery for exadata
PDF
Recovery oracle
PPT
03 backup-and-recovery
PPTX
IT Backup & Restoration: Never Worry about a Late Backup Again
PDF
PDF
2.Oracle’S High Availability Vision
PPTX
Db As Behaving Badly... Worst Practices For Database Administrators Rod Colledge
PPT
40179_Bednar.ppt Oracle Database Upgrade Assistant
Disaster Recovery & Data Backup Strategies
Backups _Disaster_Recovery for 202 .pptx
system admin Backups Disaster Recovery .pptx
Backing up the virtual datacentre. Charlie Llewellyn and Andy Powell from Edu...
Prevent Recovery Amnesia - Forget The Backups
UKOUG - RMAN Back to Basics - Oct 2017
Backup_exadata_update
Pdb my sql backup london percona live 2012
Datalink oracle backup_recovery_white_paper
Basic principles of backup policies by Andrea Mauro, Backup Academy
MySQL Enterprise Backup
Data protection for oracle databases
Backup &amp; recovery for exadata
Recovery oracle
03 backup-and-recovery
IT Backup & Restoration: Never Worry about a Late Backup Again
2.Oracle’S High Availability Vision
Db As Behaving Badly... Worst Practices For Database Administrators Rod Colledge
40179_Bednar.ppt Oracle Database Upgrade Assistant

More from xKinAnx (20)

PPTX
Engage for success ibm spectrum accelerate 2
PPTX
Accelerate with ibm storage ibm spectrum virtualize hyper swap deep dive
PDF
Software defined storage provisioning using ibm smart cloud
PDF
Ibm spectrum virtualize 101
PDF
Accelerate with ibm storage ibm spectrum virtualize hyper swap deep dive dee...
PDF
04 empalis -ibm_spectrum_protect_-_strategy_and_directions
PPTX
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...
PPTX
Ibm spectrum scale fundamentals workshop for americas part 2 IBM Spectrum Sca...
PPTX
Ibm spectrum scale fundamentals workshop for americas part 3 Information Life...
PPTX
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...
PPTX
Ibm spectrum scale fundamentals workshop for americas part 4 spectrum scale_r...
PPTX
Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...
PPTX
Ibm spectrum scale fundamentals workshop for americas part 6 spectrumscale el...
PPTX
Ibm spectrum scale fundamentals workshop for americas part 7 spectrumscale el...
PPT
Ibm spectrum scale fundamentals workshop for americas part 8 spectrumscale ba...
PPTX
Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...
PDF
Presentation disaster recovery in virtualization and cloud
PDF
Presentation disaster recovery for oracle fusion middleware with the zfs st...
PDF
Presentation differentiated virtualization for enterprise clouds, large and...
PDF
Presentation desktops for the cloud the view rollout
Engage for success ibm spectrum accelerate 2
Accelerate with ibm storage ibm spectrum virtualize hyper swap deep dive
Software defined storage provisioning using ibm smart cloud
Ibm spectrum virtualize 101
Accelerate with ibm storage ibm spectrum virtualize hyper swap deep dive dee...
04 empalis -ibm_spectrum_protect_-_strategy_and_directions
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...
Ibm spectrum scale fundamentals workshop for americas part 2 IBM Spectrum Sca...
Ibm spectrum scale fundamentals workshop for americas part 3 Information Life...
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...
Ibm spectrum scale fundamentals workshop for americas part 4 spectrum scale_r...
Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...
Ibm spectrum scale fundamentals workshop for americas part 6 spectrumscale el...
Ibm spectrum scale fundamentals workshop for americas part 7 spectrumscale el...
Ibm spectrum scale fundamentals workshop for americas part 8 spectrumscale ba...
Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...
Presentation disaster recovery in virtualization and cloud
Presentation disaster recovery for oracle fusion middleware with the zfs st...
Presentation differentiated virtualization for enterprise clouds, large and...
Presentation desktops for the cloud the view rollout

Recently uploaded (20)

PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Empathic Computing: Creating Shared Understanding
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Modernizing your data center with Dell and AMD
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
A Presentation on Artificial Intelligence
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Big Data Technologies - Introduction.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Machine learning based COVID-19 study performance prediction
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
KodekX | Application Modernization Development
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Empathic Computing: Creating Shared Understanding
20250228 LYD VKU AI Blended-Learning.pptx
Encapsulation theory and applications.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Modernizing your data center with Dell and AMD
Chapter 3 Spatial Domain Image Processing.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Mobile App Security Testing_ A Comprehensive Guide.pdf
A Presentation on Artificial Intelligence
MYSQL Presentation for SQL database connectivity
Network Security Unit 5.pdf for BCA BBA.
Big Data Technologies - Introduction.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Machine learning based COVID-19 study performance prediction
The AUB Centre for AI in Media Proposal.docx
Encapsulation_ Review paper, used for researhc scholars
CIFDAQ's Market Insight: SEC Turns Pro Crypto
KodekX | Application Modernization Development

Presentation backup and recovery best practices for very large databases (vld bs)

  • 1. 1
  • 2. 2
  • 3. <Insert Picture Here> Backup and Recovery Best Practices for Very Large Databases (VLDBs) Tim Chien Senior Product Manager Oracle Greg Green Senior Database Administrator Starbucks
  • 4. 4 <Insert Picture Here> Agenda • VLDB Trends and Requirements • Backup and Recovery Design • Assess Recovery Requirements • Backup and Recovery Deployment • Architect Backup Environment • Evaluate Backup and Recovery Tools • Plan Data Layout • Develop Backup Procedure • Develop Recovery Strategies • Starbucks Case Study • Summary/Q&A
  • 5. 5 • Rapidly growing databases • 1 TB+ is ‘normal’ for initial deployments => 100 TB++ • Growth of intranet and internet resources • Data consolidation • Global view of the business • Integrated, targeted analysis critical to business decisions • Concurrent, heavy access • Global user base – internal/partner/customer VLDB Trends & Requirements Need to be cost-effective while scaling for data growth
  • 6. 6 VLDB Backup & Recovery • Key database protection requirements: • Growing data – how to backup/restore in tolerable window? • Consolidated data – how to recover at an application level? How to protect data in 24x7 environment? • Cost efficiency with scale – how to manage software, infrastructure, operational costs for data protection/disaster recovery?
  • 7. 7 <Insert Picture Here> Agenda • VLDB Trends and Requirements • Backup and Recovery Design • Assess Recovery Requirements • Backup and Recovery Deployment • Architect Backup Environment • Evaluate Backup and Recovery Tools • Plan Data Layout • Develop Backup Procedure • Develop Recovery Strategies • Starbucks Case Study • Summary/Q&A
  • 8. 8 Backup and Recovery Design Assess Recovery Requirements • Analyze and identify the cost of unavailable data • Design recovery requirements around data criticality and logical relationships • Assess tolerance for data loss - Recovery Point Objective (RPO) • Prioritize data • Point-in-time recovery required? • Assess total recovery time - Recovery Time Objective (RTO) • Problem identification & recovery planning time + H/W & S/W recovery time + database recovery time (media + instance recovery) • Determine backup retention policy
  • 9. 9 <Insert Picture Here> Agenda • VLDB Trends and Requirements • Backup and Recovery Design • Assess Recovery Requirements • Backup and Recovery Deployment • Architect Backup Environment • Evaluate Backup and Recovery Tools • Plan Data Layout • Develop Backup Procedure • Develop Recovery Strategies • Starbucks Case Study • Summary/Q&A
  • 10. 10 Backup and Recovery Design Architect Backup Environment Cost Disaster Recovery Performance Compatibility, Provisioning VTL license + disk cost* Optional file-based replication Fast, random I/O access Standard tape interface Virtual Tape Library (VTL) Well-known interface across heterogeneous systems Tapes easily added, as needed OS, drivers, storage must be compatible Disk should be provisioned for ‘worst’ case scenario Sequential-only accessFast, random I/O access Offsite tapes to DR site, long-term archival Optional I/O-based mirroring Best price/capacity, e.g. LTO-3 ($60 list) holds 800 GB compressed Price/capacity starts at few dollars/GB (ATA) Tape LibraryDisk *File-level deduplication may reduce disk cost
  • 11. 11 Backup and Recovery Design Architect Backup Environment • Tape and disk considerations for VLDB • Allocate disk backup for most critical tablespaces • Utilize locally attached tape drives • If tapes must be shared, consider disk and/or tape backup SAN • Assess host resource utilization, production disk I/O, HBA/network & tape drive throughput • Minimum performant component of these will be bottleneck
  • 12. 12 <Insert Picture Here> Agenda • VLDB Trends and Requirements • Backup and Recovery Design • Assess Recovery Requirements • Backup and Recovery Deployment • Architect Backup Environment • Evaluate Backup and Recovery Tools • Plan Data Layout • Develop Backup Procedure • Develop Recovery Strategies • Starbucks Case Study • Summary/Q&A
  • 13. 13 Backup and Recovery Deployment Leverage Oracle Backup and Recovery Tools • Recovery Manager (RMAN) • Oracle-native tool for creating and managing physical backups, restoring and recovering databases • Multiplexed, parallel, block-validated full and incremental backups scale with VLDB needs • Supports data file, tablespace, and database backup and recovery, in addition to block media recovery • Flash Recovery Area manages all recovery-related files, e.g. backups, archived logs • Data Pump • Logical backups of metadata and data (e.g. table, database)
  • 14. 14 Backup and Recovery Deployment Leverage Oracle Backup and Recovery Tools • Oracle Secure Backup (OSB) • Centralized tape backup management for database & file system • Fastest database backup to tape on the market via elimination of unused blocks and committed undo during backup • Low price of $3,000/tape drive • Flashback Technologies • Broad suite of user error analysis and correction tools at the row, transaction, table, and database level • Optimized, continuous database snapshot with Flashback Database (built-in Continuous Data Protection (CDP) capability) • Data Guard • Manages fast switchover and failover from production database to synchronized standby database on separate hardware • Serves as a remote, synchronized database ‘backup’
  • 15. 15 Error Correction with Flashback • Correct errors at any level • Recovery time is function of changes, not database size • Flashback Database – restore database to point-in- time (flashback log-based) • Flashback Table – recover contents of tables to point- in-time (undo-based) • Flashback Drop – restore accidentally dropped tables (based on free space in tablespace) • Flashback Transaction – back out transaction and all subsequent conflicting transactions (redo-based) 0 10 20 30 40 50 60 70 80 Time To Recover (minutes) Traditional Recovery Flashback Database Customer Order
  • 16. 16 Backup and Recovery Deployment Third Party Disk Backup Solutions • Snapshots • Fast point-in-time copy, but exposed to production array failures • Split Mirror Backup • Tape backup can be offloaded, but additional setup required • Starbucks will present their criteria evaluating RMAN+Flash Recovery Area with split mirror backup • CDP Appliances • Continuous snapshot via copy-on-write or allocate-on-write • Only data file block changes are tracked • Only one before-image is logged per 30 min interval, regardless of number of changes to the block • All file changes must be logged (control file, redo, data file) • Each and every block change must be logged I/O consumption Third Party CDP Flashback Database Additional Cost Additional Cost Additional Cost
  • 17. 17 <Insert Picture Here> Agenda • VLDB Trends and Requirements • Backup and Recovery Design • Assess Recovery Requirements • Architect Backup Environment • Backup and Recovery Deployment • Evaluate Backup and Recovery Tools • Plan Data Layout • Develop Backup Procedure • Develop Recovery Strategies • Starbucks Case Study • Summary/Q&A
  • 18. 18 Backup and Recovery Deployment Plan Data Layout • Exploit partitioning and read-only tablespaces • Older partitions can be moved to read-only tablespaces • Backup read-only tablespaces once, then periodically, depending on tape retention policy • Table Compression – reduce space by 2-3X, no performance degradation accessing compressed data • OLTP Table Compression – minimize write overhead NOV07JUL07 AUG07 SEP07 OCT07 Read-only (older data) Read-write (recent data)
  • 19. 19 <Insert Picture Here> Agenda • VLDB Trends and Requirements • Backup and Recovery Design • Assess Recovery Requirements • Architect Backup Environment • Backup and Recovery Deployment • Evaluate Backup and Recovery Tools • Plan Data Layout • Develop Backup Procedure • Develop Recovery Strategies • Starbucks Case Study • Summary/Q&A
  • 20. 20 Backup and Recovery Deployment Develop Backup Procedure • Option 1: Use Level 0 (Full) and Fast Incremental Backups (Oracle Database 10g+) • Weekly level 0 and nightly ‘differential’ incremental backups to tape, with optional compression • Only changed blocks are read and written during incremental • Archived logs are backed up and retained on-disk, as needed • Best for: • VLDBs that can tolerate hours/days for restore & recovery • Tape backup-only environments, where disk is premium • Low-medium change frequency between backups Level 0 (full) Level 1 (incremental) …. Archived Logs Archived Logs
  • 21. 21 Backup and Recovery Deployment Develop Backup Procedure • Option 2: Use Level 0, Fast Incremental Backups, Incrementally Updated Backup • Initial level 0 image copy to disk, followed by nightly incremental backups • Roll forward image copy with incremental, to produce new on-disk full backup, on regular basis (e.g. daily/weekly/monthly) • Full backup archived to tape, as needed • Archived logs are backed up and retained on-disk, as needed • Best for: • VLDBs that can tolerate no more than several hours for restore & recovery • Fast recovery from disk or directly use image copies • Environments where disk can be allocated for full database image copy or image copy of most critical tablespaces Level 0 (full) + archive to tape Level 1 …. Roll fwd image copy + Level 1 Archived Logs Archived Logs Archived Logs
  • 22. 22 Backup and Recovery Deployment Develop Backup Procedure • Option 3: Data Guard + Full/Incremental Backups • Full and incremental backups can be offloaded to physical standby database and used for restore at primary or standby database • Backups can be taken at each database for optimal local protection • Best for: • VLDBs that require no more than several minutes of recovery time, in event of any failure • Environments that can allocate symmetric hardware and storage for physical standby database • Environments whose tape infrastructure can be shared between primary and standby database sites
  • 23. 23 Backup and Recovery Deployment Develop Backup Procedure • Option 4: Maintain ETL loads • Take full backup and maintain n ETL loads, where n is number of days between full backups • Restore last full backup and run needed ETL loads • Manual backup and recovery process versus Options 1-3 • Best for: • VLDBs that do not require point-in-time recovery or do not have space for archived logs • VLDBs whose changes are confined to controlled batch jobs • Environments that cannot keep both incremental backups and load files • Legacy systems that will not be upgraded Level 0 (full) Save ETL load … Level 0 (full) …
  • 24. 24 Backup and Recovery Deployment Develop Backup Procedure • NOLOGGING considerations • Data warehouse environments commonly use NOLOGGING to increase performance and save space • Recovery to point-in-time within NOLOGGING results in some corrupt blocks • Best practice is to take incremental backup when NOLOGGING finishes, so ideal for controlled batch load environments • E.g. Option 1: Level 0 + Fast Incremental Backups Level 0 (full) Level 1 (incremental) …. Archived Logs Archived LogsNo logging
  • 25. 25 Backup and Recovery Deployment Develop Backup Procedure • Other considerations • Divide full backup workload across multiple days • BACKUP DATABASE NOT BACKED UP SINCE ‘SYSDATE-3’ DURATION 06:00 PARTIAL MINIMIZE TIME; • Manage backup window and user impact • Full restore requires data file backups potentially taken on several tapes • Save time with tablespace level backups • Backup index tablespaces less frequently than data tablespaces • Backup little used/less critical tablespaces less frequently • Reduce restore time for most critical tablespaces, by grouping them together in separate backups
  • 26. 26 Backup and Recovery Deployment Develop Backup Procedure • Oracle Database 11g Enhancements • Multi-section backups (intrafile parallel backup) • Best for databases composed of a few data files that are significantly larger than the rest (e.g. bigfile tablespace) • Or, if there are fewer data files than # of tape drives • Scales linearly with addition of channels • Start with section size = average data file size / # of channels • Fast backup compression (ZLIB) -- 40% faster than Oracle Database 10g • Suitable for daily, incremental backups • Use BZIP2 for full backup -- better compression ratio • Data Pump export compression, including metadata & table data
  • 27. 27 <Insert Picture Here> Agenda • VLDB Trends and Requirements • Backup and Recovery Design • Assess Recovery Requirements • Architect Backup Environment • Backup and Recovery Deployment • Evaluate Backup and Recovery Tools • Plan Data Layout • Develop Backup Procedure • Develop Recovery Strategies • Starbucks Case Study • Summary/Q&A
  • 28. 28 • Data Recovery Advisor – built-in database failure diagnosis, analysis, & repair tool Backup and Recovery Deployment Develop Recovery Strategies RMAN – restore all files to new storage location Media Failure RMAN Block Media Recovery, Trial Recovery, LogMiner Block Corruption Flashback Technologies, RMAN TSPITR, LogMiner User/Logical Error Data Guard; RMAN -- restore all files to new host/storage Disaster Oracle TechnologiesRecovery Scenario
  • 30. 30 <Insert Picture Here> Agenda • VLDB Trends and Requirements • Backup and Recovery Design • Assess Recovery Requirements • Architect Backup Environment • Backup and Recovery Deployment • Evaluate Backup and Recovery Tools • Plan Data Layout • Develop Backup Procedure • Develop Recovery Strategies • Starbucks Case Study • Summary/Q&A
  • 31. 31 Resources • Maximum Availability Architecture white papers: http://www.oracle.com/technology/deploy/availability/htdocs/maa.htm • Oracle HA Portal on OTN: http://www.oracle.com/technology/deploy/availability/ • Oracle HA Customer Success Stories on OTN: http://www.oracle.com/technology/deploy/availability/htdocs/HA_Case Studies.html
  • 32. 32 Summary • VLDBs growing rapidly • More multi-PB systems in few years? • Methodically work through backup and recovery design and deployment • Understand Data Layout and Change Characteristics • Assess Recovery Requirements • Architect Backup Environment • Put design to the test with deployment • Leverage Oracle Backup Tools & Strategy • Develop and Test Recovery Strategies
  • 33. 33 Q U E S T I O N S A N S W E R S
  • 34. 34 •S291495 - Oracle Streams Replication and Advanced Queuing (AQ): What's New in Oracle Database 11g, 8:30 - 9:30 am, Moscone South 304 •S291499 - Best Practices for Implementing Replication with Oracle Streams in Oracle Database 10g and 11g, 10:00 - 11:00 am, Moscone South 304 •S291525 - Maximum Availability Architecture (MAA) Best Practices: Online Patching, Rolling Upgrades and Planned Maintenance with Minimal Downtime with Oracle Database, 11:30 am - 12:30 pm, Moscone South 104 Database HA Sessions From Oracle Development •S291920 - Oracle Active Data Guard: How to Utilize Your Standby Databases for Production Workload - What They Didn’t Print in the Manuals, 3:00 - 4:00 pm, Moscone South 304 •S291917 - Oracle Data Guard Tips and Tricks: Direct From Oracle Development, 4:30 - 5:30 pm, Moscone South 102 Wednesday, Nov 14 Thursday, Nov 15 •S290542 - Maximum Availability Architecture (MAA) Best Practices for Siebel 8.0, 2:30 pm - 3:30 pm, Marriott Salon 10 & 11 •S291487 - Backup and Recovery Best Practices for Very Large Databases (VLDB), 11:15 am - 12:15 pm, Moscone South 104
  • 35. 35