Not Null constraint are not applied
Insert into table1 (column1) values (NULL);
1 row created.
The following proves it is NOT NULL:
=========================
Describing the table shows no NOT NULL constraint:
desc table1;
Name Null? Type
----------------------------- -------- --------------------
column1 NUMBER(15)
select CONSTRAINT_NAME, search_condition from dba_constraints where table_name = 'table1'
CONSTRAINT_NAME SEARCH_CONDITION
-------------------- --------------------------------------------------
SYS_C003986 "column1" IS NOT NULL
alter table table1 modify (column1 NOT NULL);
*
ERROR at line 1:
ORA-01442: column to be modified to NOT NULL is already NOT NULL
The following proves it is NULL:
=========================SELECT column_name, nullable
from dba_tab_columns
where table_name = 'table1'