First, the problem appearance:
Java.sql.SQLException:Io exception: 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)
Direct translation is returned from a read operation-1, that is, the last second may be normal, the next second is not normal
Second. Modification of the programme
1, the database connection is full, expand the database connection pool
2, the machine IP is not logged in Sqlnet.ora, after the addition of Listerner can be restarted
3, the database load balancing, specified (server=dedicated), remove this can
4, the network management in the Oracle configuration restricts the access to Oracle, the problem basic and 2 similar, but also modify the Oracle configuration can
Remark Description:
There are times when network fluctuations can produce such problems.
Excerpt from: 18791213
Oracle IO exception: Got minus one from a read call