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 » How the REF CURSOR parameter can be passed to a Oracle SP?

Post new topic  Reply to topic
 How the REF CURSOR parameter can be passed to a Oracle SP? « View previous topic :: View next topic » 
Author Message
lliu
PostPosted: Mon Nov 24, 2003 9:06 am    Post subject: How the REF CURSOR parameter can be passed to a Oracle SP? Reply with quote

Newbie

Joined: 24 Jan 2002
Posts: 6
Location: AXA IM

PROCEDURE open_emp_cv (emp_cv IN OUT types.EmpCurTyp) AS
BEGIN
OPEN emp_cv FOR SELECT * FROM emp;
END open_emp_cv;

The types is defined in a package:
PACKAGE types AS

TYPE EmpCurTyp IS REF CURSOR RETURN emp%ROWTYPE;

END types;

The stored procedure works fine under sqlplus. But I cannot make it works from a WMQI compute node. The eSQL command I tried:

SET InputDestinationList.XML.TempData."DeptName"[] = PASSTHRU('{call open_emp_cv()}');
.....


The error message is: [MERANT][ODBC Oracle 8 driver][Oracle 8]ORA-06550: line 1, column 8:
PLS-00306: wrong number or types of arguments in call to 'OPEN_EMP_CV_LYNN'
ORA-06550: line 1, column 8:
PL/SQL: Statement ignored

The error message shows that the Stored Procedure expects a cursor parameter. But I don't know how to pass the cursor variable to the stored procedure through the PASSTHRU command.

Has anyone managed to pass REF CURSOR type to an Oracle stored procedure through the wmqi compute node?

Thanks in advance for help.
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 » How the REF CURSOR parameter can be passed to a Oracle SP?
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.