Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Managing Enterprise-Wide Backup and Recovery Operations


Published on

  • Be the first to comment

  • Be the first to like this

Managing Enterprise-Wide Backup and Recovery Operations

  1. 1. Media Recovery via Enterprise Manager Matthew Hart July 2006 TCOUG
  2. 2. Agenda <ul><li>Configuring Backup Settings </li></ul><ul><li>Configuring Recovery Settings </li></ul><ul><li>Configure Recovery Catalog Settings </li></ul><ul><li>EM and Oracle Suggested Backups </li></ul><ul><li>Scheduling Customized Backup Jobs </li></ul><ul><li>Recovery from EM </li></ul><ul><li>Managing Existing Backups in EM </li></ul><ul><li>Database cloning (duplication) </li></ul>
  3. 3. Configure Backup Settings in EM
  4. 4. Configure Backup Settings <ul><li>Device Tab </li></ul><ul><ul><li>Disk Settings </li></ul></ul><ul><ul><ul><li>Set compression here </li></ul></ul></ul><ul><ul><li>Tape Settings </li></ul></ul><ul><ul><ul><li>Set compression here </li></ul></ul></ul><ul><ul><li>Media Management Settings </li></ul></ul><ul><ul><li>Host Credentials </li></ul></ul>
  5. 7. Configure Backup Settings <ul><li>Backup Set Tab </li></ul><ul><ul><li>Max piece size </li></ul></ul><ul><ul><li>Tape settings </li></ul></ul><ul><ul><li>Host Credentials </li></ul></ul>
  6. 9. Configure Backup Settings <ul><li>Policy Tab </li></ul><ul><ul><li>Set autobackup on </li></ul></ul><ul><ul><li>Backup optimization </li></ul></ul><ul><ul><li>Enable block change tracking </li></ul></ul><ul><ul><li>Tablespace exclusions </li></ul></ul><ul><ul><li>Retention policy </li></ul></ul><ul><ul><li>Host Credentials </li></ul></ul>
  7. 12. Configure Backup Settings <ul><li>What’s missing? </li></ul><ul><ul><li>Encryption </li></ul></ul><ul><ul><li>Default Device type </li></ul></ul><ul><ul><li>Archive Deletion Policy </li></ul></ul><ul><ul><li>Snapshot Controlfile Location </li></ul></ul><ul><ul><li>No throttling valuees available for permanent configuration </li></ul></ul>
  8. 13. Configure Recovery Settings
  9. 14. Configure Recovery Settings <ul><li>FAST_START_MTTR_TARGET </li></ul><ul><li>Archivelog Mode </li></ul><ul><li>Archivelog destinations </li></ul><ul><li>Flash Recovery Area </li></ul><ul><ul><li>Note the nice little graph of used space in FRA </li></ul></ul><ul><li>Flashback Database </li></ul>
  10. 18. Configuring the Recovery Catalog
  11. 19. Configure Recovery Catalog Settings <ul><li>Enterprise Manager is incapable of creating a recovery catalog. It can only register a catalog that has already been created from the command line </li></ul><ul><li>EM will only register an existing catalog in the EM repository </li></ul>
  12. 21. EM Suggested Backup Strategy
  13. 22. Oracle-Suggested Backup Strategies <ul><li>Oracle has built-in backup strategies within EM </li></ul><ul><li>Utilizes EM job system </li></ul><ul><li>Takes advantage of RMAN 10g innovations </li></ul><ul><li>Take them or leave them: they are not ‘tweakable’ </li></ul>
  14. 23. EM and Oracle Suggested Backups: Disk-only strategy <ul><li>Oracle-Suggested Strategy uses incrementally updated image copies </li></ul><ul><ul><li>Takes one image copy </li></ul></ul><ul><ul><li>Takes a new level 1 next day </li></ul></ul><ul><ul><li>Day 2, level 1 is applied to image copy, new level 1 is taken </li></ul></ul><ul><ul><li>Backup remains at least 24 hours behind current time, up to 48 hours </li></ul></ul>
  15. 25. Oracle Suggested Backup Strategy: Tape Only <ul><li>No backups ever created in the FRA </li></ul><ul><li>No incremental apply functionality </li></ul><ul><li>Two rman scripts: daily and weekly </li></ul><ul><li>Weekly: full database backup plus archivelogs </li></ul><ul><li>Daily: incremental backup of changed blocks, plus archivelogs (if desired) </li></ul>
  16. 26. Oracle Suggested Backup Strategy: Disk and Tape <ul><li>Disk strategy is the same as disk-only strategy </li></ul><ul><ul><li>Full image copy in the FRA </li></ul></ul><ul><ul><li>Incremental backups, incremental apply </li></ul></ul><ul><li>Tape strategy requires a decision: what do you want daily? </li></ul><ul><ul><li>Weekly, all recovery files are backed up to tape </li></ul></ul><ul><ul><li>Daily, you choose: nothing, archivelogs only, archivelogs + incrementals, or archivelogs + full database backupset </li></ul></ul>
  17. 27. Oracle-Suggested Strategies: Right for You and Yours? <ul><li>Benefits: ‘set and forget’ </li></ul><ul><li>Good for low priority dev databases with permissive or non-existent SLAs </li></ul><ul><li>May not provide level of detail or control required for enterprise-dependent systems </li></ul>
  18. 28. Scheduling Customized Backups in EM
  19. 29. Scheduling Customized Backup Jobs <ul><li>Always starts with type of backup </li></ul><ul><ul><li>Database </li></ul></ul><ul><ul><li>Tablespace </li></ul></ul><ul><ul><li>Datafile </li></ul></ul><ul><ul><li>Archivelog </li></ul></ul><ul><ul><li>All recovery files </li></ul></ul>
  20. 35. Performing Recovery in EM
  21. 36. Performing Recovery from EM <ul><li>Displayed as an option if the database is not up </li></ul><ul><li>In 10gR2, there is guided recovery based on health checks </li></ul><ul><li>Some intelligence concerning what type of recovery should be undertaken </li></ul><ul><li>Recovery includes object level recovery option </li></ul><ul><ul><li>If tables is chosen, flashback recovery options are made available </li></ul></ul>
  22. 37. Should I use EM for critical database recovery? <ul><li>EM and panic don’t go hand in hand </li></ul><ul><li>Down databases are no time for a big read ‘Easy’ button </li></ul><ul><li>Control is desired at every decision moment </li></ul><ul><li>It’s a good complement for databases that use the Oracle Suggested Backup Strategy </li></ul>
  23. 39. Managing Current Backups in EM
  24. 40. Manage Current Backups <ul><li>Perform common admin tasks </li></ul><ul><ul><li>Catalog files </li></ul></ul><ul><ul><li>Crosscheck </li></ul></ul><ul><ul><li>Delete obsolete </li></ul></ul><ul><ul><li>Delete expired </li></ul></ul><ul><li>Manage all files with quick links, or administer individual backupsets or image copies </li></ul><ul><li>Perform a search based on type of backup, and completion time </li></ul>
  25. 43. Backup Reports
  26. 44. Backup Reports <ul><li>Backups can be viewed based on multiple criteria </li></ul><ul><li>Drill-down allows user to see which files are in which backupsets </li></ul><ul><li>In Grid Control, can view multiple-target report </li></ul><ul><ul><li>This only works for 10.2 databases </li></ul></ul>
  27. 47. Oracle Database Cloning
  28. 48. Database Cloning <ul><li>Database cloning uses RMAN backups and the duplication process to build a clone </li></ul><ul><li>All RMAN use is ‘behind the scenes’ from EM </li></ul><ul><li>Clone from the deployments page </li></ul>
  29. 49. Database Cloning (cont.) <ul><li>Grid Control only </li></ul><ul><li>Can clone from a running db, or form a ‘working directory’ created from a previous clone </li></ul><ul><li>Existing RMAN backups cannot be used </li></ul>
  30. 51. Database Cloning <ul><li>Choose a source host working directory </li></ul><ul><li>Choose to compress the backup </li></ul><ul><li>Choose to retain the working dir, or delete on completion </li></ul>
  31. 53. Database Cloning <ul><li>Choose Destination database global_name, SID </li></ul><ul><li>Choose storage type (files, ASM, raw) </li></ul><ul><li>Choose host </li></ul>
  32. 55. Database Cloning <ul><li>Choose Destination file locations </li></ul><ul><li>Provide information about networking files </li></ul><ul><li>Decide if new clone will be registered with EM Grid Control </li></ul>
  33. 57. Database Cloning <ul><li>Schedule and review the job </li></ul>
  34. 59. Q & A
  35. 60. Q & A