JDBC call to PLSQL block having Oracle type object parameter
posted 7 years ago
I have been atempting migration from Oracle 9i to 10g(both app server and DB) for my application and am stuck on two issues related to Oracle TYPE parameters.
1. When the "Type" parameter in IN/OUT we get the "protocol violation" error, and if we change the parameter to just IN
it completes the JDBC call successfully without error.
2. Irrespective of the TYPE paramter being just IN or IN/OUT some values seem to be lost when call is made.
The code snippet below replicates what is happening in my applcation and output printed in the end, any suggestions are highly appreciated.
These are the environment details
App server version : Oracle Application Server 10g 10.1.2.0.2
Database version : Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
JDBC ver. :10.1.0.5.0