[英]ora2pg could not open extension control file PostgreSQL/11/share/extension/oracle_fdw.control
I m trying to migrate an oracle db to postgres using ora2pg, with schema already created in postgres, using COPY directive.我正在尝试使用 ora2pg 将 oracle db 迁移到 postgres,并使用 COPY 指令在 postgres 中创建模式。 The export seems done, but when trying to connect to postgres I get the following:
导出似乎完成了,但是在尝试连接到 postgres 时,我得到以下信息:
DBD::Pg::db do failed: ERROR: could not open extension control file "C:/Program Files/PostgreSQL/11/share/extension/oracle_fdw.control": No such file or directory at C:/Strawberry/perl/site/lib/Ora2Pg.pm line 21943. FATAL: ERROR: could not open extension control file "C:/Program Files/PostgreSQL/11/share/extension/oracle_fdw.control": No such file or directory Aborting export... DBD::Pg::db 失败:错误:无法打开扩展控制文件“C:/Program Files/PostgreSQL/11/share/extension/oracle_fdw.control”:C:/Strawberry/perl 处没有此类文件或目录/site/lib/Ora2Pg.pm 第 21943 行。致命:错误:无法打开扩展控制文件“C:/Program Files/PostgreSQL/11/share/extension/oracle_fdw.control”:没有此类文件或目录正在中止导出.. .
I'm not using instaclient, I have a full installation of oracle 12 locally.我没有使用 instaclient,我在本地完整安装了 oracle 12。
Edit: the file is not present in postgres installation, but from what I see Perl is trying to create it and fails.编辑:该文件在 postgres 安装中不存在,但从我看到的 Perl 正在尝试创建它并失败。
I make comment out FDW_SERVER orcl
in ora2pg.conf , like this:我在ora2pg.conf中注释掉
FDW_SERVER orcl
,如下所示:
# FDW_SERVER orcl
That helped!这有帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.