"java.sql.SQLException: Ref cursor is invalid" - Please help
413635Jan 29 2004 — edited Jan 29 2004Hi everyone,
I'm really having problem. I'm surrently calling a PL/SQL stored procedure from Java but I'm getting the following error:
java.sql.SQLException: Ref cursor is invalid
The procedure has 2 normal IN parameters and 1 ref cursor OUT parameter. Depending upon Parameter 1 a ref cursor may or may not be initialised.
If Parameter 1 is "yes" then a ref cursor is called to retrieve some data and passed into the OUT. If Parameter 1 is set to "no" then the ref cursor is not initialised. It is here where the error is being hrown. Does anyone know why? Microsoft ADO doesn't seem to complain. Please help is needed. Thanks in advance.
John