Oracle Error ORA-22893: constraint can be specified only for REF columns

Oracle Error Message

ORA-22893: constraint can be specified only for REF columns

Reason for the Error

The constraint specified does not apply to non-REF columns.

Solution

Remove the constraint and retry the operation.