Oracle Error Message
PLS-00498: illegal use of a type before its declaration
Reason for the Error
A variable or constant was declared to be of a type whose declaration appears later in the compilation unit; or, a type or subtype was declared in terms of another type whose declaration appears later in the compilation unit.
Solution
Ensure that the type declaration preceeds its use in the variable/ constant/type declaration.