Not Null Constraint is ignored on a CLOB column
(Doc ID 1516727.1)
Last updated on FEBRUARY 27, 2019
Applies to:Oracle Database - Enterprise Edition - Version 18.104.22.168 to 22.214.171.124 [Release 11.1 to 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
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
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document