oracle_fdw | PostgreSQL Foreign Data Wrapper for Oracle
kandi X-RAY | oracle_fdw Summary
kandi X-RAY | oracle_fdw Summary
PostgreSQL Foreign Data Wrapper for Oracle
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of oracle_fdw
oracle_fdw Key Features
oracle_fdw Examples and Code Snippets
Community Discussions
Trending Discussions on oracle_fdw
QUESTION
I want to transfer data from remote oracle database (version 11.2) to localhost postgres (version 13) database (later to remote Postgres db, too). So, I have installed PostgreSQL 13 on my own Ubuntu 20.04.3 LTS focal and try to install oracle_fdw with this instruction. So, when trying to install Instant Client Installation for Linux x86-64 (ZIP pack; as far as I know, rpm is not available for my os configuration - no yum lib in 20.04 ubuntu focal) I follow all steps (except the last - Start your application - what does it mean?)) and when trying to execute 'make' inside oracle_fdw directory get an error
fatal error: oci.h: No such file or directory
(I download the latest development version of oracle_fdw). I found an answer of developer the oracle_fdw extension that
"If you don't have oci.h, you didn't install oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64.rpm."
but I have unzipped both instantclient-basic-linux.x64-11.2.0.4.0.zip and instantclient-sdk-linux.x64-11.2.0.4.0.zip... (for compatible with remote oracle db version 11.2)
when trying to find -name oci.h
I get ./sdk/include/oci.h
My question is - Am I really have to install ORACLE on my machine? or what oracle dependencies I have to install in order to use oracle_fdw extension? Maybe my installation of oracle-instantclient is not correct (how I can test the installation of oracle-instantclient? or maybe the location for installing oracle-instantclient must be specific). P.S.: I am completely new to oracle.
Thank you!
...ANSWER
Answered 2021-Sep-16 at 19:03All you need is Oracle Instant Client.
If your Instant Client installation is not in one of the standard paths from the RPM distributions, just set the environment variable ORACLE_HOME
to the Instant Client directory (the directory that contains sdk/include
), then make
should succeed.
QUESTION
Have a postgres database with extensions
If I do psql>\dx it shows
...ANSWER
Answered 2021-Jun-29 at 16:31The first is the extension version, which changes only if the extension's objects change. The second is the version of oracle_fdw.
See the documentation:
Note that the extension version as shown by the psql command
\x
or the system catalogpg_available_extensions
is not the installed version of oracle_fdw. To get the oracle_fdw version, use the functionoracle_diag
.
QUESTION
My problem: I need to define foreign table dynamically and set different where conditions every time. I am doing this in function, but I am getting error which doesn't make sense to me during creation of the foreign table(via oracle_fdw).
Creation of foreign table that works:
...ANSWER
Answered 2020-Dec-02 at 09:23You have to use a string literal as value for a FDW option, expressions like the string concatenation you are trying to use are not allowed.
You will have to construct the complete statement with dynamic SQL, for example
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install oracle_fdw
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page