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 » Database stored porocedure

Post new topic  Reply to topic
 Database stored porocedure « View previous topic :: View next topic » 
Author Message
apolireddy
PostPosted: Tue Sep 04, 2012 1:58 am    Post subject: Database stored porocedure Reply with quote

Newbie

Joined: 04 Sep 2012
Posts: 5

Hi,

I am facing problem when ESQL PROCEDURE calling oracle stored proc.

ESQL stored proc.

CREATE PROCEDURE *********(
IN p1 CHARACTER, IN p2 CHARACTER,IN p3 CHARACTER,IN p4 CHARACTER)
--IN p1 CHARACTER, IN p2 CHARACTER,IN p3 CHARACTER,IN p4 CHARACTER)
LANGUAGE DATABASE
DYNAMIC RESULT SETS 1
EXTERNAL NAME "XXXXXXXXXXXXX";

this is the oracle stored proc


PROCEDURE XXXXXX(
P_START_POINT IN VARCHAR2,
P_START_DATE IN VARCHAR2,
P_PERIOD IN VARCHAR2,
P_NUM_OF_PERIODS IN VARCHAR2,
P_MESSAGE OUT VARCHAR2,
P_SQLQ OUT VARCHAR2,
RECORDSET OUT SYS_REFCURSOR,
P_Debug_Level IN number DEFAULT 0
);


i am getting this below error.
The procedure '&1' with '&2' parameters could not be match with a corresponding Database stored porocedure.

I have created 2 different PROCEDURE. in one esql file to call different SP.

mb v8


Could you please help me on this.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Sep 04, 2012 2:27 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

set dynamic result sets to 2.

declare an in parameter for the debug flag.
Back to top
View user's profile Send private message
apolireddy
PostPosted: Tue Sep 04, 2012 2:38 am    Post subject: Reply with quote

Newbie

Joined: 04 Sep 2012
Posts: 5

Hi i did that but still i am facing same prob.

The procedure '&amp;1' with '&amp;2' parameters could not be match with a corresponding Database stored porocedure.</Text>
Back to top
View user's profile Send private message
exerk
PostPosted: Tue Sep 04, 2012 3:16 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Moving this to a more appropriate forum. apolireddy, please take more care as to which forum you post in, thank you.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Sep 04, 2012 4:05 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The error is straightforward and basic.

The ESQL declaration of the procedure does not match the database declaration of the procedure.

I believe there are some issues with Oracle stored procedures that are overloaded - where Oracle knows about two different procedures with the same name but different argument lists. But you should research that, I may be remembering wrong.

Otherwise, you should make the ESQL procedure exactly match the definition of the procedure in the database.
Back to top
View user's profile Send private message
apolireddy
PostPosted: Wed Sep 05, 2012 1:43 am    Post subject: Thank-you Reply with quote

Newbie

Joined: 04 Sep 2012
Posts: 5

Thanks for you help and suggestions.

Regards,
Ayyappa
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 » Database stored porocedure
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.