Closed taneraruk closed 5 months ago
That is indeed mysterious:
could not open extension control file "/usr/share/postgresql/14/extension/oracle_fdw.control": No such file or directory
but
pg_config --sharedir /usr/share/postgresql/14 ls -al /usr/share/postgresql/14/extension/ drwxrwxrwx 1 root root 4096 Feb 7 10:28 . drwxrwxrwx 1 root root 4096 Feb 7 10:28 .. -rwxrwxrwx 1 root root 231 Feb 7 10:28 oracle_fdw--1.0--1.1.sql -rwxrwxrwx 1 root root 240 Feb 7 10:28 oracle_fdw--1.1--1.2.sql -rwxrwxrwx 1 root root 1244 Feb 7 10:28 oracle_fdw--1.2.sql -rwxrwxrwx 1 root root 133 Feb 7 10:28 oracle_fdw.control
The only explanation that I have is that the first message is from a connection to a machine that is different from the one where you listed the files...
Sorry, maybe I am doing something completely wrong, I should give more details.
I have an Oracle database and I want to migrate it to Postgresql database. For migration I am using ora2pg application. We have a big amount of blob data thus migration takes too long. In this article it is advised to use oracle_fdw to fasten blob migration.
How is that comment or that image related to this issue?
Did you read my comment?
Yes, that image shows what I try to do. I try to extract and read data from oracle and write it to postgresql db. I have installed oracle_fdw on ora2pg server.
Let me repeat:
Did you make sure that the machine where you ran ls -al /usr/share/postgresql/14/extension/
is the PostgreSQL server (not the client) where you got the error message for CREATE EXTENSION
?
In your picture, that would be the machine on the right side.
Sorry for late response, yes you are right, it is my bad, trying to run it on client. It works now. Thanks for your help.
Thanks for the feedback, and good that it works for you.
Hi,
I get this error message when try to create oracle_fdw extension. I would appreciate if you help.
could not open extension control file "/usr/share/postgresql/14/extension/oracle_fdw.control": No such file or directory
control file is located under share folder,
ORACLE_HOME set,
There is no error during make install.