Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

JDBC call to PLSQL block having Oracle type object parameter

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,

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.

Thanks
-Rohit

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


 
reply
    Bookmark Topic Watch Topic
  • New Topic