ORA-03113错误
Jan092013
在利用AWRLOAD像虚拟机加载AWR数据时,发现虚拟机夯住,并没太在意,还以为是虚拟机文件是自动扩展,没有预先分配导致的,就直接将虚拟机关闭了,今天一早,启动虚拟机,打算重新加载一次AWR数据,结果数据库无法启动,报ORA-03113错误。
SQL> startup ORACLE instance started. Total System Global Area 313159680 bytes Fixed Size 2227944 bytes Variable Size 171966744 bytes Database Buffers 134217728 bytes Redo Buffers 4747264 bytes Database mounted. ORA-03113: end-of-file on communication channel Process ID: 4226 Session ID: 125 Serial number: 5
看到这个错误,我第一感觉是闪回恢复区满了,redo日志不能归档。
SQL> startup mount; ORACLE instance started. Total System Global Area 313159680 bytes Fixed Size 2227944 bytes Variable Size 171966744 bytes Database Buffers 134217728 bytes Redo Buffers 4747264 bytes Database mounted. SQL> show parameter db_re NAME TYPE VALUE ----------------------------- ----------- ---------------------------------- db_recovery_file_dest string /u01/app/oracle/fast_recovery_area db_recovery_file_dest_size big integer 2000M db_recycle_cache_size big integer 0
闪回恢复区2G,而操作系统上查看,闪回恢复区已经用了2.3G。
[oracle@dbdream oracle]$ du -sh fast_recovery_area/ 2.3G fast_recovery_area/
而且告警日志也报不能归档错误。
ORA-16038: log 2 sequence# 188 cannot be archived ORA-19502: write error on file "", block number (block size=) ORA-00312: online log 2 thread 1: '/u01/app/oracle/stream/redo02.log'
更改db_recovery_file_dest_size参数后,问题毅然没有解决。
SQL> alter system set db_recovery_file_dest_size=4000M; System altered. SQL> alter database open; alter database open * ERROR at line 1: ORA-03113: end-of-file on communication channel Process ID: 4476 Session ID: 125 Serial number: 7
既然不是闪回恢复区满了,那么就可能是磁盘空间满了,我记得这个虚拟机磁盘空间很富裕,不会真是这个原因吧。
[oracle@dbdream fast_recovery_area]$ df -h 文件系统 容量 已用 可用 已用% 挂载点 /dev/sda3 18G 17G 31M 100% / /dev/sda1 99M 22M 73M 23% /boot tmpfs 497M 0 497M 0% /dev/shm /dev/sr0 3.6G 3.6G 0 100% /media/OL5.7 x86_64 dvd 20110728
清理磁盘空间后,问题解决。
SQL> alter database open; Database altered.
由于AWRLOAD没有结束,虚拟机被强制关闭,数据库已经存在AWR_STAGE用户,再次加载AWR数据时就会报错。
Using the staging schema name: AWR_STAGE declare * ERROR at line 1: ORA-20104: schema name 'AWR_STAGE' already exists ORA-06512: at line 17
删除AWR_STAGE重新加载AWR数据,成功导入。
本文固定链接: https://www.dbdream.com.cn/2013/01/ora-03113%e9%94%99%e8%af%af/ | 信春哥,系统稳,闭眼上线不回滚!