My Oracle Support Banner

Inserting Blanks Into NOT NULL Column Fails With ORA-01400 (Doc ID 1010215.6)

Last updated on DECEMBER 31, 2019

Applies to:

Precompilers - Version 1.0 and later
Information in this document applies to any platform.
***Checked for relevance on 24-Dec-2012***


In your precompiler program, you are trying to insert into a mandatory NOT NULL column one or more blanks.  You create a character host variable and fill it with blanks.  When you execute the INSERT statement, you get the Oracle error 'ORA-01400 mandatory (NOT NULL) column is missing or NULL during insert'. 


To view full details, 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 a vibrant support community of peers and Oracle experts.