安装ora2pg遇到如下问题

通过源码安装ora2pg成功后,查询帮助信息报错

root@localhost bin# ora2pg --help

Can't locate open.pm in @INC (you may need to install the open module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/local/share/perl5/Ora2Pg.pm line 1931.

BEGIN failed--compilation aborted at /usr/local/share/perl5/Ora2Pg.pm line 1931.

Compilation failed in require at /usr/local/bin/ora2pg line 27.

BEGIN failed--compilation aborted at /usr/local/bin/ora2pg line 27.

重新安装perl,发现安装的是同样的版本,但是问题解决了,奇怪

root@localhost bin# yum install perl

依赖的库版本如下:

root@localhost ora2og# perl check.pl

CPAN -- 2.36

DBD::Oracle -- 1.83

DBD::Pg -- 3.17.0

DBI -- 1.643

ExtUtils::Config -- 0.008

ExtUtils::Helpers -- 0.026

ExtUtils::InstallPaths -- 0.012

IO::Tty -- 1.17

IPC::Run -- 20231003.0

JSON -- 4.10

Module::Build::Tiny -- 0.047

Module::Signature -- 0.88

Ora2Pg -- 21.1

Perl -- 5.26.3

Readonly -- 2.05

Test::Simple -- 1.302195

root@localhost ora2og# ora2pg --help

Usage: ora2pg -dhpqv --estimate_cost --dump_as_html --option value

-a | --allow str : Comma separated list of objects to allow from export.

Can be used with SHOW_COLUMN too.

-b | --basedir dir: Set the default output directory, where files

resulting from exports will be stored.

-c | --conf file : Set an alternate configuration file other than the

default /etc/ora2pg/ora2pg.conf.

-d | --debug : Enable verbose output.

-D | --data_type STR : Allow custom type replacement at command line.

-e | --exclude str: Comma separated list of objects to exclude from export.

Can be used with SHOW_COLUMN too.

-h | --help : Print this short help.

-g | --grant_object type : Extract privilege from the given object type.

相关推荐
DarkAthena4 天前
【openGauss】排查一起panweidb2.0子链接提升的coredump案例
opengauss
RuoyiOffice5 天前
SpringBoot3 + openGauss:RuoYi Office 登录、流程发布与用印填报适配实战
java·数据库·spring boot·opengauss·信创
AI开源软件6 天前
SpringBoot信创项目怎么验收?从数据库迁移到交付证据
postgresql·springboot·达梦·opengauss·信创·企业管理系统
赵渝强老师12 天前
【赵渝强老师】高斯数据库(openGauss)的服务器日志文件
数据库·opengauss·国产数据库·高斯数据库
Gauss松鼠会19 天前
高斯数据库(openGauss)的物理存储结构
运维·服务器·数据库·sql·opengauss·经验总结
行者-全栈开发22 天前
【码动四季·秋】基于开源做发行版:MySQL/PostgreSQL 国产化发行版的技术路径与选型实战
postgresql·开源数据库·opengauss·选型·国产化替代
Sun 32852 个月前
读懂集中式主备的集群状态与节点角色
数据库·opengauss·集群·节点角色·磐维数据库·运行状态
Sun 32852 个月前
集中式主备中,CM、OM 和 DN 是怎样协作的?
数据库·opengauss·cm·磐维数据库·集中式·om·dn
赵渝强老师2 个月前
【赵渝强老师】高斯数据库(openGauss)的数据库对象
数据库·postgresql·opengauss·国产数据库·高斯数据库
风哥2号2 个月前
华为高斯数据库恢复工具FGOGDU(FGEDU openGauss DUL)
数据库·opengauss·华为高斯