Bind Variables Passed By Pro*C are Incorrectly Set to NULL with the 11g Client (Doc ID 750879.1)

Last updated on JULY 05, 2017

Applies to:

Precompilers - Version 11.1.0.6 to 11.1.0.7 [Release 11.1]
Information in this document applies to any platform.
***Checked for relevance on 02-Nov-2012***


Symptoms

Pro*C application intermittently fails with ORA-01400 when executing using 11g client client. The application is binding the data correctly but 10046 trace shows data is missing(NULL) and thus the error

ORA-01400: cannot insert NULL into ("ORA_TEST"."RTNS_CFQ"."SECT_ENABLE_MASK")

Error occurs only when using 11g client and doesn't occur with 10.2 client. Database version doesn't seem to matter.

IF 'Not Null' constraint is not enabled on the column then NULL data is silently inserted/updated leading to data corruption

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