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 » Call oracle stored procedure

Post new topic  Reply to topic
 Call oracle stored procedure « View previous topic :: View next topic » 
Author Message
Vijay_d
PostPosted: Fri Sep 05, 2008 2:55 pm    Post subject: Call oracle stored procedure Reply with quote

Apprentice

Joined: 09 Oct 2006
Posts: 26
Location: LONDON

Hi ,

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;
/

let me know ur views

thanks
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Fri Sep 05, 2008 11:04 pm    Post subject: Re: Call oracle stored procedure Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

You can not do it with ESQL.
You can use JAVA code.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
Vijay_d
PostPosted: Sat Sep 06, 2008 2:38 am    Post subject: call oracle stored procedure Reply with quote

Apprentice

Joined: 09 Oct 2006
Posts: 26
Location: LONDON

Ya i came to know that from the documentation.

But how can ESQL doesnt support this function.. when java can do i thought esql shld also be able to do in some way..

iam not a java developer .. so do u how we use it in the JCN.. do u we need to add some api to it?

and anyidea on the ROW data type? does it solve with esql
Back to top
View user's profile Send private message
mgk
PostPosted: Sat Sep 06, 2008 4:53 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

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.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Mon Sep 08, 2008 12:14 am    Post subject: Re: call oracle stored procedure Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Vijay_d wrote:


But how can ESQL doesnt support this function.. when java can do i thought esql shld also be able to do in some way..



eSQL still does not understand array data type...
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Call oracle stored procedure
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.