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 » Oracle stored procedur call do not work from ESQL code

Post new topic  Reply to topic
 Oracle stored procedur call do not work from ESQL code « View previous topic :: View next topic » 
Author Message
shatvani
PostPosted: Mon Mar 08, 2010 1:31 pm    Post subject: Oracle stored procedur call do not work from ESQL code Reply with quote

Newbie

Joined: 08 Mar 2010
Posts: 6

Hi,

I have an Oracle database and I would like to call its stored procedure what would give back a cursor, but I'm always getting this error message:

Quote:
Text:CHARACTER:[DataDirect][ODBC Oracle driver][Oracle]ORA-06550: line 1, column 8: PLS-00306: wrong number or types of arguments in call to 'SELECTUSER' ORA-06550: line 1, column 8: PL/SQL: Statement ignored


ORACLE code in DB:
Code:

CREATE OR REPLACE PACKAGE BROKER.broker_pkg
IS
   TYPE user_ref_cursor IS REF CURSOR RETURN USERS%ROWTYPE;
END broker_pkg;
/

CREATE OR REPLACE PROCEDURE BROKER.SELECTUSER (
   uname              IN       USERS.NAME%TYPE,
   result_cur       OUT      SYS_REFCURSOR
)
AS
BEGIN
   OPEN result_cur FOR
      SELECT *
        FROM users
       WHERE users.NAME = uname;
END;
/



ESQL code in Compute node:
Code:
CREATE PROCEDURE Selection(IN user_name CHARACTER) LANGUAGE DATABASE DYNAMIC RESULT SETS 1 EXTERNAL NAME "BROKER.SELECTUSER";

CALL Selection('Hatvani István', Environment.ResultSet1[]);


Please, help me!
Back to top
View user's profile Send private message
shatvani
PostPosted: Tue Mar 09, 2010 7:34 am    Post subject: Reply with quote

Newbie

Joined: 08 Mar 2010
Posts: 6

Hi,
I had got the answer at last.
I had to check the Procedure returns results checkbox at Advanced tab of the ODBC Driver Manage or the odbc.ini must be edited on Linux.
Back to top
View user's profile Send private message
Muhammad Haider
PostPosted: Sun Aug 19, 2012 12:24 am    Post subject: Reply with quote

Apprentice

Joined: 14 Mar 2011
Posts: 43

Thanks, it helped to solve the error.
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 » Oracle stored procedur call do not work from ESQL code
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.