【问题标题】:Retention Policy with RMAN Incremental BackupsRMAN 增量备份的保留策略
【发布时间】:2017-11-26 13:51:08
【问题描述】:

我已经在我的 Oracle 11gR2 测试数据库机器上配置了 RMAN 增量备份,该机器在 Windows 环境中运行。我已将保留政策设置为 7 天的恢复窗口。周日我采取零级增量备份如下:

run {
     HOST 'create_date_folder';
     allocate channel ch1 device type disk format 'F:\RMAN_BACKUPS\Database\%T\rman_0LVL_%d_s%s_p%p_t%t_%U';
     allocate channel ch2 device type disk format 'F:\RMAN_BACKUPS\Database\%T\rman_0LVL_%d_s%s_p%p_t%t_%U';
     allocate channel ch3 device type disk format 'F:\RMAN_BACKUPS\Database\%T\rman_0LVL_%d_s%s_p%p_t%t_%U';
     BACKUP INCREMENTAL LEVEL 0 AS COMPRESSED BACKUPSET DATABASE PLUS ARCHIVELOG;
     release channel ch1;
     release channel ch2;
     release channel ch3;
    }

在其他工作日,我进行 1 级累积增量备份,如下所示:

run {
     HOST 'create_date_folder';
     allocate channel ch1 device type disk format 'F:\RMAN_BACKUPS\Database\%T\rman_1LVL_%d_s%s_p%p_t%t_%U';
     allocate channel ch2 device type disk format 'F:\RMAN_BACKUPS\Database\%T\rman_1LVL_%d_s%s_p%p_t%t_%U';
     allocate channel ch3 device type disk format 'F:\RMAN_BACKUPS\Database\%T\rman_1LVL_%d_s%s_p%p_t%t_%U';
     BACKUP INCREMENTAL LEVEL 1 AS COMPRESSED BACKUPSET CUMULATIVE DATABASE PLUS ARCHIVELOG;
     release channel ch1;
     release channel ch2;
     release channel ch3;
   }

我面临的问题是,尽管设置了保留策略,但旧备份(超过两周)并未被 RMAN 视为过时/过期,因为它们不会通过执行删除删除过时的命令。而且,第二个问题是如何限制 RMAN 不删除 Oracle 生成的存档日志。请指导。

【问题讨论】:

    标签: database oracle rman


    【解决方案1】:

    请打印 SHOW ALL rman 命令的内容。

    如果你是 FRA,请执行 select * from V$RECOVERY_FILE_DEST;

    对于第二个问题,这取决于您为 rman ARCHIVELOG DELETION POLICY 配置参数设置了什么以及您使用的是 FRA 还是 NO。

    【讨论】:

      猜你喜欢
      • 2019-09-11
      • 2018-06-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-06
      • 1970-01-01
      • 1970-01-01
      • 2021-01-16
      相关资源
      最近更新 更多