|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Multiple Oracle SP out parameters |
« View previous topic :: View next topic » |
Author |
Message
|
nelson |
Posted: Wed Aug 26, 2015 12:12 pm Post subject: Multiple Oracle SP out parameters |
|
|
 Partisan
Joined: 02 Oct 2012 Posts: 313
|
Does exist any workaround to allow an Oracle SP called from IIB9 to return more than one out parameters?
Getting this error:
Quote: |
[Oracle][ODBC][Ora]Optional feature not implemented. |
Thanks in advance. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Aug 26, 2015 12:28 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Optional feature not implemented with Oracle usually means you don't have the right Workaround value in the ODBC driver.
Otherwise, when a stored procedure call is returning more than one out parameter, you have to use dynamic results rather than specifying a fixed number. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
maurito |
Posted: Wed Aug 26, 2015 11:28 pm Post subject: Re: Multiple Oracle SP out parameters |
|
|
Partisan
Joined: 17 Apr 2014 Posts: 358
|
nelson wrote: |
Does exist any workaround to allow an Oracle SP called from IIB9 to return more than one out parameters?
Getting this error:
Quote: |
[Oracle][ODBC][Ora]Optional feature not implemented. |
Thanks in advance. |
There should be no problem returning more than 1 output parameter in Oracle.
mqjeff wrote: |
Otherwise, when a stored procedure call is returning more than one out parameter, you have to use dynamic results rather than specifying a fixed number. |
No, if the store procedure returns n out parameters, the ESQL signature should also contain n out parameters.
The signature of the ESQL definition for the store procedure MUST match the signature of the SP, otherwise the ODBC driver will not find it.
You use dynamic results when the SP returns result sets ( cursors in Oracle if I remember well). And for result sets, it can also return more than 1 result set.
The problem is likely to be an incorrect ODBC definition set up, unless you are mixing up OUT parameter with the RETURNS clause.
If you meant the RETURNS clause, then the answer is NO. This is what the doc says:
"The optional RETURNS clause is required if a stored procedure returns a single scalar value."
and I don't believe Oracle can RETURN multiple values |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Aug 27, 2015 5:02 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
maurito |
Posted: Thu Aug 27, 2015 5:07 am Post subject: |
|
|
Partisan
Joined: 17 Apr 2014 Posts: 358
|
Yes, I believe SQL allows to return a list, but it is not supported by IIB.
I have also seen the message for mismatching data types in the SQL statement. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Aug 27, 2015 5:12 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Again, ESQL does allow for databases to return more than one result set.
Whether that's a LIST or not, I don't remember.
I do believe you're right that LIST is not a supported ESQL return time, but I won't swear to that off the top of my head. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
maurito |
Posted: Thu Aug 27, 2015 5:28 am Post subject: |
|
|
Partisan
Joined: 17 Apr 2014 Posts: 358
|
mqjeff wrote: |
Again, ESQL does allow for databases to return more than one result set.
Whether that's a LIST or not, I don't remember.
I do believe you're right that LIST is not a supported ESQL return time, but I won't swear to that off the top of my head. |
I think the confusion arises by the use of the word return which is also a CLAUSE in the CREATE FUNCTION/PROCEDURE
ESQL allows more than one result set in the DYNAMIC RESULT SETS clause, but it does not allow result sets/lists/rows in the RETURNS clause. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|