Evan Cutler
asked on
JAVA PL/SQL OUTPUT
Greetings,
Does anyone have an example where from JAVA, I can call an ORACLE PL/SQL Stored Procedure, then capture the ORACLE output message (success or failure). Basically, what I want to know is if I can call the PL/SQL Stored Procedure, and capture (in JAVA) whether it ran successfully, or not.
Thank you.
Does anyone have an example where from JAVA, I can call an ORACLE PL/SQL Stored Procedure, then capture the ORACLE output message (success or failure). Basically, what I want to know is if I can call the PL/SQL Stored Procedure, and capture (in JAVA) whether it ran successfully, or not.
Thank you.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am looking for the OUT parameter...
How do I catch a SQLException?
Thanks.
How do I catch a SQLException?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks guys...Java's just still new to me.
Appreciate it.
Appreciate it.
http://www.mkyong.com/jdbc/jdbc-callablestatement-stored-procedure-in-parameter-example/
http://www.mkyong.com/jdbc/jdbc-callablestatement-stored-procedure-in-parameter-example/
Trapping the error is just like any other call: try/catch.