Oracle Error ORA-02331: cannot create constraint on column of datatype string

Oracle Error Message

ORA-02331: cannot create constraint on column of datatype string

Reason for the Error

An attempt was made to create a constraint on a column posessing a non-constrainable datatype — VARRAY, nested table, object, LOB, FILE, or REF.

Solution

Change the column datatype, or remove the constraint.