ORA-22902
CURSOR expression is not allowed in this context.
Cause
A CURSOR expression was specified outside the SELECT list of the top-level query block or as an argument to a PL/SQL function.
Action
Specify the CURSOR expression only inside the SELECT list of the top-level query block or as an argument to a PL/SQL function.