OracleBulkCopy Memory Leak(OutOfMemory Exception)

点点圈 提交于 2019-12-04 14:51:36

Found the root cause, the exe is running in 32 bit and it has a 1.5G memory limit. Need to change the target platform and replace Oracle.DataAccess.dll to 64 bit version.

Also there is an alternative solution: load data in batch so it will not exceed 1.5 G memory limit.

Update:

"MEMORY LEAK USING ORACLEBULKCOPY": the oracle bulk copy has some bug that causes memory leak, it happens when the BatchSize is less than datatable size. Need to modify the BatchSize or update ODAC to higher version.

Reference: https://community.oracle.com/message/4593452#4593452

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!