Oracle Solution for Error ora-22894

Solution for Oracle Error ORA-22894

ORA-22894: cannot add constraint on existing unscoped REF columns of non-empty tables

What triggered the Error:

attempt was made to add a constraint to existing unscoped REF columns of a table which contains one or more rows.

What should we do to fix it:

move the constraint specification or add the constraint after emptying the table.