Oracle Error PLS-00584: size of an opaque type must be between 1 and 4000 bytes

Oracle Error Message

PLS-00584: size of an opaque type must be between 1 and 4000 bytes

Reason for the Error

An attempt was made to specify an explicit size for an opaque type, but the specified size was out of the valid range.

Solution

Change the explicit size to be between 1 and 4000 bytes, or change the declaration to be varying-length without an explicit size.