Foreign Data Wrapper from Oracle to Postgres 16 - Mailing list pgsql-general

From Santhosh S
Subject Foreign Data Wrapper from Oracle to Postgres 16
Date
Msg-id CAJgCXzONczgOARwKW-BVc_kG3JLrUa_B4nhymrAhVQB1vpCe0g@mail.gmail.com
Whole thread Raw
Responses Re: Foreign Data Wrapper from Oracle to Postgres 16
Re: Foreign Data Wrapper from Oracle to Postgres 16
List pgsql-general
Hi team,

I am working on a project along with my peers on developing an Foreign Data Wrapper to transfer data from Oracle to Postgres 16. We followed the below steps in order:

1. Developed the Foreign Data Wrapper (64-bit) using Microsoft Visual Studio to transfer from Oracle to Postgres 16
2. Installed Oracle Instant Client 64-bit versionand InstantClient Path has been set in the environment variables
3. Have Postgres 16 64-bit version installed
4. Placed all the files from each folder of the downloaded ORACLE_FDW package should be copied into the respective folders of PostgreSQL Installation directory
5. “oci.dll” from the Oracle Instant Client Installation directory to PostgreSQL Installation directory
6. Visual C++ redistributable is installed

After the above steps when we try to execute the below statement in Postgres 16

CREATE EXTENSION IF NOT EXISTS oracle_fdw
SCHEMA public
VERSION "1.2"

we get the error "SQL Error [58P01]: ERROR: could not load library "C:/Program Files/PostgreSQL/16/lib/oracle_fdw.dll": The specified module could not be found.
Error position" 

But we are able to execute the above command successfully in Postgres 13 and successfully transfer data from Oracle to Postgres 13.

Any help or direction would be greatly helpful.

Regards
Santhosh S

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: PLPGSQL - store fetched records in array of record
Next
From: Laurenz Albe
Date:
Subject: Re: Foreign Data Wrapper from Oracle to Postgres 16