managing enterprise-wide backup and recovery operations

60
Media Recovery Media Recovery via Enterprise via Enterprise Manager Manager Matthew Hart Matthew Hart July 2006 July 2006 TCOUG TCOUG

Upload: networkingcentral

Post on 22-Nov-2014

878 views

Category:

Documents


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Managing Enterprise-Wide Backup and Recovery Operations

Media Recovery via Media Recovery via Enterprise ManagerEnterprise Manager

Matthew HartMatthew HartJuly 2006July 2006TCOUGTCOUG

Page 2: Managing Enterprise-Wide Backup and Recovery Operations

22

AgendaAgenda

Configuring Backup SettingsConfiguring Backup Settings Configuring Recovery SettingsConfiguring Recovery Settings Configure Recovery Catalog SettingsConfigure Recovery Catalog Settings EM and Oracle Suggested BackupsEM and Oracle Suggested Backups Scheduling Customized Backup JobsScheduling Customized Backup Jobs Recovery from EMRecovery from EM Managing Existing Backups in EMManaging Existing Backups in EM Database cloning (duplication)Database cloning (duplication)

Page 3: Managing Enterprise-Wide Backup and Recovery Operations

Configure Backup Configure Backup Settings in EMSettings in EM

Page 4: Managing Enterprise-Wide Backup and Recovery Operations

44

Configure Backup SettingsConfigure Backup Settings

Device TabDevice Tab Disk SettingsDisk Settings

Set compression hereSet compression here

Tape SettingsTape Settings Set compression hereSet compression here

Media Management SettingsMedia Management Settings Host CredentialsHost Credentials

Page 5: Managing Enterprise-Wide Backup and Recovery Operations

55

Page 6: Managing Enterprise-Wide Backup and Recovery Operations

66

Page 7: Managing Enterprise-Wide Backup and Recovery Operations

77

Configure Backup SettingsConfigure Backup Settings

Backup Set TabBackup Set Tab Max piece sizeMax piece size Tape settingsTape settings Host CredentialsHost Credentials

Page 8: Managing Enterprise-Wide Backup and Recovery Operations

88

Page 9: Managing Enterprise-Wide Backup and Recovery Operations

99

Configure Backup SettingsConfigure Backup Settings

Policy TabPolicy Tab Set autobackup onSet autobackup on Backup optimizationBackup optimization Enable block change trackingEnable block change tracking Tablespace exclusionsTablespace exclusions Retention policyRetention policy Host CredentialsHost Credentials

Page 10: Managing Enterprise-Wide Backup and Recovery Operations

1010

Page 11: Managing Enterprise-Wide Backup and Recovery Operations

1111

Page 12: Managing Enterprise-Wide Backup and Recovery Operations

1212

Configure Backup SettingsConfigure Backup Settings

What’s missing?What’s missing? EncryptionEncryption Default Device typeDefault Device type Archive Deletion PolicyArchive Deletion Policy Snapshot Controlfile LocationSnapshot Controlfile Location No throttling valuees available for permanent No throttling valuees available for permanent

configurationconfiguration

Page 13: Managing Enterprise-Wide Backup and Recovery Operations

Configure Recovery Configure Recovery SettingsSettings

Page 14: Managing Enterprise-Wide Backup and Recovery Operations

1414

Configure Recovery SettingsConfigure Recovery Settings

FAST_START_MTTR_TARGETFAST_START_MTTR_TARGET Archivelog ModeArchivelog Mode Archivelog destinationsArchivelog destinations Flash Recovery AreaFlash Recovery Area

Note the nice little graph of used space in Note the nice little graph of used space in FRAFRA

Flashback DatabaseFlashback Database

Page 15: Managing Enterprise-Wide Backup and Recovery Operations

1515

Page 16: Managing Enterprise-Wide Backup and Recovery Operations

1616

Page 17: Managing Enterprise-Wide Backup and Recovery Operations

1717

Page 18: Managing Enterprise-Wide Backup and Recovery Operations

Configuring the Recovery Configuring the Recovery CatalogCatalog

Page 19: Managing Enterprise-Wide Backup and Recovery Operations

1919

Configure Recovery Catalog Configure Recovery Catalog SettingsSettings

Enterprise Manager is incapable of Enterprise Manager is incapable of creating a recovery catalog. It can only creating a recovery catalog. It can only register a catalog that has already been register a catalog that has already been created from the command linecreated from the command line

EM will only register an existing catalog in EM will only register an existing catalog in the EM repositorythe EM repository

Page 20: Managing Enterprise-Wide Backup and Recovery Operations

2020

Page 21: Managing Enterprise-Wide Backup and Recovery Operations

EM Suggested Backup EM Suggested Backup StrategyStrategy

