how to pass sysrefcursor as a parameter to oracle scheduler job

299 views Asked by At

I'm getting a SYSREFCUROSOR as output parameter from a stored procedure, How to call that SP in a oracle scheduler job and pass that parameter?

1

There are 1 answers

1
Alex Poole On

If you are discarding the ref cursor then create a wrapper procedure that does that; something like:

create procedure wrapper_proc as
  l_refcursor sys_refcursor;
begin
  orig_proc(l_refcursor);
  close l_refcursor;
end;
/

And then call the wrapper procedure in your scheduled job instead.