ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to pass array values to oracle stored procedure in ESQL

Post new topic  Reply to topic
 How to pass array values to oracle stored procedure in ESQL « View previous topic :: View next topic » 
Author Message
sameetbhogi
PostPosted: Fri Aug 01, 2014 6:55 am    Post subject: How to pass array values to oracle stored procedure in ESQL Reply with quote

Newbie

Joined: 12 Jan 2011
Posts: 8

Hi,

can you please let me know how to pass array values to a Oracle stored procedure in ESQL.

Array Definition in Oracle

create or replace TYPE ID_ARRAY
AS VARRAY(1000) OF VARCHAR2(10);

Oracle Stored Procedure

CREATE OR REPLACE FUNCTION GETEMPINFO
(
pResponseCode OUT NUMBER ,
empList IN ID_ARRAY
, RESULTCURSOR OUT SYS_REFCURSOR
) RETURN NUMBER AS
BEGIN

OPEN RESULTCURSOR FOR
SELECT * FROM EMP, TABLE(empList) LIST WHERE LIST.COLUMN_VALUE = EMP.EMPNO;
pResponseCode := 0;
RETURN pResponseCode;
END GETEMPINFO;
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to pass array values to oracle stored procedure in ESQL
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.