I am really struggling with calling stored procedure below. I am using oracle sql developer, version 19.2. What I have tried is this answer but I am receiving errors (same errors as described in comments). Why is it so hard to call such a simple stored procedure from sql developer?
create or replace PACKAGE BODY "PCK_FIRST" IS
PROCEDURE GET_GETNAMES(
USER_ID IN NUMBER,
M_RESULT OUT TYPES.CURSOR_TYPE
) IS
BEGIN
OPEN M_RESULT FOR
SELECT * FROM PER_NAMES WHERE ID = USER_ID;
END;
END PCK_FIRST;
typespackage where yourcursor_typeis defined? - Justin Cavem_resultis of typetypes.cursor_type. That implies that you have atypespackage wherecursor_typeis defined. My guess is that it was defined as a simple weakly typed ref cursor (i.e. it is identical tosys_refcursor) but that's just a guess. What is the code that you're using to call this procedure? What is the error that you're getting? - Justin Cavecursor_typein thetypespackage? Is it a simple weakly typed ref cursor? What is the code you're using to call the procedure? I'm assuming that's where the variablecis being used without being declared. - Justin Cave