I want to call oracle10g’s stored procedure “MyStoredProcedure” from my c# .net 4 code using ODP.NET (4.112.2.0).
PACKAGE MyPackage AS
TYPE ids_array IS TABLE OF NUMBER(8) INDEX BY BINARY_INTEGER;
PROCEDURE MyStoredProcedure
(
param1 IN VARCHAR2(10),
param2 IN ids_array
);
END MyPackage;
I know how to use the array bind feature, so that i can insert multiple rows into a table in a single database round-trip.
I also know how to call a stored procedure which has associative array as a parameter. What i don’t know is how to combine both?
I looked at http://docs.oracle.com/html/E10927_01/featOraCommand.htm#i1007888 for example and sample code (but its separate examples).
Thanks
I finally had to convert the array in to comma separated string, and passed that as parameter. So inside my proc i converted my csv back to array.