Author |
Message
|
asrajesh |
Posted: Tue Oct 31, 2017 2:19 am Post subject: Passing Ref cursor as INPUT parameter to Oracle SP in ESQL |
|
|
 Novice
Joined: 19 Jan 2013 Posts: 20
|
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 |
|
 |
Vitor |
Posted: Tue Oct 31, 2017 4:34 am Post subject: Re: Passing Ref cursor as INPUT parameter to Oracle SP in ES |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, 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 |
|
 |
asrajesh |
Posted: Tue Oct 31, 2017 5:16 am Post subject: |
|
|
 Novice
Joined: 19 Jan 2013 Posts: 20
|
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 |
|
 |
Vitor |
Posted: Tue Oct 31, 2017 5:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, 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 |
|
 |
asrajesh |
Posted: Tue Oct 31, 2017 6:06 am Post subject: |
|
|
 Novice
Joined: 19 Jan 2013 Posts: 20
|
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 |
|
 |
Vitor |
Posted: Tue Oct 31, 2017 6:21 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, 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 |
|
 |
nukalas2010 |
Posted: Wed Nov 01, 2017 1:53 am Post subject: |
|
|
 Master
Joined: 04 Oct 2010 Posts: 220 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 |
|
 |
Vitor |
Posted: Wed Nov 01, 2017 9:04 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, 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 |
|
 |
fjb_saper |
Posted: Wed Nov 01, 2017 1:19 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 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 |
|
 |
|