您的位置:首页 > 数据库 > Oracle

Oracle出错:由于输出设备已满或不可用, 归档程序无法归档重做日志。归档日志错误!

2012-04-12 09:24 411 查看
1、查看db_recovery

SQL> show parameter db_recovery

NAME                                           TYPE               VALUE

------------------------------------      -----------          ------------------------------

db_recovery_file_dest              string              G:\oracle\product\10.2.0\flash _recovery_area

db_recovery_file_dest_size     big integer    2G

2、查看trc文件

ORA-19815: WARNING: db_recovery_file_dest_size of 2147483648 bytes is
100.00% used, and has 0 remaining bytes available.

*** 2012-04-11 11:07:28.406

************************************************************************

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 DELETE command. If an operating

   system command was used to delete files, then use RMAN CROSSCHECK and

   DELETE EXPIRED commands.

发现db_recovery_file_dest_size的空间已全部用完,打开G:\oracle\product\10.2.0\flash _recovery_area发现确实超过2G

第一种方法:扩大db_recovery_file_dest_size的容量

sql>alter system set db_recovery_file_dest_size = 4g scope=both;(mount状态)

此方法治标不治本,只能暂时解决。
第二种方法:使用RMAN删除日志

C:\Documents and Settings\Administrator>rman target /

RMAN>backup archivelog all;

RMAN>backup archivelog all delete all input;

RMAN>crosscheck archivelog all;

RMAN>delete expired archivelog all;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