Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have to invoke a SP written on Oracle that takes 1 IN parameter and 1 OUT parameter.
The IN parameter is of type int and simple to configure.
The OUT parameter however is a table of number. Is there a way to configure this OUT parameter using tOracleSP component?
xdshi wrote:
Hi,
Can you successfully call your stores procedure 'SP_PROCESS_SPSSTOGARNET2' in oracle DB?
Could you please show us your stores procedure?
Best regards
Sabrina
CREATE OR REPLACE PACKAGE "RDFM_PROD"."TABLETSPSSTOGARNETPACK"
IS
type numTbl is table of number
index by binary_integer;
Procedure SP_PROCESS_SPSStoGARNET2(
p_In IN number,
p_Out OUT numTbl);
END;
DECLARE
P_IN NUMBER := 1;
P_OUT RDFM_PROD.TABLETSPSSTOGARNETPACK.NUMTBL;
BEGIN
RDFM_PROD.TABLETSPSSTOGARNETPACK.SP_PROCESS_SPSSTOGARNET2(P_IN, P_OUT);
DBMS_OUTPUT.PUT('P_IN: ');
DBMS_OUTPUT.PUT_LINE(P_IN);
DBMS_OUTPUT.PUT('P_OUT: ');
DBMS_OUTPUT.PUT_LINE(P_OUT(1));
END;
GO