rmangt; show all; configure archivelog deletion policy to none; 在oracle10g 11g 中 归档删除策略 缺省是没有配置的; 那么
rman> show all;
configure archivelog deletion policy to none;
在oracle10g 11g 中 归档删除策略 缺省是没有配置的;
那么这时去删除未应用过的的归档日志会是怎么一种情况:
rman> delete archivelog all;
released channel: ora_disk_1
allocated channel: ora_disk_1
channel ora_disk_1: sid=60 device type=disk
rman-08137: warning: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/app/ora11/flash_recovery_area/1_2019_822927217.dbf thread=1 sequence=2019
rman-08137: warning: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/app/ora11/flash_recovery_area/1_2023_822927217.dbf thread=1 sequence=2023
rman-08137: warning: archived log not deleted, needed for standby or upstream capture process
oracle 抛出报警;warning 归档日志没有删除,归档日志需要用作standby 或者 stream 捕获进程使用
关于rman中这个配置策略:
configure archivelog deletion policy to applied on standby
不是自动删除归档。而是删除的时候确认归档已经被data guard、流环境所应用。这个功能的目的是避免删除其他功能所需要的归档日志。
如果配置归档删除策略:
configure archivelog deletion policy to applied on standby;
configure snapshot controlfile name to '/u01/app/oracle/product/11.2.0/db_home/dbs/snapcf_oradb1.f'; # default
尝试删除归档日志:
rman> delete archivelog all;
released channel: ora_disk_1
allocated channel: ora_disk_1
channel ora_disk_1: sid=27 instance=oradb1 device type=disk
list of archived log copies for database with db_unique_name oradb
=====================================================================
key thrd seq s low time
------- ---- ------- - --------------------
2526 2 350 a 22-nov-2014 02:01:04
name: +flash/oradb/archivelog/2014_11_24/thread_2_seq_350.600.864470143
2527 2 351 a 23-nov-2014 13:01:27
name: +flash/oradb/archivelog/2014_11_24/thread_2_seq_351.620.864470173
2531 2 352 a 24-nov-2014 10:29:04
name: +flash/oradb/archivelog/2014_11_26/thread_2_seq_352.554.864634011
do you really want to delete the above objects (enter yes or no)? yes
deleted archived log
archived log file name=+flash/oradb/archivelog/2014_11_24/thread_2_seq_350.600.864470143 recid=2526 stamp=864470171
deleted archived log
archived log file name=+flash/oradb/archivelog/2014_11_24/thread_2_seq_351.620.864470173 recid=2527 stamp=864470193
deleted archived log
archived log file name=+flash/oradb/archivelog/2014_11_26/thread_2_seq_352.554.864634011 recid=2531 stamp=864634090
deleted 3 objects
rman-08591: warning: invalid archived log deletion policy
[oracle@vmrac1 ~]$ oerr rman 8591
8591, 3, warning: invalid archived log deletion policy
// *cause: an invalid archivelog deletion policy was supplied. the archived
// log deletion policy was applied but there was no mandatory
// archived log destinations.
// *action: one of the following:
// 1) change archived log deletion policy using configure command
// 2) make one or more of standby destination as mandatory.
--------------------------------------推荐阅读 --------------------------------------
rman 配置归档日志删除策略
oracle基础教程之通过rman复制数据库
rman备份策略制定参考内容
rman备份学习笔记
oracle数据库备份加密 rman加密
--------------------------------------分割线 --------------------------------------
本文永久更新链接地址:
,