Re: Foreign Data Wrapper from Oracle to Postgres 16

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Santhosh S <sansel25041991(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org, pgsql-novice(at)postgresql(dot)org
Subject: Re: Foreign Data Wrapper from Oracle to Postgres 16
Date: 2025-07-03 06:50:22
Message-ID: abe0a74b0cfb238ce5dc8db5fd16d48ce2953364.camel@cybertec.at
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

On Wed, 2025-07-02 at 23:58 +0530, Santhosh S wrote:
> 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.

This is better tracked here: https://github.com/laurenz/oracle_fdw/issues/754

By the way, I took a double take when I read your report.
For me "developing" a FDW means writing the code, whereas you are clearly
talking about what I would call "building", "compiling" or "instaling"
the FDW. No problem, I just want to avoid confusion.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Erik Johnston 2025-07-03 17:07:43 Corrupt btree index includes rows that don't match
Previous Message Santhosh S 2025-07-02 18:28:33 Foreign Data Wrapper from Oracle to Postgres 16

Browse pgsql-novice by date

  From Date Subject
Next Message DINESH NAIR 2025-07-04 13:44:03 Re: Foreign Data Wrapper from Oracle to Postgres 16
Previous Message Santhosh S 2025-07-02 18:28:33 Foreign Data Wrapper from Oracle to Postgres 16