RMAN备份时出现ORA-19809: limit exceeded for recovery files

本文介绍了当遇到Oracle数据库备份过程中因flash_recovery_area空间不足导致的错误时的解决方法。通过调整db_recovery_file_dest_size参数扩大备份空间,最终使备份任务顺利完成。
RMAN>  backup database plus archivelog delete input; 
.
.
.
channel ORA_DISK_1: starting piece 1 at 04-APR-14
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 04/04/2014 14:53:41
ORA-19809: limit exceeded for recovery files
ORA-19804: cannot reclaim 52428800 bytes disk space from 2147483648 limit
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current control file in backupset
including current SPFILE in backupset
channel ORA_DISK_1: starting piece 1 at 04-APR-14
channel ORA_DISK_1: finished piece 1 at 04-APR-14
piece handle=/u01/app/oracle/flash_recovery_area/JIAGULUN/backupset/2014_04_04/o1_mf_ncsnf_TAG20140404T142449_9mwoqzjq_.bkp tag=TAG20140404T142449 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:09
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup plus archivelog command at 04/04/2014 14:53:55

RMAN-03009: failure of backup command on ORA_DISK_1 channel at 04/04/2014 14:53:41
ORA-19809: limit exceeded for recovery files
ORA-19804: cannot reclaim 52428800 bytes disk space from 2147483648 limit

原因:flash_recovery_area空间不足

检查flash_recovery_area使用情况
SQL>  select file_type, percent_space_used as used,percent_space_reclaimable as reclaimable,number_of_files as "number" from v$flash_recovery_area_usage;

FILE_TYPE                      USED RECLAIMABLE     number
------------------------ ---------- ----------- ----------
CONTROLFILE                     .33           0          1
ONLINELOG                      7.32           0          3
ARCHIVELOG                        0           0          0
BACKUPPIECE                    1.05           0          2
IMAGECOPY                         0           0          0
FLASHBACKLOG                      0           0          0
6 rows selected.

检查db_recovery_file_dest_size参数
SQL> show parameter db_recovery_file_dest_size

NAME                                 TYPE                   VALUE
------------------------------------ ---------------------- ------------------------------
db_recovery_file_dest_size           big integer            2G(默认)

将参数db_recovery_file_dest_size增大为10G
SQL> alter system set db_recovery_file_dest_size=10G scope=both;
System altered.

再次备份,成功
RMAN>  backup database plus archivelog delete input; 


Starting backup at 04-APR-14
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=98 recid=2 stamp=844012417
channel ORA_DISK_1: starting piece 1 at 04-APR-14
channel ORA_DISK_1: finished piece 1 at 04-APR-14
piece handle=/u01/app/oracle/flash_recovery_area/JIAGULUN/backupset/2014_04_04/o1_mf_annnn_TAG20140404T155339_9mws87oo_.bkp tag=TAG20140404T155339 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:08
channel ORA_DISK_1: deleting archive log(s)
archive log filename=/home/oracle/arch/1_98_778070496.dbf recid=2 stamp=844012417
Finished backup at 04-APR-14

Starting backup at 04-APR-14
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00002 name=/u01/app/oracle/oradata/JIAGULUN/datafile/o1_mf_undotbs1_7p5b155m_.dbf
input datafile fno=00004 name=/u01/app/oracle/oradata/JIAGULUN/datafile/o1_mf_users_7p5b157q_.dbf
input datafile fno=00001 name=/u01/app/oracle/oradata/JIAGULUN/datafile/o1_mf_system_7p5b14xs_.dbf
input datafile fno=00003 name=/u01/app/oracle/oradata/JIAGULUN/datafile/o1_mf_sysaux_7p5b14yl_.dbf
input datafile fno=00005 name=/u01/app/oracle/oradata/JIAGULUN/datafile/o1_mf_example_7p5b3r36_.dbf
channel ORA_DISK_1: starting piece 1 at 04-APR-14
channel ORA_DISK_1: finished piece 1 at 04-APR-14
piece handle=/u01/app/oracle/flash_recovery_area/JIAGULUN/backupset/2014_04_04/o1_mf_nnndf_TAG20140404T155352_9mws8m8v_.bkp tag=TAG20140404T155352 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:29:58
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current control file in backupset
including current SPFILE in backupset
channel ORA_DISK_1: starting piece 1 at 04-APR-14
channel ORA_DISK_1: finished piece 1 at 04-APR-14
piece handle=/u01/app/oracle/flash_recovery_area/JIAGULUN/backupset/2014_04_04/o1_mf_ncsnf_TAG20140404T155352_9mwv12gj_.bkp tag=TAG20140404T155352 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
Finished backup at 04-APR-14

Starting backup at 04-APR-14
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=99 recid=3 stamp=844014253
channel ORA_DISK_1: starting piece 1 at 04-APR-14
channel ORA_DISK_1: finished piece 1 at 04-APR-14
piece handle=/u01/app/oracle/flash_recovery_area/JIAGULUN/backupset/2014_04_04/o1_mf_annnn_TAG20140404T162415_9mwv1kbm_.bkp tag=TAG20140404T162415 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04
channel ORA_DISK_1: deleting archive log(s)
archive log filename=/home/oracle/arch/1_99_778070496.dbf recid=3 stamp=844014253
Finished backup at 04-APR-14


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/27500440/viewspace-1136208/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/27500440/viewspace-1136208/

RMAN> backup database plus archivelog; Starting backup at 22-OCT-25 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=86 device type=DISK channel ORA_DISK_1: starting archived log backup set channel ORA_DISK_1: specifying archived log(s) in backup set input archived log thread=1 sequence=10 RECID=7 STAMP=1214750292 channel ORA_DISK_1: starting piece 1 at 22-OCT-25 channel ORA_DISK_1: finished piece 1 at 22-OCT-25 piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2025_10_22/o1_mf_annnn_TAG20251022T091505_nhjd0s8j_.bkp tag=TAG20251022T091505 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01 Finished backup at 22-OCT-25 Starting backup at 22-OCT-25 using channel ORA_DISK_1 channel ORA_DISK_1: starting full datafile backup set channel ORA_DISK_1: specifying datafile(s) in backup set input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf input datafile file number=00002 name=/u01/app/oracle/oradata/orcl/sysaux01.dbf input datafile file number=00005 name=/u01/app/oracle/oradata/ORCL/testdb01.dbf input datafile file number=00003 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf input datafile file number=00004 name=/u01/app/oracle/oradata/orcl/users01.dbf channel ORA_DISK_1: starting piece 1 at 22-OCT-25 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of backup plus archivelog command at 10/22/2025 09:15:09 ORA-19809: limit exceeded for recovery files ORA-19804: cannot reclaim 67108864 bytes disk space from 4385144832 limit
最新发布
10-23
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值