weblogic data source error – IO Error: Connection reset

the problem: sometimes when you startup the weblogic servers you may receive something like this:

Exception in thread "main" java.sql.SQLRecoverableException: IO Error: 
Connection reset
        at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:536)
        at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:228)
        at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
        at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSou

-OR-

Exception in thread "main" java.sql.SQLException: Got minus one from a read 
call
        at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:534)
        at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:217)
        at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:28)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:527)
        at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:400)
        at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:287)
        at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:204)

the solution: this is usually an indication that your data source may be setup incorrectly. HOWEVER, if your database is setup to display a security banner set by these parameters in sqlnet.ora

SEC_USER_AUDIT_ACTION_BANNER
SEC_USER_UNAUTHORIZED_ACCESS_BANNER

then this is a known bug causing the issue you are encountering. Search for bug 12582023 in My Oracle Support and there is a patch you can download to fix this.

Of course alternatively, you could just disable the banner on from showing up which should also remedy your connection issue.

Previous
Previous

TNS-12538: TNS:no such protocol adapter

Next
Next

linux change string in multiple files