• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Oracle wrong number or types of arguments...

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic