Explore Courses Blog Tutorials Interview Questions
0 votes
in SQL by (6.1k points)

We are using the Oracle as the database for our Web application. The application runs good most of the times, but we are getting this "No more data to read from socket" error.

Caused by: java.sql.SQLRecoverableException: No more data to read from socket

    at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(

    at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(

    at oracle.jdbc.driver.T4CTTIfun.receive(

    at oracle.jdbc.driver.T4CTTIfun.doRPC(

    at oracle.jdbc.driver.T4C8Oall.doOALL(

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(

    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(

    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(

    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(

    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(

    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(

    at org.hibernate.jdbc.AbstractBatcher.getResultSet(

    at org.hibernate.loader.Loader.getResultSet(

    at org.hibernate.loader.Loader.doQuery(

    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(

    at org.hibernate.loader.Loader.doList(

    ... 63 more

I am not sure whether this is because of the application errors, database errors or network errors.

We are seeing the following on the oracle logs 

Thu Oct 20 10:29:44 2011

Errors in file d:\oracle\diag\rdbms\ads\ads\trace\ads_ora_3836.trc  (incident=31653):

ORA-03137: TTC protocol internal error : [12333] [4] [195] [3] [] [] [] []

Incident details in: d:\oracle\diag\rdbms\ads\ads\incident\incdir_31653\ads_ora_3836_i31653.trc

Thu Oct 20 10:29:45 2011

Trace dumping is performing id=[cdmp_20111020102945]

Thu Oct 20 10:29:49 2011

Sweep [inc][31653]: completed

Sweep [inc2][31653]: completed

Thu Oct 20 10:34:20 2011

Errors in file d:\oracle\diag\rdbms\ads\ads\trace\ads_ora_860.trc  (incident=31645):

ORA-03137: TTC protocol internal error : [12333] [4] [195] [3] [] [] [] []

Incident details in: d:\oracle\diag\rdbms\ads\ads\incident\incdir_31645\ads_ora_860_i31645.trc

Thu Oct 20 10:34:21 2011

Oracle Version : 

1 Answer

0 votes
by (12.7k points)
edited by

Unfortunately, you don't mention which of the oracle release you are using. The error could be related to the optimizer bind peeking. It depends on the oracle version and different workarounds apply.

You have two ways to address this:

  • Upgrade to 11.2
  • Set oracle parameter _optim_peek_user_binds = false

Of course, underscore parameters should only be set if advised by the oracle support.

Interested in SQL ? Check out this SQL Certification by Intellipaat.

Do check out the video below

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Mar 6, 2021 in Java by Jake (7k points)

Browse Categories