Page 1 of 1

How send array to Oracle Stored Procedure?

Posted: Mon 14 Mar 2016 13:04
by Quido
Hello,

is it possible to send an array as a parametr to Oracle SP from UNIDAC?
Or any other collect data type? Or through TuniTable only?

On Oracle side can be, for example, user defined data type based on TABLE data type:

CREATE OR REPLACE PACKAGE p IS
TYPE p_type IS TABLE OF VARCHAR2(100) INDEX BY BINARY_INTEGER;

PROCEDURE px (inp p_type);
END p;
/
CREATE OR REPLACE PACKAGE BODY p IS
PROCEDURE px (inp p_type) IS
BEGIN
FOR i IN 1..inp.count LOOP
dbms_output.put_line(inp(i));
END LOOP;
END px;
END p;
/

Thanks in advance

Re: How send array to Oracle Stored Procedure?

Posted: Tue 15 Mar 2016 16:20
by MaximG
Unfortunately, work with Oracle specific objects (REF cursors, Objects, Array) as with parameters is available only in Devart ODAC:

https://www.devart.com/odac/features.html