前端之家收集整理的这篇文章主要介绍了
处理Oracle数据库闪回区空间满的问题,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
处理Oracle数据库闪回区空间满的问题
作者:赵全文 网名:guestart
@H_
403_24@
今天早上一到单位,发现EMCC上有一台数据库服务器的概览页面出现黄色报警,
@H_
403_24@

@H_
403_24@
查询alert_orcl13.log发现如下报错,
@H_
403_24@
Errors in file /u01/app/oracle/diag/rdbms/orcl13/orcl13/trace/orcl13_arc3_34080.trc:
@H_
403_24@
ORA-19815: WARNING: db_recovery_file_dest_size of 68719476736 bytes is 100.00% used,and has 0 remaining bytes available.
@H_
403_24@
system command was used to delete files,then use RMAN CROSSCHECK and
@H_
403_24@
************************************************************************
@H_
403_24@
DELETE EXPIRED commands.
@H_
403_24@
You have following choices to free up spacefrom recovery area:
@H_
403_24@
************************************************************************
@H_
403_24@
1. Consider changing RMAN RETENTION POLICY.If you are using Data Guard,
@H_
403_24@
ARC0: Error 19809 Creating archive log fileto '+DATA'
@H_
403_24@
then consider changing RMAN ARCHIVELOG DELETION POLICY.
@H_
403_24@
2. Back up files to tertiary device such astape using RMAN
@H_
403_24@
BACKUP RECOVERY AREA command.
@H_
403_24@
3. Add disk space and increasedb_recovery_file_dest_size parameter to
@H_
403_24@
reflect the new space.
@H_
403_24@
4. Delete unnecessary files using RMANDELETE command. If an operating
@H_
403_24@
system command was used to delete files,then use RMAN CROSSCHECK and
@H_
403_24@
DELETE EXPIRED commands.
@H_
403_24@
************************************************************************
@H_
403_24@
发现闪回区的容量已经达到100%,于是查找闪回区的容量当前为多少G?
@H_
403_24@
SYS@orcl13> show parameterdb_recovery_file_dest_size;
NAME TYPE VALUE
---------------------------- ------------ ---------
db_recovery_file_dest_size big integer 64G
增大闪回区的容量为100G

@H_
403_24@
顺便查看一下归档文件所在的位置,
@H_
403_24@

@H_
403_24@
噢,顿时明白,是归档文件保存在闪回区,把闪回区的容量撑爆了。
@H_
403_24@
归档文件一直在增加,有也可能是用rman备份的时候,没有设置归档日志的清除策略,也有可能是没有进行rman备份。
@H_
403_24@
查看一下是否进行了rman备份
@H_
403_24@

@H_
403_24@
原来是没有进行rman备份,由于是测试库,在开启归档功能以后,没有用rman备份导致的
@H_
403_24@
现在把rman备份开启
@H_
403_24@

@H_
403_24@
再次查看alert_orcl13.log的日志文件,已经切换归档操作,一切正常了。
@H_
403_24@

@H_
403_24@
如您觉得此篇文章对您有帮助,欢迎关注微信公众号:guestart的DBA学习笔记,您的支持是对我最大的鼓励!
