on 09-04-2014 2:17 PM
We have Scenario from JDBC to RFC (ASYNCH).We are using Oracle DB,at the database side we have a stored Procedure and inside the Procedure we are accessing multiple table.
My query is how can we excecute update sql statement a stored procedure by using EXECUTE at the sender JDBC?
EXECUTE SP_STUDENT_UPDATE
ERROR: 'java.sql.SQLException: ORA-00900: invalid SQL statement '. For details, contact your database server vendor.
Hi. Peter.
yes , is possible to update your rows in your sp.
Could you put your sp? Maybe something is wrong .
Regards
Lucho
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The sender JDBC can use a stored procedure to pull the data. Within that stored procedure you can have many update statements, but only one select statement. After pulling the data, you can run a specific sql statement, but not execute a stored procedure.
In the usage scenarios at my company we do the following:
1. Execute a stored procedure to pull data (asynchronous integration) with the procedure doing the following:
a) Update a set of rows with an intermediate status
b) Select rows with this intermediate status (may contain joins to other tables)
2. For post processing, run an update statement to update records with the intermediate to the final status (e.g. "In Processing" to "Completed"
Does your stored procedure have multiple selects? Is the EXECUTE command correct? I have used EXEC with SQL Server. It appears that Oracle supports EXEC too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.