安装Ora2pg时,碰到
异常现象
D:\ProgramFiles\ora2pg>ora2pg -t show_report --estimate_cost -c ora2pg_conf.dist
install_driver(Oracle) failed: Can't load 'D:/ProgramFiles/strawberry/perl/site/lib/auto/DBD/Oracle/Oracle.xs.dll' for module DBD::Oracle: load_file:找不到指定的模块。 at D:/ProgramFiles/strawberry/perl/lib/DynaLoader.pm line 193.
at (eval 12) line 3.
Compilation failed in require at (eval 12) line 3.
Perhaps a required shared library or dll isn't installed where expected
at D:/ProgramFiles/strawberry/perl/site/lib/Ora2Pg.pm line 1828.
引起这个原因有很多,以下是列举可能性
① DBD::Oracle驱动确实没有加载
②驱动和客户端不匹配
ora2pg-22.1
配 DBD-Oracle-1.80
配 Oracle client 12.1
如果是ora2pg-22.1
配 DBD-Oracle-1.80
配 Oracle client 12.2
,就会报上面的错误
LZ 就是拿DBD-Oracle-1.80
配Oracle client 12.2
,结果一致报此错误.
正确的配置是:ora2pg-22.1
配 DBD-Oracle-1.83
配 Oracle client 12.2