Backing Up Logs with BACKUP … PLUS ARCHIVELOG

liglewang發表於2011-08-26

You can add archived redo logs to a backup of other files by the BACKUP … PLUS ARCHIVELOG clause.Adding BACKUP … PLUS ARCHIVELOG causes RMAN to do the following:

  1. Runs the ALTER SYSTEM ARCHIVE LOG CURRENT command.
  2. Runs BACKUP ARCHIVELOG ALL. Note that if backup optimization is enabled,then RMAN skips logs that it has alreadly backed up to the specified device.
  3. Backs up the rest of the files specified in BACKUP command.
  4. Runs the ALTER SYSTEM ARCHIVE LOG CURRENT command.
  5. Backs up any remaining archived logs generated during the backup.

This guarantees that datafile backups taken during the command ared recoverable to a consistent state.

e.g.

RMAN> BACKUP DEVICE TYPE sbt DATABASE PLUS ARCHIVELOG;

Note: If backup optimization is enabled,then RMAN skips backups of archived logs that have alreadly been backed up to the specified device.[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25834554/viewspace-1054413/,如需轉載,請註明出處,否則將追究法律責任。

相關文章