Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uXIbo-008CBz-UL for pgsql-novice@arkaria.postgresql.org; Thu, 03 Jul 2025 12:00:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uXIbn-00DERQ-2b for pgsql-novice@arkaria.postgresql.org; Thu, 03 Jul 2025 12:00:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uXDm6-00AjFD-TR for pgsql-novice@lists.postgresql.org; Thu, 03 Jul 2025 06:50:27 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uXDm5-005SKR-0d for pgsql-novice@postgresql.org; Thu, 03 Jul 2025 06:50:27 +0000 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-3a4f72cba73so353066f8f.1 for ; Wed, 02 Jul 2025 23:50:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1751525423; x=1752130223; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=94cFiJZ0chzbFHV+xhpDcFEUnK5snUjAlZX7Ivc6Vig=; b=ZGHClS9xDw7JeXWgwhIaEufadYx/xSzo9+09Yjg168mG1DvP23cfCMXxfPcNOr2Xys sONu3PKRo+YaJ13mV070Qj/LzN4L3fHK7AU7eGzScHMwLUPg7MC3iYy7QEKU34R9fVa2 Yk7al2yq0tSrzJLorgT+2SThm6HqMYPxHYNU4Lg/nAEXO5H0GAdF8CbtDKaA7quDOIfV UBRWQQw5zvBltVbYySk5RSnlGYoXbQDi8M7ZdIBzULg/d+9nd9oMZrHUcl4QKNh6gwoF Qyt/RrN6mDM+3FkXbktXvmvWUBhn3Xq9dLXtFVonGYxkGTqWElQSXIPXQqlWIApIapvu sInw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751525423; x=1752130223; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=94cFiJZ0chzbFHV+xhpDcFEUnK5snUjAlZX7Ivc6Vig=; b=X4vkQK/KyTNatXX+Kc1arIGrnnAYTj4pHJK3BO4XO2hS0z8c8S5MbTwFW1UL27tKjm 9WuSOYM993MBEvOy1ZJop3MA0ZH6lQJ7Jd35kxyvwF196y+0X3VUaWoeSzMg6wSUfwKZ M9tra/8joeig3S43pQVEIHYqI0q+xhF6lYH0ZVBZEf8Qh73yF4wvHDLcV7bF/AL4wCiQ MzijyTf0NWcZTA5TiRfAaGJ2S03vpLUSMjJFIDw8oP23XOesOWLoEQWgXrUJgfW8X2Hk DG/VJ1Y11XKz7LQA1cdhUQ+5lBM1hdTAM+4XUGiasxCrH7x8SV6mHG2MmF23K/4JRfYo v15Q== X-Forwarded-Encrypted: i=1; AJvYcCUAihSa5iR1OGSExz5bGXB1fzBeULBn0PVLhBQP7WiDGKibt+SU10BDZiHIxvNIYekM4zqaopuWGfzK/nw=@postgresql.org X-Gm-Message-State: AOJu0YwvQ2x/aL7h+QOiju5bzd2eKGpKTIAeciPgk9uR7VZTGRIVBhFk HCIok2kc5Cx55/7+5lz027bbP2lQEe2OKlnXVrtPvQm2QbhVpaVLJs7c02t//m6yh8uRiF2MhJP yySJC X-Gm-Gg: ASbGnct6umeiJgaKPQuupxZ92eQkTl2/VAkFxo3/kHMUeldYT2/HFMM4UVY7BaAjgy0 WPbkwchf7KjAJUXRz3ImubLCZF3WCfC6u0c7pJBHI4F8Hslsy8DpRI0nIahoOA0OZpJ3uGjeuEJ weBNjgvtd3L2laJ5Udk7qBZztuFGngl0rWu5WpJkWy6PeC6ClI5sfK9BoAp28g+2ZgfftLGcJQB rKbZ8dEoLeN/uPOK3W3rK2u5w7OknX60/OQoHkpOsDgo4UINcVo30U0bmF+D3rmW2YoRWQD435k 8qsjPENHIOL7PX+q6jeCD2vWP2g/GgIw+9FKHwSWmGPZc5IRHzcmD9Kk0OQNsg9oi7BK+xvpllZ 7XmwXAmTb5n4AnQ== X-Google-Smtp-Source: AGHT+IHUR4IN7sPR8Ciugy/K5+sIb9D9I7+3Sf2pTt4JXyhTqL6Wx2jqtw2PY64nTqDTBJdP0EOrIg== X-Received: by 2002:a05:6000:1885:b0:3a9:16f4:7a38 with SMTP id ffacd0b85a97d-3b34243febamr1153233f8f.2.1751525423518; Wed, 02 Jul 2025 23:50:23 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:5e:ea56:ea48:53db:df97:245]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-454a99666c3sm17851435e9.2.2025.07.02.23.50.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jul 2025 23:50:23 -0700 (PDT) Message-ID: Subject: Re: Foreign Data Wrapper from Oracle to Postgres 16 From: Laurenz Albe To: Santhosh S , pgsql-general@postgresql.org, pgsql-novice@postgresql.org Date: Thu, 03 Jul 2025 08:50:22 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-1.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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=C2=A0Forei= gn Data Wrapper > to transfer data from Oracle to Postgres 16. We followed the below steps = in order: >=20 > 1. Developed the Foreign Data Wrapper (64-bit) using Microsoft Visual Stu= dio to transfer from Oracle to Postgres 16 > 2. Installed Oracle Instant Client 64-bit versionand InstantClient Path h= as 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 pac= kage should > be copied into the respective folders of PostgreSQL Installation direc= tory > 5.=C2=A0=E2=80=9Coci.dll=E2=80=9D from the Oracle Instant Client Installa= tion directory to PostgreSQL Installation directory > 6. Visual C++ redistributable is installed >=20 > After the above steps when we try to execute the below statement in Postg= res 16 >=20 > CREATE EXTENSION IF NOT EXISTS oracle_fdw > SCHEMA public > VERSION "1.2" >=20 > we get the error "SQL Error [58P01]: ERROR: could not load library "C:/Pr= ogram Files/PostgreSQL/16/lib/oracle_fdw.dll": The specified module could n= ot be found. > Error position"=C2=A0 >=20 > But we are able to execute the above command successfully in Postgres 13 = and successfully transfer data from Oracle to Postgres 13. >=20 > Any help or direction would be greatly helpful. This is better tracked here: https://github.com/laurenz/oracle_fdw/issues/7= 54 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