My Oracle Support Banner

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 11.1.0.7 to 11.2.0.3 [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.

Symptoms

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

 

 

Cause

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
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.