How to Timeout a Connection Attempt to a Database From JDBC (Doc ID 790757.1)

Last updated on MARCH 23, 2016

Applies to:

JDBC - Version 9.2.0.5 and later
Information in this document applies to any platform.

Goal

Attempts to connect to an Oracle Database take a long time.

How can you cancel this operation instead of making the JDBC client program wait endlessly?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms