Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OracleCommand memory leak - inserting parameterized arrays...

user3635589Apr 19 2010 — edited Apr 20 2010
Hello,

I have a batch .net Application that bulk inserts into a table using parameterized arrays sent to a stored proc.

The application psuedo looks like this:

For each report
-Retrieve 14 K rows of data

-create arrays based on data

-specify bind count

-connect

-OracleCommand.ExecuteNonQuery <-- THIS IS WHERE THE MEMORY JUMPS AND IS NEVER RELEASED

-connection.close()

-connection.dispose()

-OracleCommand.dispose()

Next report



At this point I am very near causing an System.OutOfMemoryException

If I add any more reports to the process I am sure it will happen.


IS THERE A WAY TO RECLAIM THIS MEMORY OTHER THAN HOW I AM DOING IT? I HAVE TRIED MULTIPLE WAYS (using OracleCommand..., OracleCommand = nothing, OracleCommand.dispose) BUT THIS HAS NOT MADE ANY DIFFERENCE.



Thanks,

Joe
This post has been answered by gdarling - oracle on Apr 20 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 18 2010
Added on Apr 19 2010
4 comments
2,580 views