PLS-00309: with %LAST attribute, 'string' must be a variable of an enumerated type Cause: The "%LAST" attribute must be applied to an identifier that has been declared as a variable of an enumerated type (or subtype of an enumerated type). This error occurs when "%LAST" follows some identifier that has not been so declared. Action: None