Ask the Expert

Problem getting disconnected from server after one hour

I am getting this error:

java.sql.SQLException: [Microsoft][ODBC driver for Oracle][Oracle]ORA-12154:at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) 

The connection is disconnected in one hour's time. It connects the first time, but after one hour it automatically disconnects. What is the problem that causes this error?


    Requires Free Membership to View

I'm going to guess that you may be connecting your application to the database through a firewall and the firewall is timing out your network connection. You should try to run SQL*Plus on the Windows application server host and see if it is able to remain connected for more than one hour. That test will eliminate the ODBC and ODBC-to-JDBC bridge from the list of possible suspects. If your SQL*Plus session is terminated (and you get a ORA-12154 or similar), then it is likely a network configuration problem on one of the hosts or a firewall in between them.

This was first published in October 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: