当前位置: 首页 > news >正文

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

 

http://www.lryc.cn/news/212433.html

相关文章:

  • x86-32-Linux下栈溢出攻击原理
  • GPS学习(一):在ROS2中将GPS经纬度数据转换为机器人ENU坐标系,在RVIZ中显示坐标轨迹
  • chatgpt生成文本的底层工作原理是什么?
  • javaEE -11(10000字HTML入门级教程)
  • LeetCode75——Day21
  • 学习笔记---更进一步的双向链表专题~~
  • vscode格式化代码, 谷歌风格, 允许短if同行短块同行, tab = 4舒适风格
  • 百度富文本上传图片后样式崩塌
  • autoware.ai中检测模块lidar_detector caffe
  • CentOS安装Ruby环境
  • 力扣第509题 斐波那契数 新手动态规划(推荐参考) c++
  • canvas绘制签名并保存
  • Android渲染流程
  • 牛客-【237题】算法基础精选题单-第二章 递归、分治
  • leetcode-字符串
  • 多线程---synchronized特性+原理
  • Qt实现卡牌对对碰游戏
  • 【3D 图像分割】基于 Pytorch 的 VNet 3D 图像分割7(数据预处理)
  • 极米科技H6 Pro 4K、H6 4K高亮定焦版——开启家用投影4K普及时代
  • 软考系统架构师知识点集锦九:数据库系统
  • IOC课程整理-6 Spring IoC 依赖注入
  • FANUC机器人PRIO-621和PRIO-622设备和控制器没有运行故障处理
  • 《动手深度学习》线性回归简洁实现实例
  • 国家数据局正式揭牌,数据专业融合型人才迎来发展良机
  • 基于springboot实现休闲娱乐代理售票平台系统项目【项目源码+论文说明】
  • 3.AUTOSAR OS分析(一)
  • AB试验(七)利用Python模拟A/B试验
  • Go语言入门-流程控制语句
  • 深入探究ASEMI肖特基二极管MBR60100PT的材质
  • python类模拟“对战游戏”