Oracle IO exception: Got minus one from a read call

Source: Internet
Author: User
Tags database load balancing mongodb postgresql


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





Alibaba Cloud Hot Products

Elastic Compute Service (ECS) Dedicated Host (DDH) ApsaraDB RDS for MySQL (RDS) ApsaraDB for PolarDB(PolarDB) AnalyticDB for PostgreSQL (ADB for PG)
AnalyticDB for MySQL(ADB for MySQL) Data Transmission Service (DTS) Server Load Balancer (SLB) Global Accelerator (GA) Cloud Enterprise Network (CEN)
Object Storage Service (OSS) Content Delivery Network (CDN) Short Message Service (SMS) Container Service for Kubernetes (ACK) Data Lake Analytics (DLA)

ApsaraDB for Redis (Redis)

ApsaraDB for MongoDB (MongoDB) NAT Gateway VPN Gateway Cloud Firewall
Anti-DDoS Web Application Firewall (WAF) Log Service DataWorks MaxCompute
Elastic MapReduce (EMR) Elasticsearch

Alibaba Cloud Free Trail

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.