Unexpected Exit Code for java.lang.Process WaitFor() after a JDBC/OCI Bequeath Connection

(Doc ID 1513042.1)

Last updated on MARCH 08, 2017

Applies to:

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


JDBC/OCI standalone test case shows that once a JDBC bequeath connection is established, the exit value on a call to Process.waitFor() goes from 1 to 0 .

According to the JDK javadoc for java.util.Process, by convention, 0 indicates normal termination.

This issue is specific to JDBC/OCI and in particular is specific to bequeath connections su as  DriverManager.getConnection("jdbc:oracle:oci:@")




 The issue is triggered by switching to the Oracle Client

  Does not reproduce with and


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