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

相关推荐
云和数据.ChenGuang2 天前
openGauss赋能新能源汽车智能制造——比亚迪MES系统数据库国产化升级案例
数据库·汽车·opengauss·gaussdb·数据库权限管理
云和数据.ChenGuang2 天前
GaussDB 期末考试题与面试题
数据库·opengauss·gaussdb·数据库期末试题
Neolnfra4 天前
openGauss部署配置指南
数据库·opengauss·gaussdb
Gauss松鼠会10 天前
【openGauss】如何在openGauss/PostgreSQL手动清理XLOG/WAL 文件?
数据库·sql·postgresql·database·opengauss
大猫和小黄14 天前
若依微服务Cloud中Quartz-Job模块适配OpenGauss数据库
数据库·微服务·opengauss·quartz·定时任务·若依·job
IvanCodes14 天前
openGauss 高级特性:优化器、存储引擎与分区管理
数据库·sql·opengauss
IvanCodes15 天前
openGauss 存储核心机制:从表空间到数据块
数据库·sql·oracle·opengauss
Gauss松鼠会23 天前
【openGauss】让gsql和sqlplus输出包含有SQL及数据的完全一致的文本文件
数据库·sql·database·opengauss
Gauss松鼠会1 个月前
【openGauss】如何通过pg_trigger.tgtype获取触发器的各种触发条件
数据库·vr·database·opengauss