ERROR | Cursor Variables cannot be declared as part of a package |
CAUSE | An attempt was made to declare a cursor variable in a package specification, which is not allowed. Although REF CURSOR types can be defined in a PL/SQL block, subprogram, or package, cursor variables can be declared only in a block or subprogram. |
ACTION | Move the cursor variable declaration into a PL/SQL block or subprogram. |