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 IndexWebSphere Message Broker SupportPassing Ref cursor as INPUT parameter to Oracle SP in ESQL

Post new topicReply to topic
Passing Ref cursor as INPUT parameter to Oracle SP in ESQL View previous topic :: View next topic
Author Message
asrajesh
PostPosted: Tue Oct 31, 2017 2:19 am Post subject: Passing Ref cursor as INPUT parameter to Oracle SP in ESQL Reply with quote

Novice

Joined: 19 Jan 2013
Posts: 15

Hi

We are using IIB 9 .. and MQ 8

We have a requirement of calling ORACLE SP from ESQL . That SP accepts two String values and one Ref Cursor as Input parameter and Two String values as Output parameter..

How can we pass values to this Ref cursor (in Oracle SP) from ESQL ?

Please help..

Thanks

Regards
S. Rajesh
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Oct 31, 2017 4:34 am Post subject: Re: Passing Ref cursor as INPUT parameter to Oracle SP in ES Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 24614
Location: Ohio, USA

asrajesh wrote:
How can we pass values to this Ref cursor (in Oracle SP) from ESQL ?


With difficulty. See here:

Quote:

All external procedures have the following restrictions:
- A stored procedure cannot be overloaded on the database side. A stored procedure is considered overloaded if there is more than one procedure of the same name in the same database schema. If the integration node detects that a procedure is overloaded, it raises an exception.
- Parameters cannot be of the ESQL REFERENCE, ROW, LIST, or INTERVAL data types.
- User-defined types cannot be used as parameters or as return values.

_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
asrajesh
PostPosted: Tue Oct 31, 2017 5:16 am Post subject: Reply with quote

Novice

Joined: 19 Jan 2013
Posts: 15

Thanks Vitor for your reply..

But, the link does not have information about passing ref cursor to ORACLE SP (through ESQL)..

I don't think the Stored Procedure in the database is overloaded.. The SP is written by another vendor and we only have execute permission ..
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Oct 31, 2017 5:28 am Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 24614
Location: Ohio, USA

asrajesh wrote:
But, the link does not have information about passing ref cursor to ORACLE SP (through ESQL)..


And I even bolded the part where it says the parameter can't be a reference type......
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
asrajesh
PostPosted: Tue Oct 31, 2017 6:06 am Post subject: Reply with quote

Novice

Joined: 19 Jan 2013
Posts: 15

sorry .. I did not notice properly.


So, in short, Reference cursor cannot be sent as Input parameter using ESQL to Oracle SP..

Am I correct ?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Oct 31, 2017 6:21 am Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 24614
Location: Ohio, USA

asrajesh wrote:
sorry .. I did not notice properly.


So, in short, Reference cursor cannot be sent as Input parameter using ESQL to Oracle SP..

Am I correct ?



_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
nukalas2010
PostPosted: Wed Nov 01, 2017 1:53 am Post subject: Reply with quote

Master

Joined: 04 Oct 2010
Posts: 213
Location: Somewhere in the World....

asrajesh wrote:
sorry .. I did not notice properly.


So, in short, Reference cursor cannot be sent as Input parameter using ESQL to Oracle SP..

Am I correct ?


I had done for one of my old project. We can achieve this by using JDBC connection and on JCN.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Nov 01, 2017 9:04 am Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 24614
Location: Ohio, USA

nukalas2010 wrote:
asrajesh wrote:
sorry .. I did not notice properly.


So, in short, Reference cursor cannot be sent as Input parameter using ESQL to Oracle SP..

Am I correct ?


I had done for one of my old project. We can achieve this by using JDBC connection and on JCN.


Which, while a valid comment, doesn't add to the question of it being possible through ESQL as the OP asked.....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Nov 01, 2017 1:19 pm Post subject: Reply with quote

Grand Poobah

Joined: 18 Nov 2003
Posts: 19382
Location: LI,NY

asrajesh wrote:
sorry .. I did not notice properly.


So, in short, Reference cursor cannot be sent as Input parameter using ESQL to Oracle SP..

Am I correct ?

My understanding is that REF CURSOR is a reference to a DB Cursor.
Such a thing does not exist in ESQL...
So you would have to create another procedure that provides the ref cursor to the procedure you are going to call therein...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportPassing Ref cursor as INPUT parameter to Oracle SP 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.