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 11.2.0.1 and later
Information in this document applies to any platform.

Symptoms

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:@")

example:

 

Changes

 The issue is triggered by switching to the Oracle Client 11.2.0.3.

  Does not reproduce with 10.2.0.5 and 11.1.0.7

Cause

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