Not Null Constraint is ignored on a CLOB column

(Doc ID 1516727.1)

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Server - Enterprise Edition - Version to [Release 11.1 to 11.2]
Information in this document applies to any platform.


ORA-1400 is not being raised when a NULL is inserted into a LOB column in a table and the column has a NOT NULL constraint enabled.

When inserting NULL data into a NOT NULL CLOB column, the statement expectedly fails with
ORA-01400: cannot insert NULL into ("SYSADM"."ZZZ_CLOB"."SAA_DESCRLONG")

However, when the table has an index with sorting DESC, it inserts NULL in the CLOB column
When DESC is omitted, again the ORA-1400 error is reported as expected




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