Oracle Error PLS-00566: type name “string” cannot be constrained

Oracle Error Message

PLS-00566: type name “string” cannot be constrained

Reason for the Error

A lob, date, boolean, rowid, or mlslabel type was constrained with a length specification. For example: X BLOB(5);

Solution

Remove the constraint.