This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Oracle wrong number or types of arguments...

 
Bloo Barton
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to call a Stored Procedure from JDBC. The registration appears to initialize correctly, but then when I execute the CallableStatement I receive an error message


java.sql.SQLException: [Macromedia][Oracle JDBC Driver][Oracle]ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'GET_DOCUMENTS'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored


I have gone over it several times, but don't see anything wrong. I have now manually entered values into my registrations to try and eliminate any possibilities of errors occuring due to there sometimes being null data. However, the problem still is occurring! Here is the code I'm using.

 
Karthikeyan Rajendraprasad
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

is the date columns(8,10 & 11) are of type string or date in the table.

this may be a reason.

we call the procedure like

im not sure whether begin and end can be there.
 
Bloo Barton
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The dates are inputted as strings the stored procedure is like this.



The begin and end are definately there. That is the Oracle PL/SQL way of building a callable statement. I am using that instead of the SQL92 escape syntax because I was having some minor issues with the SQL92 syntax working with Oracle 9.
 
Karthikeyan Rajendraprasad
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is the case of your procedure same as the one in DB??

you have given all of them in uppercase. just check that..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic