In the below example , I have a SP which will return a SYS_REFCURSOR as OUT parameter to the Java service, and in the same SP, it will insert the SYS_REFCURSOR result to ano