This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JDBC and the fly likes Error while callling stored procedure : Non supported SQL92 token Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Error while callling stored procedure : Non supported SQL92 token" Watch "Error while callling stored procedure : Non supported SQL92 token" New topic
Author

Error while callling stored procedure : Non supported SQL92 token

Pushkar Choudhary
Rancher

Joined: May 21, 2006
Posts: 425

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
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2343

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


OCUP UML fundamental
ITIL foundation
Pushkar Choudhary
Rancher

Joined: May 21, 2006
Posts: 425

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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Error while callling stored procedure : Non supported SQL92 token
 
Similar Threads
How can we call a stored procedure from java file
Bigger type length than Maximum with OracleType.CURSOR
JdbcOdbcDriver/Stored procedures. Please help
How to access return value from stored procedure thru JDBC interface
is Enumeration act as stack?