Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Object to PL SQL Object

 
Dipti Karnataki
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hi,

I have a requirement where I need to call a procedure which has five arguments and three are in and 2 are out.

The first parameter is of type TBL and has a corresponding OBJ type in data base, all the values of TBL type are varchar.

For this TBL type I am using a ArrayDescrptor and for OBJ using StructDescriptor.

once this is done setting the values of Object[] to User's Strings and passing to new STRUCT , the struct which I get from this I am passing to ARRAY and this is giving me a

Internal Representation Error.

while creating ARRAY object. If I am directly passing STRUCT object to cstcmt.setObject , it is giving me invalid number or type of arguments.



I have to complete this very urgently. Please help me with this. If any one has good knowledge on this may be we can have a call or webex.


Thanks in advance.

Dipti
 
Ireneusz Kordal
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please give versions of Oracle and JDBC driver you are using.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!