Page 22: Managing Enterprise-Wide Backup and Recovery Operations

2222

Oracle-Suggested Backup Oracle-Suggested Backup StrategiesStrategies

Oracle has built-in backup strategies Oracle has built-in backup strategies within EM within EM

Utilizes EM job systemUtilizes EM job system Takes advantage of RMAN 10g Takes advantage of RMAN 10g

innovationsinnovations Take them or leave them: they are not Take them or leave them: they are not

‘tweakable’‘tweakable’

Page 23: Managing Enterprise-Wide Backup and Recovery Operations

2323

EM and Oracle Suggested EM and Oracle Suggested Backups: Disk-only strategyBackups: Disk-only strategy

Oracle-Suggested Strategy uses Oracle-Suggested Strategy uses incrementally updated image copiesincrementally updated image copies Takes one image copyTakes one image copy Takes a new level 1 next dayTakes a new level 1 next day Day 2, level 1 is applied to image copy, new Day 2, level 1 is applied to image copy, new

level 1 is takenlevel 1 is taken Backup remains at least 24 hours behind Backup remains at least 24 hours behind

current time, up to 48 hourscurrent time, up to 48 hours

Page 24: Managing Enterprise-Wide Backup and Recovery Operations

2424

Page 25: Managing Enterprise-Wide Backup and Recovery Operations

2525

Oracle Suggested Backup Oracle Suggested Backup Strategy: Tape OnlyStrategy: Tape Only

No backups ever created in the FRANo backups ever created in the FRA No incremental apply functionalityNo incremental apply functionality Two rman scripts: daily and weeklyTwo rman scripts: daily and weekly Weekly: full database backup plus Weekly: full database backup plus

archivelogsarchivelogs Daily: incremental backup of changed Daily: incremental backup of changed

blocks, plus archivelogs (if desired)blocks, plus archivelogs (if desired)

Page 26: Managing Enterprise-Wide Backup and Recovery Operations

2626

Oracle Suggested Backup Oracle Suggested Backup Strategy: Disk and TapeStrategy: Disk and Tape

Disk strategy is the same as disk-only strategyDisk strategy is the same as disk-only strategy Full image copy in the FRAFull image copy in the FRA Incremental backups, incremental applyIncremental backups, incremental apply

Tape strategy requires a decision: what do you Tape strategy requires a decision: what do you want daily?want daily? Weekly, all recovery files are backed up to tapeWeekly, all recovery files are backed up to tape Daily, you choose: nothing, archivelogs only, Daily, you choose: nothing, archivelogs only,

archivelogs + incrementals, or archivelogs + full archivelogs + incrementals, or archivelogs + full database backupsetdatabase backupset

Page 27: Managing Enterprise-Wide Backup and Recovery Operations

2727

Oracle-Suggested Strategies: Right Oracle-Suggested Strategies: Right for You and Yours?for You and Yours?

Benefits: ‘set and forget’Benefits: ‘set and forget’ Good for low priority dev databases with Good for low priority dev databases with

permissive or non-existent SLAspermissive or non-existent SLAs May not provide level of detail or control May not provide level of detail or control

required for enterprise-dependent systemsrequired for enterprise-dependent systems

Page 28: Managing Enterprise-Wide Backup and Recovery Operations

Scheduling Customized Scheduling Customized Backups in EMBackups in EM

Page 29: Managing Enterprise-Wide Backup and Recovery Operations

2929

Scheduling Customized Backup Scheduling Customized Backup JobsJobs

Always starts with type of backupAlways starts with type of backup DatabaseDatabase TablespaceTablespace DatafileDatafile ArchivelogArchivelog All recovery filesAll recovery files

Page 30: Managing Enterprise-Wide Backup and Recovery Operations

3030

Page 31: Managing Enterprise-Wide Backup and Recovery Operations

3131

Page 32: Managing Enterprise-Wide Backup and Recovery Operations

3232

Page 33: Managing Enterprise-Wide Backup and Recovery Operations

3333

Page 34: Managing Enterprise-Wide Backup and Recovery Operations

3434

Page 35: Managing Enterprise-Wide Backup and Recovery Operations

Performing Recovery in Performing Recovery in EMEM

Page 36: Managing Enterprise-Wide Backup and Recovery Operations

3636

Performing Recovery from EMPerforming Recovery from EM

Displayed as an option if the database is not Displayed as an option if the database is not upup

In 10gR2, there is guided recovery based on In 10gR2, there is guided recovery based on health checkshealth checks

Some intelligence concerning what type of Some intelligence concerning what type of recovery should be undertakenrecovery should be undertaken

Recovery includes object level recovery optionRecovery includes object level recovery option If tables is chosen, flashback recovery options are If tables is chosen, flashback recovery options are

