• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Passing java arrays to PL/SQL and vice versa

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

How can i pass java array to PL/SQL ( stored procedures oracle) and return an array from PL/SQL and receive in java.

I am using oracle 9i.

Thanks,
Sarika.
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sarika,
Have a look at this (very) recent discussion (in this forum):

http://tinyurl.com/8eldg

Good Luck,
Avi.
 
Bartender
Posts: 361
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
u hav to first create a type in PL/SQL via SQL*Plus like this:
create or replace type NUM_ARRAY as table of number;
then hav to use it in the function/proc like this:
create or replace function getStack(bbid_array in num_array)
Morever visit this URL
web page
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic