To pass an array to oracle procedure we use ArrayDiscriptor and
ARRAY objects. What objects do I have to use to pass an object to
a stored procedure?
-
Is the Oracle procedure written in PL/SQL or Java?Jim Garrison– Jim Garrison2011-03-06 01:37:01 +00:00Commented Mar 6, 2011 at 1:37
-
Orcale procedure written in PL/SQL .palAlaa– palAlaa2011-03-06 01:39:28 +00:00Commented Mar 6, 2011 at 1:39
-
Dupe - Pass array to Oracle ProcedureSathyajith Bhat– Sathyajith Bhat2011-03-06 13:24:00 +00:00Commented Mar 6, 2011 at 13:24
Add a comment
|
1 Answer
The ArrayDesciptor and ARRAY classes (as well as StructDescriptor and STRUCT) map to Oracle TYPES - i.e. objects created something like...
create type my_obj as object( id varchar2(x), etc );
If you have access to the java, you should be able to see where the ArrayDescriptor is constructed and get the database type name from that.
You can use these oracle types as parameters to functions and procedures.