oracle之Io异常: Got minus one from a read call

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff }
span.s1 { }

一、问题表象:

  java.sql.SQLException: Io 异常: Got minus one from a read call
   at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
   at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
   at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
   at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
   at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
   at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
   at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
   at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at sms.SMSDatabase.getConnection(SMSDatabase.java:27)
   at sms.SMSDatabase.remedy(SMSDatabase.java:158)
   at sms.ProcessMessages.processSms(ProcessMessages.java:24)
   at sms.ProcessSMSThread.run(ProcessSMSThread.java:27)
   at java.lang.Thread.run(Unknown Source)

  直接翻译就是从某个读操作返回了-1,即上一秒可能还正常,下一秒就不正常了

二、修改方案

  1、数据库连接满了,扩大数据库连接池
  2、所登录的机子IP不在sqlnet.ora内,加入后重启listerner即可
  3、数据库负载均衡时,指定了(SERVER=DEDICATED),去除这个即可
  4、网管在Oracle配置上限制了该台机子访问Oracle的权限,这个问题基本和2类似,也是修改Oracle配置即可

备注说明:

  有的时候网络的波动也会产生此类问题

摘抄自:https://blog.csdn.net/cdguogang/article/details/18791213

原文地址:https://www.cnblogs.com/chendeming/p/9155797.html

时间: 2024-10-16 03:12:19

oracle之Io异常: Got minus one from a read call的相关文章

java.sql.SQLException: Io 异常: Got minus one from a read call

博客分类: Oracle Tomcat服务器下的应用连接Oracle时报错,出现以下异常: java.sql.SQLException: Io 异常: Got minus one from a read call 查询数据库连接情况: Java代码   SQL> select username,count(username) from v$session where username is not null group by username; USERNAME                 

Oracle存储过程中异常Exception的捕捉和处理

Oracle存储过程中异常的捕捉和处理 CREATE OR REPLACE Procedure Proc_error_process ( v_IN in Varchar2, v_OUT Out Varchar2) AUTHID CURRENT_USER AS --声明异常 some_kinds_of_err EXCEPTION; -- Exception to indicate an error condition v_ErrorCode NUMBER; -- Variable to hold

Io 异常: The Network Adapter could not establish the connection

Io 异常: The Network Adapter could not establish the connection 这个异常的出现一般与数据库和你的PC的设置有关 这种异常的出现大致上有下面几种: 1.IP错误. 在设置URL时错误,例如:jdbc:oracle:thin:@192.168.0.36:1521:sharp 数据库服务器不正确:ping 服务器IP是否正确.不正确,将URL更改为正确 端口号错误:一般不会错误. 进行一下操作:在DOS上键入sqlplus,检查oracle是

Io 异常: Socket closed

java.sql.SQLException: Io 异常: Socket closed at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146) at oracle.jdbc.driver.DatabaseError.throwSqlExcept

Could not create pool connection. The DBMS driver exception was: Io 异常: Broken pipe

现场同事反馈:中间件weblogic连不上数据库Oracle,发回日志可以看到: Caused by: weblogic.common.ResourceException: weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Io 异常: Broken pipe at weblogic.jdbc.common.internal.ConnectionE

Io 异常: The Network Adapter could not establish the connection 解决方法

Io 异常: The Network Adapter could not establish the connection 解决方法 1.IP错误:在设置URL时错误,例如:jdbc:oracle:thin:@192.168.1.80:1521:orcl数据库服务器是否正确:ping 服务器IP是否通畅.ping不通则将URL更改正确.端口号是否正确.进行一下操作:在DOS上键入sqlplus,检查oracle是否开启一切正常则执行下面第2步. 2.防火墙如果机器上安装有放火墙,可能是服务器端口

Io 异常: The Network Adapter could not establish the connection解决方案

Io 异常: The Network Adapter could not establish the connection解决方案 2016年06月04日 13:30:21 阅读数:46589 Io 异常: The Network Adapter could not establish the connection这个异常的出现一般与数据库和你的PC的设置有关 这种异常的出现大致上有下面几种: 1.IP错误.在设置URL时错误,例如:jdbc:oracle:thin:@192.168.0.36:

IO 异常:The Network Adapter could not establish the connection 怎么解决

IO 异常:The Network Adapter could not establish the connection 怎么解决

IO异常 的处理

1 package com.throwsss; 2 3 import java.io.File; 4 import java.io.FileInputStream; 5 import java.io.FileNotFoundException; 6 import java.io.IOException; 7 import java.io.InputStream; 8 9 /** 10 * IO异常 的处理 11 * @author Administrator 12 *用 throw new Ru