Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9168418
  • 博文数量: 1669
  • 博客积分: 16831
  • 博客等级: 上将
  • 技术积分: 12594
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-25 07:23
个人简介

柔中带刚,刚中带柔,淫荡中富含柔和,刚猛中荡漾风骚,无坚不摧,无孔不入!

文章分类

全部博文(1669)

文章存档

2023年(4)

2022年(1)

2021年(10)

2020年(24)

2019年(4)

2018年(19)

2017年(66)

2016年(60)

2015年(49)

2014年(201)

2013年(221)

2012年(638)

2011年(372)

分类: Oracle

2011-11-25 16:21:32

如何清理Flash Recovery Area [复制链接]
2011-11-25 13:53
如何清理Flash Recovery

电梯直达
1#
发表于 2008-7-30 11:58:44 |只看该作者|倒序浏览
我用rman crosscheck了一下,清理了过期的rman备份。
但是发现v$recovery_file_dest中的space_reclaimable是0,怎么能让它变大呢?请指教,谢谢

 
2#
发表于 2008-7-30 12:16:02 |只看该作者
SELECT * FROM V$FLASH_REOCVERY_AREA_USAGE;
看看被哪些文件占用
退隐江湖~
躲得过刀光剑影,躲不过蚊虫叮咬
 
3#
发表于 2008-7-30 12:18:36 |只看该作者
难到不是到了时间点就自动清除的吗?
为什么会有魔鬼又有上帝,是为了让好奇的人有话可说

专题:备份与恢复
        体系结构
QQ:254980886
Email:  jie1984hu@163.com
MSN:   outstanding4836739@hotmial.com
 
4#
发表于 2008-7-30 12:35:14 |只看该作者
原帖由 sg1207 于 2008-7-30 11:58 发表
我用rman crosscheck了一下,清理了过期的rman备份。
但是发现v$recovery_file_dest中的space_reclaimable是0,怎么能让它变大呢?请指教,谢谢




你清理的是归档日志。建议归档日志放到其他地方。

SELECT * FROM v$FLASH_RECoVERY_AREA_USAGE;
 
5#
发表于 2008-7-30 12:52:19 |只看该作者
恭喜!您刚拣到ITPUB送出的幸运红包。18PUB币!

如果您的浏览器没有自动跳转,请点击这里
Orace.....
我的blog:
http://space.itpub.net/8102208
 
6#
发表于 2008-7-30 13:03:51 |只看该作者
Flash Recovery Area里并不仅仅只是备份~~

flashback database log,archive log等等默认也都在这个里面存着~~

相关: | | |
购买: | | |
=======================================
 
7#
发表于 2008-7-30 13:12:40 |只看该作者
快速恢复区里面有了备份之后,自然reclaimable space就大了,
显然大了对你来说没有好处。
无事便思有闲杂念想否。有事便思有粗浮意气否。得意便思有骄矜辞色否。失意便思有怨望情怀否。
MSN: wwj7423@yahoo.com.cn
 
8#
发表于 2008-7-30 13:48:14 |只看该作者
我的Flash Recovery Area只存有rman的备份。
情况是2台机器,一台space_reclaimable=0, 一台space_reclaimable=61.69
比如rman备份都占了不到70%的空间
所以一台机器Usable Flash Recovery Area (%)仅仅剩了30.37,而另一台则剩了90%以上

就是搞不清2台机器space_reclaimable为啥不一样

FILE_TYPE        PERCENT_SPACE_USED        PERCENT_SPACE_RECLAIMABLE        NUMBER_OF_FILES
1        CONTROLFILE        0        0        0
2        ONLINELOG        0        0        0
3        ARCHIVELOG        0        0        0
4        BACKUPPIECE        63.74        61.69        105
5        IMAGECOPY        0        0        0
6        FLASHBACKLOG        0        0        0


FILE_TYPE        PERCENT_SPACE_USED        PERCENT_SPACE_RECLAIMABLE        NUMBER_OF_FILES
1        CONTROLFILE        0        0        0
2        ONLINELOG        0        0        0
3        ARCHIVELOG        0        0        0
4        BACKUPPIECE        69.63        0        66
5        IMAGECOPY        0        0        0
6        FLASHBACKLOG        0        0        0

[ 本帖最后由 sg1207 于 2008-7-30 13:49 编辑 ]
 
9#
发表于 2008-7-30 14:13:56 |只看该作者
原帖由 wilson2006 于 2008-7-30 13:12 发表
快速恢复区里面有了备份之后,自然reclaimable space就大了,
显然大了对你来说没有好处。




我清理了7天的rman备份,只是BACKUPPIECE        减小了10%,RECLAIMABLE 并没有增大
 
10#
发表于 2008-7-30 14:21:35 |只看该作者
Note:315098.1,提出了几个方法
You have following choices to free up space from flash recovery area:  
1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard, then consider changing
RMAN ARCHIVELOG DELETION POLICY.  
2. Back up files to tertiary device such as tape using RMAN BACKUP RECOVERY AREA command.
3. Add disk space and increase db_recovery_file_dest_size parameter to reflect the new space.  
4. Delete unnecessary files using RMAN

rman备份之后
执行下:
report redundancy
delete redundancy
 
12#
发表于 2008-7-30 14:44:48 |只看该作者
To make space reclaimable we have the following options:

1) The space occupied by archivelogs created in the Flash Recovery Area
     would become reclaimable in 2 circumstances:

A) If the free space becomes less then 15% in the Flash Recovery Area then all
     the archivelogs in the Flash Recovery Area which are not needed for recovery
     by the current backups in the FRA will become obsolete and the space occupied
     will be shown in the SPACE RECLAIMABLE column of V$RECOVERY_FILE_DEST.

B) If the archivelogs have been backed up (either to the Flash Recovery Area itself
    or to another destination) and the archivelog not deleted. Then the space occupied
    by that archivelog will be marked as reclaimable.

2) When the Flash Recovery Area is full and there is no space available to
    create archivelogs in the Flash Recovery Area. We will get the following error
    in the alert log:

3) To free space in the FRA we could do take a backup of the Flash Recovery Area
    using the command BACKUP RECOVERY AREA.
    This command will take the backup of al the files in the FRA to tape only.
    After this the space occupied by the files in the FRA will be marked as reclaimable.

看来我不执行BACKUP RECOVERY AREA是无法把flash recovery area的reclaimable变大了?

[ 本帖最后由 sg1207 于 2008-7-30 15:22 编辑 ]
 
13#
发表于 2008-7-30 15:28:40 |只看该作者
有木有好建议?!
 
14#
发表于 2008-7-30 16:00:09 |只看该作者
alert日志里面就告诉你了如何清理
sg1207 当前离线
8
15#
发表于 2008-7-30 16:01:23 |只看该作者
原帖由 ssaer 于 2008-7-30 16:00 发表
alert日志里面就告诉你了如何清理


不到85%没有alert吧
阅读(2358) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~