PLS-00120
inappropriate argument in OPEN statement
Action
Check the spelling of the cursor_name parameter. Make sure the cursor was declared properly.
Change function to one of the valid group functions.
121, 0, "only the set function COUNT may take * as an argument"
Remove the asterisk option from the argument list and replace it with an expression that refers to one or more database columns.