made availablemade available

Page 37: Managing Enterprise-Wide Backup and Recovery Operations

3737

Should I use EM for critical Should I use EM for critical database recovery?database recovery?

EM and panic don’t go hand in handEM and panic don’t go hand in hand Down databases are no time for a big read Down databases are no time for a big read

‘Easy’ button‘Easy’ button Control is desired at every decision Control is desired at every decision

momentmoment It’s a good complement for databases that It’s a good complement for databases that

use the Oracle Suggested Backup use the Oracle Suggested Backup StrategyStrategy

Page 38: Managing Enterprise-Wide Backup and Recovery Operations

3838

Page 39: Managing Enterprise-Wide Backup and Recovery Operations

Managing Current Managing Current Backups in EMBackups in EM

Page 40: Managing Enterprise-Wide Backup and Recovery Operations

4040

Manage Current BackupsManage Current Backups

Perform common admin tasksPerform common admin tasks Catalog filesCatalog files CrosscheckCrosscheck Delete obsoleteDelete obsolete Delete expiredDelete expired

Manage all files with quick links, or administer Manage all files with quick links, or administer individual backupsets or image copiesindividual backupsets or image copies

Perform a search based on type of backup, Perform a search based on type of backup, and completion timeand completion time

Page 41: Managing Enterprise-Wide Backup and Recovery Operations

4141

Page 42: Managing Enterprise-Wide Backup and Recovery Operations

4242

Page 43: Managing Enterprise-Wide Backup and Recovery Operations

Backup ReportsBackup Reports

Page 44: Managing Enterprise-Wide Backup and Recovery Operations

4444

Backup ReportsBackup Reports

Backups can be viewed based on multiple Backups can be viewed based on multiple criteriacriteria

Drill-down allows user to see which files Drill-down allows user to see which files are in which backupsetsare in which backupsets

In Grid Control, can view multiple-target In Grid Control, can view multiple-target report report This only works for 10.2 databasesThis only works for 10.2 databases

Page 45: Managing Enterprise-Wide Backup and Recovery Operations

4545

Page 46: Managing Enterprise-Wide Backup and Recovery Operations

4646

Page 47: Managing Enterprise-Wide Backup and Recovery Operations

Oracle Database CloningOracle Database Cloning

Page 48: Managing Enterprise-Wide Backup and Recovery Operations

4848

Database CloningDatabase Cloning

Database cloning uses RMAN backups Database cloning uses RMAN backups and the duplication process to build a and the duplication process to build a cloneclone

All RMAN use is ‘behind the scenes’ from All RMAN use is ‘behind the scenes’ from EM EM

Clone from the deployments pageClone from the deployments page

Page 49: Managing Enterprise-Wide Backup and Recovery Operations

4949

Database Cloning (cont.)Database Cloning (cont.)

Grid Control onlyGrid Control only Can clone from a running db, or form a Can clone from a running db, or form a

‘working directory’ created from a previous ‘working directory’ created from a previous cloneclone

Existing RMAN backups cannot be usedExisting RMAN backups cannot be used

Page 50: Managing Enterprise-Wide Backup and Recovery Operations

5050

Page 51: Managing Enterprise-Wide Backup and Recovery Operations

5151

Database CloningDatabase Cloning

Choose a source host working directoryChoose a source host working directory Choose to compress the backupChoose to compress the backup Choose to retain the working dir, or delete Choose to retain the working dir, or delete

on completionon completion

Page 52: Managing Enterprise-Wide Backup and Recovery Operations

5252

Page 53: Managing Enterprise-Wide Backup and Recovery Operations

5353

Database CloningDatabase Cloning

Choose Destination database Choose Destination database global_name, SIDglobal_name, SID

Choose storage type (files, ASM, raw)Choose storage type (files, ASM, raw) Choose hostChoose host

Page 54: Managing Enterprise-Wide Backup and Recovery Operations

5454

Page 55: Managing Enterprise-Wide Backup and Recovery Operations

5555

Database CloningDatabase Cloning

Choose Destination file locationsChoose Destination file locations Provide information about networking filesProvide information about networking files Decide if new clone will be registered with Decide if new clone will be registered with

EM Grid ControlEM Grid Control

Page 56: Managing Enterprise-Wide Backup and Recovery Operations

5656

Page 57: Managing Enterprise-Wide Backup and Recovery Operations

5757

Database CloningDatabase Cloning

Schedule and review Schedule and review the jobthe job

Page 58: Managing Enterprise-Wide Backup and Recovery Operations

5858

Page 59: Managing Enterprise-Wide Backup and Recovery Operations

5959

Q & AQ & A

Page 60: Managing Enterprise-Wide Backup and Recovery Operations

Q & AQ & A