How to call an Oracle function with a Ref Cursor as Out-parameter from C#?

You sure can. There are a few gotchas to be wary of but here is a test case create or replace function testodpRefCursor( uniqueId IN NUMBER ,resultItems OUT NOCOPY SYS_REFCURSOR) RETURN NUMBER IS BEGIN OPEN resultItems for select level from dual connect by level < uniqueId ; return 1; END testodpRefCursor; I have found that … Read more

How to see refcursor result/output in Oracle SQL Developer? [duplicate]

You can use a bind variable declared in SQL Developer to hold and show the results: var r refcursor; exec myPackage.mySPTest(P_NOTIFICATION_ID => 1975357, P_CURSOR => :r); print r; exec is shorthand for an anonymous block so this is equivalent to: var r refcursor; begin myPackage.mySPTest(P_NOTIFICATION_ID => 1975357, P_CURSOR => :r); end; / print r; Unless … Read more