When using the BatchUpdateException a code of -2 is returned. (Doc ID 1025194.1)

Last updated on APRIL 05, 2017

Applies to:

Oracle Java CAPS - Version 5.1.0 and later
Information in this document applies to any platform.

Symptoms

When using the java class BatchUpdateException to catch the exception caused by the command executeBatch() of an oracle PreparedStatement, a code of -2 is being returned.

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