Oracle Error PLS-00582: attribute declarations are not allowed in opaque types

Oracle Error Message

PLS-00582: attribute declarations are not allowed in opaque types

Reason for the Error

An attempt was made to declare an attribute in an opaque type.

Solution

Remove the attribute declaration.