Your SlideShare is downloading. ×
Oracle Database Backups and Disaster Recovery @ Autodesk
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Oracle Database Backups and Disaster Recovery @ Autodesk

1,036
views

Published on

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,036
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
24
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Oracle Database Backups and Disaster Recovery @ AutodeskAlan WilliamsDatabase Design Engineer © 2012 Autodesk
  • 2. Who We Are Autodesk software, suites, and cloud technology help customers design, visualize, and simulate their ideas, saving time and money while enhancing competitive advantage. 10+ million people use our professional products to imagine, design, and create a better world. Image created in Autodesk® 3ds Max® software © 2012 Autodesk 2
  • 3. Best Known For…© 2012 Autodesk 3
  • 4. Agenda Background Change Drivers Where We Were... Where We Are… Tips For Success Questions? Image courtesy of Ulysse Nardin SA © 2012 Autodesk 4
  • 5. Project Background & Scope Tier 1 applications: Siebel CRM, SAP ERP, TIBCO Middleware, Data Warehouse and Data Marts Very complex and antiquated environments  Multiple vendors, different technologies for different applications Costly to support, maintain and troubleshoot Project Marshall - enable infrastructure capabilities for the future One shot, waterfall style, 24 hour Go-Live Photograph by David Wakely© 2012 Autodesk 5
  • 6. Change Drivers • Oracle 11gR2 • Oracle 11gR2Increase IncreaseReliability • Standardized hardware Performance • Oracle Database configuration Partitioning • Oracle Real Application • Complete Oracle stack Increase ReduceAvailability Clusters Complexity • Simplified Backup and • Oracle Data Guard DR process • Oracle Real ApplicationIncrease ClustersScalability • Commodity Servers© 2012 Autodesk 6
  • 7. Where We Were… Complex mix of hardware/software  Various infrastructure platforms vendors and technologies  Server Operating Systems (Solaris &  EMC Storage Replication Redhat)  BCV splits backups  Oracle Database versions (9i – 10g)  NetBackup Tape Management  Server hardware (Sun, HP, Dell)  VERITAS Volume Manager No database replication© 2012 Autodesk 7
  • 8. Where We Are…Image created in Autodesk® 3ds Max® software © 2012 Autodesk 8
  • 9. Disaster Recovery Design East Coast DC West Coast DC ASYNC ASYNC Data Guard Data Guard Redo Apply Redo Apply MPLS Cloud • 10 single instanced physical• 10 RAC primary databases standbys (non-RAC)• 3 RAC clusters• 1-5TB sized databases Features• 14 day flashback via Fast • RAC provides High Availability for Primary Recovery Area • Data Guard and Flashback Technology protect against: • Site and/or storage failures • Data corruptions • Human error • Ability to roll back changes within the past ~14 days • Near real-time ASYNC data replication between peer DCs • 30 minute maximum lag between standby and primary • 4 hour RTO, 4 hour RPO • Significantly faster refreshes of Non-Production environments • Snapshot standby’s for efficient DR drills or other short tests • Complete Oracle software technology stack © 2012 Autodesk 9
  • 10. Backup Design East Coast DC West Coast DC ASYNC ASYNC Data Guard Data Guard Redo Apply Redo Apply DD Change MPLS Cloud DD Change • 10 single instanced physical• 10 RAC primary databases Replication Replication standbys (non-RAC)• 3 RAC clusters • Daily level 0 backups• 1-5TB sized databases • Backups used for local• 14 day flashback via Fast refreshes Recovery Area Features • 3 copies of Production data (4 data sets) • No tape backups; complete disk based solution • No incremental backups • Data Domain deduplication • 1 – 5 TB sized databases• Data Domain (DD) Storage • Data Domain (DD) Storage Appliance replicated from Appliance for local backups West Coast (Read Only) © 2012 Autodesk 10
  • 11. Alternate Strategies Considered Daily Incremental / Weekly Full Backups  Oracle MAA recommendation  Not feasible with Data Domain in order to maximize compression factor Multi-section Backups  Improves backup speed of large databases, especially with BIGFILE tablespaces  Not feasible with Data Domain in order to maximize compression factor© 2012 Autodesk 11
  • 12. RMAN Configuration ParametersCONFIGURE RETENTION POLICY TO REDUNDANCY 5;CONFIGURE BACKUP OPTIMIZATION ON;CONFIGURE DEFAULT DEVICE TYPE TO DISK; # defaultCONFIGURE CONTROLFILE AUTOBACKUP ON;CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO /local/oracle/orabackups/OBTMPRD1/%T/%F;CONFIGURE DEVICE TYPE DISK PARALLELISM 8 BACKUP TYPE TO BACKUPSET;CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # defaultCONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # defaultCONFIGURE CHANNEL DEVICE TYPE DISK FORMAT /local/oracle/orabackups/OBTMPRD1/%U;CONFIGURE MAXSETSIZE TO UNLIMITED; # defaultCONFIGURE ENCRYPTION FOR DATABASE OFF; # defaultCONFIGURE ENCRYPTION ALGORITHM AES128; # defaultCONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 1 TIMES TO DISK; # Standby OnlyCONFIGURE SNAPSHOT CONTROLFILE NAME TO /local/oracle/app/product/db11.2.0.2/dbs/snapcf_OBTMPRD11.f;** CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY; # Primary Only © 2012 Autodesk 12
  • 13. RMAN Level 0 Backup Scriptrun {allocate channel oem_backup_disk1 type disk MAXOPENFILES 1 format /local/oracle/orabackups/<DBNAME>/%T/level0/%U;allocate channel oem_backup_disk2 type disk MAXOPENFILES 1 format /local/oracle/orabackups/<DBNAME>/%T/level0/%U;backup FILESPERSET 1 as BACKUPSET tag DAILY_LEVL0_DATA database;backup FILESPERSET 1 as BACKUPSET tag DAILY_LEVL0_ARCH archivelog all not backed up;release channel oem_backup_disk1;release channel oem_backup_disk2;}run {allocate channel oem_backup_disk1 type disk MAXOPENFILES 1 format /local/oracle/orabackups/<DBNAME>/%T/level0/%U;backup FILESPERSET 1 as BACKUPSET tag DAILY_LEVL0_CTRL current controlfile;release channel oem_backup_disk1;} *Use multiple channels to maximize I/O and network throughput. 8 channels may perform better than 2 © 2012 Autodesk 13
  • 14. RMAN Archive Log Backup Scriptrun {allocate channel oem_backup_disk1 type disk MAXOPENFILES 1 format /local/oracle/orabackups/<DBNAME>/%T/level0/%U;allocate channel oem_backup_disk2 type disk MAXOPENFILES 1 format /local/oracle/orabackups/<DBNAME>/%T/level0/%U;backup FILESPERSET 1 as BACKUPSET tag DAILY_LEVL0_ARCH archivelog all not backed up until time ‘SYSDATE-30’;release channel oem_backup_disk1;release channel oem_backup_disk2;} *Use multiple channels to maximize I/O and network throughput. 8 channels may perform better than 2 © 2012 Autodesk 14
  • 15. Current Backup and Retention Schedule Component Backup Schedule Retention Database Daily level 0 7 years Archived Logs Hourly 30 days Control Files Daily 7 years * Flashback Recovery Area (FRA) allows 14 days flashback© 2012 Autodesk 15
  • 16. Backup Metrics & Performance ~400GB per hour backup writes 4TB backed up in 10 hours 24x Data Domain compressionStandby server CPU consumption Data Domain Consumption and Usage© 2012 Autodesk 16
  • 17. RMAN Features Used Active Database Duplicate (RMAN/Data Guard feature)  Standby databases were created live from hot primary with no initial backup Parallelism  Improved backup speed, especially useful for VLDBs Multi-section Backups  Significantly improved backup speed of VLDBs by breaking up large tablespaces into contiguous sets of blocks (chunks), leveraging multiple channels against a single file© 2012 Autodesk 17
  • 18. Management & Monitoring Tools Management Monitoring Backups RMAN catalog NimSoft® Oracle Grid Control 11g (evaluating 12c) Data Guard Replication Oracle Grid Control 11g NimSoft® • Protecting the RMAN catalog • Daily incremental and weekly full backups • Weekly offsite backups • Daily datapump exports transferred to a different datacenter© 2012 Autodesk 18
  • 19. Data Guard Status in OEM© 2012 Autodesk 19
  • 20. Data Guard Performance Graph in OEM© 2012 Autodesk 20
  • 21. Backup Report SELECT Backup on || b.start_time as "Backup Name", b.status as "Status", TO_CHAR(b.start_time, MON DD, YYYY HH12:MI:SS PM) as "Start Time", b.time_taken_display as "Time Taken", b.input_type as "Type", b.output_device_type as "Output Devices", b.input_bytes_display as "Input Size", b.output_bytes_display as "Output Size", b.output_bytes_per_sec_display as "Output Rate (Per Sec)" FROM V$RMAN_BACKUP_JOB_DETAILS b ORDER BY b.start_time DESC;© 2012 Autodesk 21
  • 22. Improvements Achieved Standard Oracle software technology stack Standard commodity hardware (HP DL580s) Standard Oracle database version across all Tier1 Apps (11gR2) Standard Operating System (RedHat) Simplified technology portfolio Standards == Simplicity© 2012 Autodesk 22
  • 23. Tips for Success Read the documentation thoroughly, it’s time consuming but really worth it  RMAN Documentation http://goo.gl/bdgKW  High Availability Best Practices http://goo.gl/6nOmG  MOS RMAN Master Note (ID 1116484.1) http://goo.gl/rUU67  Backing Up and Recovering VLDBs http://goo.gl/uvpuq  Oracle RMAN Design Best Practices with Data Domain http://goo.gl/gfI6q Test your backups and DR processes periodically, at least yearly Test various failure scenarios and document remediation for each © 2012 Autodesk 23
  • 24. Questions? Maya image courtesy of Gravity© 2012 Autodesk 24
  • 25. Autodesk, AutoCAD, Alias, Autodesk Inventor, Inventor, Maya, Mudbox, and 3ds Max are registered trademarks or trademarks of Autodesk, Inc., and/or its subsidiaries and/or affiliates in the USA and/or other countries. mental ray is a registered trademark of mental images GmbH licensed for use by Autodesk, Inc. All other brandnames, product names, or trademarks belong to their respective holders. Autodesk is not responsible for typographical or graphical errors that may appear in this document.© 2012 Autodesk, Inc. All rights reserved. © 2012 Autodesk