Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JDBC timeout

843859Jan 11 2008 — edited Nov 20 2014
hi,
I'm in trouble with timeout values. i want to connect to oracle and mysql servers , however, connect-time/login-time can sometimes be more than 2 minutes. i tried to set driver's timeout properties, but i doesn't work.

here is the timeout parameters i tried to set:

for oracle:
-connection-timeout
-loginTimeout
-queryTimeout
-oracle.jdbc.ReadTimeout

for mysql :
-connectTimeout
-socketTimeout
-autoReconnect

is there anyone who can help me?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2008
Added on Jan 11 2008
4 comments
681 views