IT猫扑网:您身边最放心的安全下载站! 最新更新| 软件分类| 专题汇总| 手机版

您当前所在位置:IT猫扑网 > 数据库 > Oracle > Oracle数据库的归档日志写满磁盘空间解决办法

Oracle数据库的归档日志写满磁盘空间解决办法

时间:2015-06-28 00:00 来源:IT猫扑网|http://www.itmop.com/ 作者:网管联盟 我要评论(0)

  1、数据库不能启动

  SQL> startup

  ORACLE 例程已经启动。

  Total System Global Area 289406976 bytes

  Fixed Size      1248576 bytes

  Variable Size  83886784 bytes

  Database Buffers    197132288 bytes

  Redo Buffers    7139328 bytes

  数据库装载完毕。

  ORA-16038: 日志 2 序列号 44 无法归档

  ORA-19809: 超出了恢复文件数的限制

  ORA-00312: 联机日志 2 线程 1:

  'D:ORACLEPRODUCT10.2.0ORADATAORCLREDO02.LOG'

  2、查看$ORACLE_HOMEadminSIDbdumpalert_SID.log日志

  Thu Feb 19 09:45:33 2009

  Errors in file d:oracleproduct10.2.0adminorclbdumporcl_arc1_660.trc:

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

  Thu Feb 19 09:45:33 2009

  Errors in file d:oracleproduct10.2.0adminorcludumporcl_ora_4708.trc:

  ORA-19815: 警告: db_recovery_file_dest_size 字节 (共 2147483648 字节) 已使用 99.95%, 尚有 1129472 字节可用。

  Thu Feb 19 09:45:33 2009

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

  You have following choices to free up space from flash recovery area:

  1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,

  Thu Feb 19 09:45:33 2009

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

  then consider changing RMAN ARCHIVELOG DELETION POLICY.

  2. Back up files to tertiary device such as tape using RMAN

  You have following choices to free up space from flash recovery area:

  BACKUP RECOVERY AREA command.

  3. Add disk space and increase db_recovery_file_dest_size parameter to

  1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,

  reflect the new space.

  then consider changing RMAN ARCHIVELOG DELETION POLICY.

  4. Delete unnecessary files using RMAN DELETE command. If an operating

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

  2. Back up files to tertiary device such as tape using RMAN

  DELETE EXPIRED commands.

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

  BACKUP RECOVERY AREA command.

  Thu Feb 19 09:45:34 2009

  Errors in file d:oracleproduct10.2.0adminorclbdumporcl_arc1_660.trc:

  ORA-19809: limit exceeded for recovery files

  ORA-19804: cannot reclaim 44217856 bytes disk space from 2147483648 limit

  从上面信息知道是flash recovery area闪回恢复空间中默认2G的空间被归档日志占满了,没有空间进行存放归档日志。

#p#副标题#e#

  3、退出sqlplus,进入rman

  SQL> exit

  从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

  With the Partitioning, OLAP and Data Mining options 断开

  C:Documents and Settingsmengzhaoliang>rman target/

  恢复管理器: Release 10.2.0.1.0 - Production on 星期四 2月 19 09:57:48 2009

  Copyright (c) 1982, 2005, Oracle. All rights reserved.

  已连接到目标数据库: ORCL (DBID=1193443472, 未打开)

  4、查看归档日志

  RMAN> list archivelog all;

  使用目标数据库控制文件替代恢复目录

  已存档的日志副本列表

  关键字     Thrd Seq     S 短时间     名称

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

  40      1    1 A 17-11月-08 D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREAO

  RCLARCHIVELOG2008_11_18O1_MF_1_1_4L44Z9CQ_.ARC

  41      1    2 A 18-11月-08 D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREAO

  RCLARCHIVELOG2008_11_18O1_MF_1_2_4L4W4O0H_.ARC

  42      1    3 A 18-11月-08 D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREAO

  5、可以先把归档日志备份到其他的空间,然后用rman删除归档日志;

  RMAN> delete archivelog all;

  释放的通道: ORA_DISK_1

  分配的通道: ORA_DISK_1

  通道 ORA_DISK_1: sid=151 devtype=DISK

  已存档的日志副本列表

  关键字     Thrd Seq     S 短时间     名称

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

  40      1    1 A 17-11月-08 D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREAO

  RCLARCHIVELOG2008_11_18O1_MF_1_1_4L44Z9CQ_.ARC

  是否确定要删除以上对象 (输入 YES 或 NO)? yes

  已删除的存档日志

  存档日志文件名 =D:ORACLEPRODUCT10.2.0FLASH_RECOVERY_AREAORCLARCHIVELOG200

  _11_18O1_MF_1_1_4L44Z9CQ_.ARC 记录 ID=40 时间戳 =671101294

  6、退出rman,进入sqlplus,打开数据库

  RMAN> exit

  恢复管理器完成。

  C:Documents and Settingsmengzhaoliang>sqlplus &/as sysdba&

  SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 2月 19 10:03:02 2009

  Copyright (c) 1982, 2005, Oracle. All rights reserved.

  连接到:

  Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

  With the Partitioning, OLAP and Data Mining options

  SQL> alter database open;

  数据库已更改。

  数据库已经打开!

关键词标签:Oracle,数据库,归档日

相关阅读 误删Oracle数据库实例的控制文件 为UNIX服务器设置Oracle全文检索 Oracle数据库如何查找删除重复的SQL语句 Oracle导入导出数据库的语法 oracle数据库安装预环境一键处理脚本 oracle常用DBA命令

文章评论
发表评论

热门文章 利用Oracle分区表来减少磁盘I/O冲突 利用Oracle分区表来减少磁盘I/O冲突 Oracle数据库优化之数据库磁盘I/O Oracle数据库优化之数据库磁盘I/O 讲解Oracle复制技术的分布式系统同步应用 讲解Oracle复制技术的分布式系统同步应用 刷新Oracle缓存 刷新Oracle缓存 oracle 8080与TOMCAT默认端口冲突 oracle 8080与TOMCAT默认端口冲突 DATAGUARD的日志应用服务 DATAGUARD的日志应用服务

相关下载

人气排行 oracle中使用SQL语句修改字段类型-oracle修改SQL语句案例 Oracle中使用alter table来增加,删除,修改列的语法 ORACLE SQL 判断字符串是否为数字的语句 ORACLE和SQL语法区别归纳(1) oracle grant 授权语句 ORACLE修改IP地址后如何能够使用 如何加速Oracle大批量数据处理 Oracle删除表的几种方法 Oracle 10g创建表空间和用户并指定权限 Oracle连接数太多报错-ORA-12516错误 Oracle字符串截取 连接Oracle数据库的Hibernate配置文件