ora2pg 内存不足错误 - 每 table

ora2pg out of memory error - after every table

当我尝试导出数据时,无论 table 大小如何(甚至是空的 tables。),它都会用完内存。

Out of memory!            ]    162926/498508267 rows (0.0%) on total estimated data (14 sec., avg: 11637 recs/sec)
Issuing rollback() due to DESTROY without explicit disconnect() of DBD::Oracle::db handle (DESCRIPTION=(ADDRESS=(PORT=1521)(HOST=192.168.0.42)
(PROTOCOL=tcp))(CONNECT_DATA=(SID=orcl))) at 
/usr/local/lib/perl/5.18.2/DBD/Oracle.pm line 348.

询问作者,我得到了这样的回复:

You don't have enough memory. If you can't increase the memory size than reduce the value of DATA_LIMIT in ora2pg.conf. Try with 5000 and if it doesn't works use 2500.

打开 ./config/ora2pg.conf 并修改集 DATA_LIMIT 5000 解决了问题。

我最初尝试添加更多 RAM,但只是将其从 2GB 增加了一倍到 4GB,这没有帮助。减少 DATA_LIMIT 是解决方案。