troubleshooting Question

Connection refused error

Avatar of jmf8883
jmf8883 asked on
Oracle DatabaseJava
6 Comments1 Solution1098 ViewsLast Modified:
I am getting an error message when a program I wrote tries to access an oracle database.  I wrote the program in java using jdbc.  Every morning at 3am the program access the database to update the information.  Since the server times out the connection for inactivity by then I use this line of code to refresh the connection.

connection = DriverManager.getConnection(url, username, password);
statement = connection.createStatement();

The error message I get is:
java.sql.SQlException: Listener refused the connection with the following exception:
ORA-12518, TNS: listener could not hand off client connection
The Connection descriptor used by the client was:

Java.sql.SQlException: Closed Connection
Java.sql.SQlException: Must be logged on to server

Can someone help me out with this?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros