Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Error while callling stored procedure : Non supported SQL92 token

 
Rancher
Posts: 425
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm trying to call a stored procedure from Java and getting an error while trying to do so.

The stored procedure accepts 1 String parameter as input and outputs 3 parameters as VARCHAR (i.e. String).

I'm able to run the stored procedure separately and it gives the expected result. So, there might not be any issues in the stored procedure. I'm also able to connect to the Oracle database and run a simple select query. The problem only arises while calling a stored procedure.

Here's the code snippet for calling the stored procedure:


Here's the error log:


I'm guessing there might be a problem with the syntax while calling the stored procedure. But, I'm not sure how to fix it.

Any help would be highly appreciated.

Thanks.

-Pushkar
 
Bartender
Posts: 2658
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show the signature of your stored procedure in pl/sql?

I have my doubts on the correctness of (?,?,?) = call SAMPLE_PROC(?). Should this not be call SAMPLE_PROC(?,?,?,?) ?

Regards, Jan
 
Pushkar Choudhary
Rancher
Posts: 425
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jan Cumps wrote:I have my doubts on the correctness of (?,?,?) = call SAMPLE_PROC(?). Should this not be call SAMPLE_PROC(?,?,?,?) ?



Thanks a lot Jan. Your suggestion solved the problem.

-Pushkar
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic