ITPub博客

首页 > 数据库 > Oracle > Backing Up Logs with BACKUP … PLUS ARCHIVELOG

Backing Up Logs with BACKUP … PLUS ARCHIVELOG

原创 Oracle 作者:liglewang 时间:2011-08-26 17:03:48 0 删除 编辑

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博客 ” ,链接:https://blog.itpub.net/25834554/viewspace-1054413/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-09-02

  • 博文量
    52
  • 访问量
    320718