Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

0

积分

1

好友

10

主题
1#
发表于 2013-12-5 21:51:31 | 查看: 4127| 回复: 5
os:win7
databse version :11.2.0.1
情况描述:
今天本机折腾的时候,FRA满了,日志无法归档,先增加了FRA  size 之前为4G 增加为5G。依然无法回收空间。然后就手动删除了FRA里面的归档日志,备份集。然后crosscheck backupset, crosscheck archivelog all 。delete expired backupset  delete expired archive log all;  日志依然无法归档! 无奈 更改alter system set log_archivedest_1='LOCATION=D:/DUMP';完成归档。

但是现在仍然无法在FRA备份,查看alert.log 和相关参数设置如下:
参数:
SQL> show parameter db_recover

NAME                                 TYPE        VALUE                          
------------------------------------ ----------- ------------------------------
db_recovery_file_dest                string      D:\app\admin\flash_recovery_area                             
db_recovery_file_dest_size           big integer 5196   

SQL> show parameter log_archive_dest_1

NAME                                 TYPE        VALUE                          
------------------------------------ ----------- ------------------------------
log_archive_dest_1                   string      LOCATION=D:/dump                                       
SQL> spool off;
                        
SQL> select file_type,percent_space_used from v$flash_recovery_area_usage;

FILE_TYPE            PERCENT_SPACE_USED                                         
-------------------- ------------------                                         
CONTROL FILE                          0                                         
REDO LOG                              0                                         
ARCHIVED LOG                          0                                         
BACKUP PIECE                          0                                         
IMAGE COPY                            0                                         
FLASHBACK LOG                         0                                         
FOREIGN ARCHIVED LOG                  0                                         

已选择7行。


alert.log

Errors in file d:\app\admin\diag\rdbms\orcl\orcl\trace\orcl_ora_4152.trc:
ORA-19815: 警告: db_recovery_file_dest_size 字节 (共 5196 字节) 已使用 100.00%, 尚有 0 字节可用。

************************************************************************
You have following choices to free up space from 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 DELETE command. If an operating
   system command was used to delete files, then use RMAN CROSSCHECK and
   DELETE EXPIRED commands.
************************************************************************
Thu Dec 05 21:39:18 2013
db_recovery_file_dest_size of 0 MB is 0.00% used. This is a
user-specified limit on the amount of space that will be used by this
database for recovery-related files, and does not reflect the amount of
space available in the underlying filesystem or ASM diskgroup.
Thu Dec 05 21:48:47 2013
Errors in file d:\app\admin\diag\rdbms\orcl\orcl\trace\orcl_ora_3816.trc:
ORA-19815: 警告: db_recovery_file_dest_size 字节 (共 5196 字节) 已使用 100.00%, 尚有 0 字节可用。
************************************************************************
You have following choices to free up space from 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 DELETE command. If an operating
   system command was used to delete files, then use RMAN CROSSCHECK and
   DELETE EXPIRED commands.
************************************************************************


orcl_ora_3816.trc:


ORA-19815: 警告: db_recovery_file_dest_size 字节 (共 5196 字节) 已使用 100.00%, 尚有 0 字节可用。
************************************************************************
You have following choices to free up space from 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 DELETE command. If an operating
   system command was used to delete files, then use RMAN CROSSCHECK and
   DELETE EXPIRED commands.
************************************************************************


疑惑:我已经把FRA 增大,甚至都清空了FRA,
SQL> select file_type,percent_space_used from v$flash_recovery_area_usage;

FILE_TYPE            PERCENT_SPACE_USED                                         
-------------------- ------------------                                         
CONTROL FILE                          0                                         
REDO LOG                              0                                         
ARCHIVED LOG                          0                                         
BACKUP PIECE                          0                                         
IMAGE COPY                            0                                         
FLASHBACK LOG                         0                                         
FOREIGN ARCHIVED LOG                  0      
显示都没有占用,为什么还会出现这样的情况呢?
2#
发表于 2013-12-5 21:53:59
补充:清空FRA之前,备份,归档的保留策略都是默认值

回复 只看该作者 道具 举报

3#
发表于 2013-12-6 09:31:50
db_recovery_file_dest_size           big integer 5196

回复 只看该作者 道具 举报

4#
发表于 2013-12-6 09:32:31
这是字节啊,哪里的5G啊。

回复 只看该作者 道具 举报

5#
发表于 2013-12-6 09:56:33
这才是G的节奏:
SQL> show parameter db_recovery_file_dest

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------
db_recovery_file_dest                string      E:\flash_recovery_area
db_recovery_file_dest_size           big integer 3852M

回复 只看该作者 道具 举报

6#
发表于 2013-12-6 14:52:50
csp12345 发表于 2013-12-6 09:56
这才是G的节奏:
SQL> show parameter db_recovery_file_dest

啊,骚瑞,手残 眼残了。太不仔细了

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-5-17 18:04 , Processed in 0.048483 second(s), 20 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569