安装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.

相关推荐
赵渝强老师10 天前
【赵渝强老师】openGauss的数据库
数据库·opengauss·国产数据库·高斯数据库
赵渝强老师3 个月前
【赵渝强老师】高斯数据库(openGauss)的逻辑存储结构
数据库·postgresql·opengauss·gaussdb·国产数据库·高斯数据库
赵渝强老师3 个月前
【赵渝强老师】高斯数据库(openGauss)的体系架构
数据库·postgresql·opengauss·gaussdb·国产数据库
Gauss松鼠会3 个月前
【GaussDB】GaussDB 表的创建与使用之临时表
数据库·database·opengauss·gaussdb
Gauss松鼠会3 个月前
openGauss数据库源码解析系列文章——存储引擎源码解析(一)
数据库·oracle·性能优化·database·opengauss
Gauss松鼠会3 个月前
openGauss数据库源码解析系列文章--openGauss简介(上)
数据库·性能优化·database·opengauss
一点多余.4 个月前
openGauss 企业版安装全流程指南
linux·数据库·opengauss·企业版
king_harry4 个月前
openGauss 6.0 主备集群备份与恢复实战指南:基于 gs_probackup
数据库·opengauss·gs_probackup
IvanCodes5 个月前
openGauss 实战手册:gsql 常用命令、认证配置与运维工具全解
大数据·数据库·sql·opengauss
Gauss松鼠会5 个月前
【openGauss】openGauss 中一个数据库可以被多个用户访问
数据库·sql·性能优化·database·opengauss