These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Executing oracle stored proc
PostPosted: Wed Feb 28, 2007 11:05 am 
Beginner
Beginner

Joined: Wed Nov 29, 2006 12:23 pm
Posts: 42
I'm trying to execute an Oracle stored proc using NHibernate 1.2 CR1. I've had a good look around, but am finding it hard to find an example of exactly how to do this.

Does the bug referenced at the bottom of this thread:

http://forum.hibernate.org/viewtopic.ph ... 7d3e2e43dc

and the discussion in the four threads linked, mean that it is effectively not possible to currently call oracle stored procedures?

I'm trying to call an oracle stored procedure that has a ref cursor as its output parameter, but am unsure how to specify the location/name/type etc. of this.

The proc takes a total of 5 params and if I specify (using SetString) 4 I get an error saying:
ORA-06553: PLS-306: wrong number or types of arguments in call


If I specify the output param as ? but don't set it to anything (What should I set it to?) I get the following error.

Not all positional parameters have been set. Expected 1, set 0.

Basically, is it currently possible to call oracle stored procs with a cursor as output using NHibernate1.2.CR1? If so, how? If not, will this be implemented before NHibernate 1.2 goes to full release?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 01, 2007 4:26 am 
Newbie

Joined: Mon Feb 26, 2007 12:53 pm
Posts: 8
The only way, I found to use out parameter :

http://forum.hibernate.org/viewtopic.php?t=971501

:(


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


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

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.