I have a stored procedure written in orcale 10g which will accet one input parameter which is of type array.
How do i call this store proc using esql or any other mode in broker
how do i pass the NAME tag to the oracle stored procedure...
say i have a xml msg
<?xml version="1.0" encoding="UTF-8"?>
<Root>
<Name>
<First>VIJAY</First>
<Last>DURAIRAJ</Last>
</Name>
</Root>
the store proc in oracle is
CREATE OR REPLACE PACKAGE test1
IS
TYPE tab_arr IS TABLE OF VARCHAR2(20) INDEX BY BINARY_INTEGER;
PROCEDURE prc_ins (p_arr IN tab_arr);
END;
/
CREATE OR REPLACE PACKAGE BODY test1 IS
PROCEDURE prc_ins (p_arr tab_arr)
IS
BEGIN
FOR i IN p_arr.FIRST..p_arr.LAST
LOOP
INSERT INTO Array_test(temp_name) VALUES (p_arr(i));
END LOOP;
END;
END;
/
You can call Stored Procedures from ESQL, just not ones that take arrays as parameters or return values. _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum