ORA-03113: end-of-file on communication channel 解决方法

今天在测试数据库中对一个表插入了大量的数据, 导致数据库卡死 hang 住, 重启数据库后报错如下:

C:\Documents and Settings\davidd>sqlplus "/ as sysdba"

SQL*Plus: Release 11.2.0.1.0 Production on Fri Dec 5 08:50:23 2014

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

Connected to an idle instance.

SQL> startup mount

ORACLE instance started.

Total System Global Area  778387456 bytes

Fixed Size                  1374808 bytes

Variable Size             478152104 bytes

Database Buffers          293601280 bytes

Redo Buffers                5259264 bytes

Database mounted.

SQL> alter database open;

alter database open

*

ERROR at line 1:

ORA-03113: end-of-file on communication channel

Process ID: 3416

Session ID: 5 Serial number: 3

SQL> show parameter background_dump

NAME                                         TYPE        VALUE

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

background_dump_dest       string      g:\app\davidd\diag\rdbms\david\david\trace

在 background_dump_dest 目录下查看日志文件

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

Errors in file g:\app\davidd\diag\rdbms\david\david\trace\david_arc1_4260.trc:

ORA-19809: 超過復原檔案限制

ORA-19804: 無法回收 41098240 個位元組的磁碟空間, 從 5218762752 限制

ARC1: Error 19809 Creating archive log file to ‘G:\APP\DAVIDD\DAVID\ARCHIVELOG\2014_12_05\O1_MF_1_404_%U_.ARC‘

Errors in file g:\app\davidd\diag\rdbms\david\david\trace\david_ora_3416.trc:

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

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

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.

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

原来是大批量的数据插入导致闪回空间不足, 最常用的办法删除不需要的归档日志文件或者增加闪回空间大小(db_recovery_file_dest_size)

查看闪回空间大小(db_recovery_file_dest_size)

SQL> show parameter db_recovery_file_dest_size

NAME                                 TYPE        VALUE

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

db_recovery_file_dest_size           big integer 4977M

查看 rman 设定

RMAN> show all;

RMAN configuration parameters for database with db_unique_name DAVID are:

CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS;

CONFIGURE BACKUP OPTIMIZATION OFF; # default

CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default

CONFIGURE CONTROLFILE AUTOBACKUP ON;

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘g:\oracle\backup\%F‘;

CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default

CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE MAXSETSIZE TO UNLIMITED; # default

CONFIGURE ENCRYPTION FOR DATABASE OFF; # default

CONFIGURE ENCRYPTION ALGORITHM ‘AES128‘; # default

CONFIGURE COMPRESSION ALGORITHM ‘BASIC‘ AS OF RELEASE ‘DEFAULT‘ OPTIMIZE FOR LOAD TRUE ; # default

CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default

CONFIGURE SNAPSHOT CONTROLFILE NAME TO ‘G:\APP\DAVIDD\PRODUCT\11.2.0\DBHOME_1\DATABASE\SNCFDAVID.ORA‘; # default

将备份策略改为基于冗余数量的备份策略

RMAN> configure retention policy to redundancy 5;

old RMAN configuration parameters:

CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS;

new RMAN configuration parameters:

CONFIGURE RETENTION POLICY TO REDUNDANCY 5;

new RMAN configuration parameters are successfully stored

RMAN> show all;

RMAN configuration parameters for database with db_unique_name DAVID are:

CONFIGURE RETENTION POLICY TO REDUNDANCY 5;

CONFIGURE BACKUP OPTIMIZATION OFF; # default

CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default

CONFIGURE CONTROLFILE AUTOBACKUP ON;

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘g:\oracle\backup\%F‘;

CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default

CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE MAXSETSIZE TO UNLIMITED; # default

CONFIGURE ENCRYPTION FOR DATABASE OFF; # default

CONFIGURE ENCRYPTION ALGORITHM ‘AES128‘; # default

CONFIGURE COMPRESSION ALGORITHM ‘BASIC‘ AS OF RELEASE ‘DEFAULT‘ OPTIMIZE FOR LOAD TRUE ; # default

CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default

CONFIGURE SNAPSHOT CONTROLFILE NAME TO ‘G:\APP\DAVIDD\PRODUCT\11.2.0\DBHOME_1\DATABASE\SNCFDAVID.ORA‘; # default

手动删除不需要的归档日志文件 (删除 3 天以前的日志记录)

rman> delete archivelog all completed before ‘sysdate - 3‘

另外一种方法, 增加 db_recovery_file_dest_size 大小

SQL> alter system set db_recovery_file_dest_size=2000M;

System altered.

SQL> show parameter db_recovery_file_dest_size

