11.07.2015 Views

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

400 CHAPTER 9 ■ STORAGE MANAGEMENTASMCMD> cp +data/DBA<strong>11</strong>g1/DATAFILE/ALERT_D1.267.631889077+FRA/DBA<strong>11</strong>G1/alert_d1.dbfsource +data/DBA<strong>11</strong>g1/DATAFILE/ALERT_D1.267.631889077target +FRA/DBA<strong>11</strong>G1/alert_d1.dbfcopying file(s)...file, +FRA/dba<strong>11</strong>g1/alert_d1.dbf, copy committed.The syntax to copy files between one local diskgroup to another local diskgroup is straightforward.You can copy files between one diskgroup to another diskgroup or even to the samediskgroup. You can also leverage the copy command to copy files from ASM to a local file system.As the last example, we’ll copy the docs_d4 datafile to the /oradata/DBATOOLS/ directory on thefile system:ASMCMD> cp +DATA/DBA<strong>11</strong>G1/DATAFILE/DOCS_D4.276.631890065/oradata/DBATOOLS/docs_d4.dbfsource +DATA/DBA<strong>11</strong>G1/DATAFILE/DOCS_D4.276.631890065target /oradata/DBATOOLS/docs_d4.dbfcopying file(s)...file, /oradata/DBATOOLS/docs_d4.dbf, copy committed.Metadata Backup and RestoreAs far as the ASM ecosystem is concerned, there isn’t much to back up. The only files that canbe backed up are the initialization file or the spfile depending on the database standards for thecompany. Possibly, the $ORACLE_BASE/diag directory may need to be backed up if you are interestedin preserving the log files.<strong>Oracle</strong> <strong>Database</strong> <strong>11</strong>g provides the capability to back up the ASM diskgroup structure andattributes including ASM aliases, directories, or templates. In <strong>Oracle</strong> <strong>Database</strong> 10g, objectssuch as aliases, directories, or templates have to be manually re-created after the restore. Priorto <strong>Oracle</strong> <strong>Database</strong> <strong>11</strong>g, ASM metadata for the diskgroups could not be backed up because themetadata resides on the disk headers. We recommend that DBAs utilize the ASM MetadataBackup and Restore (AMBR) utility coupled with a solid RMAN backup strategy to provide thecomplete database recovery solution. Using the AMBR tools, you can protect the diskgroupstructures since AMBR tools provide the facility to back up and restore the original ASM diskgroupwith the same template and alias directory structures. <strong>Oracle</strong> <strong>Database</strong> <strong>11</strong>g introducesAMBR’s md_backup and md_restore commands to provide a comprehensive level of protectionfor the ASM environment. Extensions to the asmcmd utility provide this extra level of protectionfor ASM:• md_backup [-o ] [-g diskgroup_name [-g diskgroup_name …]]• md_restore [ -t full|nodg|newdg]-fi -g dgname [-g dgname] [–o] [-of ][-i] [-l< log_file>]Backup Diskgroup Using md_backupThe md_backup command captures information about ASM disks, diskgroup and failure groupconfigurations, and template and alias directory structures, and it creates a user-designated

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!