Oracle Error ORA-02329: column of datatype string cannot be unique or a primary key

Oracle Error Message

ORA-02329: column of datatype string cannot be unique or a primary key

Reason for the Error

An attempt was made to place a UNIQUE or a PRIMARY KEY constraint on a column of datatype VARRAY, nested table, object, LOB, FILE or REF.

Solution

Change the column datatype or remove the constraint. Then retry the operation.