Oracle Error PLS-00151: Expression or Variable is an illegal type to PLS/QL: string

Oracle Error Message

PLS-00151: Expression or Variable is an illegal type to PLS/QL: string

Reason for the Error

A type was used which does not belong PL/SQL. This type can only be referenced in CREATE TYPE statements, and is a non-queryable data type.

Solution

None