Oracle Error PLS-00202: type ‘string’ must be declared

Oracle Error Message

PLS-00202: type ‘string’ must be declared

Reason for the Error

An attempt was made to reference an undefined type. Either the type specifier was not declared or it is not within the scope of the reference.

Solution

Check the spelling and declaration of the type specifier. Also confirm that the declaration is placed correctly in the block structure.