aspose file tools*
The moose likes JDBC and the fly likes Oracle wrong number or types of arguments... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Oracle wrong number or types of arguments..." Watch "Oracle wrong number or types of arguments..." New topic
Author

Oracle wrong number or types of arguments...

Bloo Barton
Ranch Hand

Joined: May 09, 2005
Posts: 63
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

Joined: Apr 16, 2003
Posts: 70
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.


Karthikeyan<br />SCJP 1.4, SCWCD.
Bloo Barton
Ranch Hand

Joined: May 09, 2005
Posts: 63
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

Joined: Apr 16, 2003
Posts: 70
is the case of your procedure same as the one in DB??

you have given all of them in uppercase. just check that..
 
 
subject: Oracle wrong number or types of arguments...