I tried your code and now I am getting different error as :
SQLException : Invalid column index
Thanks for your response.
Main Topics
Browse All Topicshi there I am trying to make a call to stored procedure in java and I am getting error as
SQLException : ORA-06553: PLS-306: wrong number or types of arguments in call to 'CHECK_INV'
Where I am wrong.
Thanks for your help in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
and the same apply for int warehouseorgid = oraclecallablestatement.ge
Let me know if this is the case - if not - post your FULL stacktrace (and make sure it is in this code and not somewhere after this)
The good news is that this error is from reading the result so your procedure is called successfully
Business Accounts
Answer for Membership
by: VenabiliPosted on 2009-04-30 at 05:19:17ID: 24269066
I would try with the code below
gisterOutP arameter(1 , Types.INTEGER); tInt(1, inventoryitemid);
.5.0/docs/ guide/jdbc /getstart/ callablest atement.ht ml is a good read on how to use CallableStatement by the way
r/~ecoquer y//files/o racle-jdbc / javadoc/o racle/jdbc /OracleCal lableState ment.html (the usual place is down so I just found a valid link fo you
Basically you need to pass all your parameters, even the out ones because you need a way to register them
And in Java Prepared Calls, a parameter is replaced with ?
So what my code below will do is to first add 5 IN parameters and set their values and then just to register 4 OUT ones.
With these
oraclecallablestatement.re
oraclecallablestatement.se
you are basically telling that the first ? is a an IN/OUT parameter... which is not what you are trying to do. The counter of the code does not restart for IN and OUT parameters - they all a re parameters
http://java.sun.com/j2se/1
And you might want to see the Javadoc of OracleCallableStatement. It's online here for example: http://www710.univ-lyon1.f
Select allOpen in new window