Oracle Error ORA-01451: column to be modified to NULL cannot be modified to NULL

Oracle Error Message

ORA-01451: column to be modified to NULL cannot be modified to NULL

Reason for the Error

the column may already allow NULL values, the NOT NULL constraint is part of a primary key or check constraint.

Solution

if a primary key or check constraint is enforcing the NOT NULL constraint, then drop that constraint.