Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: passing an array variable from a .Net middle tier to a databse
You can't use a PL/SQL table in ODP.NET. ODP.NET currently does not
support object type or collection type:
http://forums.oracle.com/forums/thread.jsp?forum=146&thread=211399&tstart=0&trange=15
Your best bet would be to use array binding i.e. bind an array to the OracleParameter object and set the ArrayBindCount in the OracleCommand object:
http://download-west.oracle.com/docs/html/A96160_01/features.htm#1049674
HTH,
Dave
ryan_oracle_at_cox.net wrote:
> Im sure on the DB side this is the same for Java and C/C++ also.
>
> The OO guys pass us an array. When I write my code, I need to define a PL/SQL table that maps exactly to the array correct?
>
> Our middle tier is having problem doing bulk inserts since its doing one at a time and I believe it closes the session each time. I also think there is an auto-commit on.
>
> I cant help with that... However, I want to pass it to a pl/sql table with some other variables then dynamically insert it into the database from package. This should clear up the bottleneck.
>
> is this doable? I cannot touch the middle tier or OO stuff. Strictly the database.
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: David Hau INET: davehau123_at_netscape.net Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Nov 10 2003 - 12:44:27 CST
![]() |
![]() |