I m trying to migrate an oracle db to postgres using ora2pg, with schema already created in postgres, using COPY directive. The export seems done, but when trying to connect to postgres I get the following:
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...
I'm not using instaclient, I have a full installation of oracle 12 locally.
Edit: the file is not present in postgres installation, but from what I see Perl is trying to create it and fails.
I make comment out FDW_SERVER orcl
in ora2pg.conf , like this:
# FDW_SERVER orcl
That helped!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.