NAME                                 TYPE        VALUE

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

db_recovery_file_dest_size           big integer 2000M

最后打开数据库,成功

SQL> alter database open;

Database altered.

原文地址:https://blog.csdn.net/dataminer_2007/article/details/41775257

原文地址:https://www.cnblogs.com/jpfss/p/11169566.html

时间: 2024-10-11 10:19:04

ORA-03113: end-of-file on communication channel 解决方法的相关文章

安卓(android)建立项目时失败,出现Android Manifest.xml file missing几种解决方法?(总结中)

安卓(android)建立项目时失败.出现AndroidManifest.xml file missing几种解决方法?(总结中) Eclipse新建项目.遇到这种问题.注意例如以下: 1.文件名称最好不要用中文. 2.文件夹也不要用中文. 3.这个不会出错,但出于程序编写习惯.第一个字母最好为大写.

Referenced file contains errors 错误解决方法

Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd). 关于这个错误,导致的原因可能是 一种可能是 之前用的Spring版本,和现在用的不同 对于Eclipse编译器来说,会有个缓存,这样验证的时候他会告诉你版本不统一 Preferences -> General -> Network Connections -> Cache 删除里面的缓存 还

配置Nginx支持php,出现No input file specified错误的解决方法

今天有一个项目上有一个模块,程序使用php写的,需要的服务器上搭建PHP的环境,由于我公司的服务器都是Windows系列的,本来前两天买了一台新的服务器,上面搭建了IIS服务器,跑的一个ASP的项目,现在又要部署一个PHP的项目,本想直接在IIS上配置让其支持PHP,但一想性能可能不会很高,于是又想用Apache2.2搭建一个环境,这个重量级的有点大,于是又到了Nginx,这个很小的,使用起来很方便,功能是很强大的,配置好后,访问php文件,出现 "No input file specified

IE浏览器下上传控件file出现光标的解决方法

<div class='upload-box'> <div class="input-group file-caption-main"> <div tabindex="500" class="btn btn-primary btn-file"> <input id="material-english" class='materials' name="material-engl

Got timeout reading communication packets解决方法

http://www.th7.cn/db/mysql/201702/225243.shtml [Note] Aborted connection xxxx to db: 问题现象:在tail -f/data/logs/mysql/error.log日志中出现大量的如下信息(web用的是Zabbix,设置连接超时时间为100秒): ' host: 'localhost' (Got timeout reading communication packets)2017-02-05T15:30:19.2

Linux执行可执行文件提示No such file or directory的解决方法

最近在使用Linux操作系统执行一个可执行文件,结果出现了No such file or directory的提示,表示很疑惑. ./tshrf bash: ./tshref: No such file or directory 查看文件信息,可以看到文件是存在的,并且是可以执行的. -rwxr-xr-x 1 yuan yuan 20581 4月 29 2004 tshref 查阅资料后,原因是系统位数与该可执行文件需要的lib库位数不匹配. 用uname命令打印系统信息,发现系统是64位系统

Ubuntu&amp;Linux系统出现文件系统只读Read-only file system 的快速解决方法

问题描述: 周末运行盘平台服务程序,周一来操作系统卡顿,主进程已退出,重启进程时提示Read-only file system:新建目录和其他chmod -R等等操作都提示Read-only file system. 问题原因: 重启系统,提示根分区error,原因是磁盘出现文件系统错误. 解决方法: 使用fsck手动修复,具体操作如下: 切换到root用户,运行fsck.ext4 -y /dev/vdb1 说明:文件系统采用fsck.ext4,/dev/vdb1是系统/根分区.运行完毕后reb

Incorrect key file for table错误解决方法

问题现象: alter table portal_app_xxxx_xxx add devno varchar(64) NOT NULL DEFAULT '' COMMENT '设备机编',add serialno varchar(64) NOTNULL DEFAULT '' COMMENT '绑定流程流水号',Error_code: 1034 MySQL error code 1034 (ER_NOT_KEYFILE): Incorrect key file for table 'XXXXXX

Qt编译错误“GL/gl.h:No such file or directory”的解决方法

备注:1)操作系统:Ubuntu-14.04或12.042)Linux用户:root3)Qt版本:qt-linux-opensource-5.2.0-x86 为了迎接Qt的新纪元(从诺基亚移居到芬兰公司Digia家中),我决定将Qt开发环境升级到当前的最新版5.2,在安装好开发环境后,编译第一个工程的时候出现了如下错误:"GL/gl.h:No such file or directory",这是由于系统中没有安装OpenGL库导致的,于是在控制台中输入以下命令安装OpenGL库及其工具