Am i doing anything wrong here , i am trying to display the SYS_REFCURSOR out values in DBMS_OUTPUT. here is my code so far, its giving invalid cursor exception . can someone help me on this .
DECLARE
out_dcursor SYS_REFCURSOR;
snumber VARCHAR2(5);
inumber VARCHAR2(15);
BEGIN
my_proc(out_dcursor, 'INPUT_VALUE', NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL,'INPUT_VALUE2', NULL, NULL);
loop
fetch out_dcursor into snumber
,inumber;
exit when out_dcursor%NOTFOUND;
end loop;
END;
You're complaining about
dbms_outputand invalid cursor, but - there's no first term in code you posted, and you didn't say which part returns the second one.Here's example which shows something that works. See if you can use it with your code, as we don't know what
my_procis, accepts, does nor returns.