如何解决Oracle数据库归档日志占满磁盘空间
来源:互联网 发布:深圳软件著作权申请 编辑:程序博客网 时间:2024/06/09 16:10
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:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG'
2、查看$ORACLE_HOME\admin\SID\bdump\alert_SID.log日志
Thu Feb 19 09:45:33 2009
Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl_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:\oracle\product\10.2.0\admin\orcl\udump\orcl_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:\oracle\product\10.2.0\admin\orcl\bdump\orcl_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的空间被归档日志占满了,没有空间进行存放归档日志。[NextPage]
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 Settings\mengzhaoliang>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:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\O
RCL\ARCHIVELOG\2008_11_18\O1_MF_1_1_4L44Z9CQ_.ARC
41 1 2 A 18-11月-08 D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\O
RCL\ARCHIVELOG\2008_11_18\O1_MF_1_2_4L4W4O0H_.ARC
42 1 3 A 18-11月-08 D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\O
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:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\O
RCL\ARCHIVELOG\2008_11_18\O1_MF_1_1_4L44Z9CQ_.ARC
是否确定要删除以上对象 (输入 YES 或 NO)? yes
已删除的存档日志
存档日志文件名 =D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\200
_11_18\O1_MF_1_1_4L44Z9CQ_.ARC 记录 ID=40 时间戳 =671101294
6、退出rman,进入sqlplus,打开数据库
RMAN> exit
恢复管理器完成。
C:\Documents and Settings\mengzhaoliang>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数据库的归档日志写满磁盘空间解决办法
- Oracle数据库的归档日志写满磁盘空间解决办法
- Linux磁盘空间占满故障如何解决?
- Oracle 归档日志占满存储空间处理方法(11gR2)
- 如何解决“归档日志已满问题”
- 如何解决“归档日志已满问题”
- 如何解决“归档日志已满问题”
- ORA-00257-归档日志所在磁盘空间使用100%出错解决
- Oracle数据库归档日志满后造成系统宕机解决一例
- oracle 如何把数据库变为非归档日志模式
- 删除oracle数据库归档日志
- Oracle数据库--删除归档日志
- 如何删除oracle归档日志
- oracle归档日志满所引发的问题及解决
- 当ORACLE归档日志满后如何正确删除归档日志
- 当ORACLE归档日志满后如何正确删除归档日志
- 当ORACLE归档日志满后如何正确删除归档日志
- 获取当前进程.线程。过程一探。
- XNA入门(一)
- 位运算的应用和实例
- linux磁盘管理
- Hibernate 使用Order by 排序时的一个bug
- 如何解决Oracle数据库归档日志占满磁盘空间
- 分布式文件系统moosefs --master
- HDFS的缺点及改进策略
- CSS的继承性
- 需要学会如何搭建嵌入式Linux开发环境
- stagefright框架(五)-Video Rendering
- static全局变量与普通的全局变量有什么区别?static局部变量和普通局部变量有什么区别?static函数与普通函数有什么区别?
- 对Hadoop-HDFS性能造成重大影响的杀手-Shell
- 动态链接库