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 1u7H54-00DpxK-QI for pgsql-general@arkaria.postgresql.org; Tue, 22 Apr 2025 17:06:47 +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 1u7H52-00GIRu-Qs for pgsql-general@arkaria.postgresql.org; Tue, 22 Apr 2025 17:06:45 +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 1u7H52-00GIRm-DS for pgsql-general@lists.postgresql.org; Tue, 22 Apr 2025 17:06:45 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u7H4z-001ReD-2r for pgsql-general@lists.postgresql.org; Tue, 22 Apr 2025 17:06:44 +0000 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-b0b2d0b2843so4291102a12.2 for ; Tue, 22 Apr 2025 10:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745341600; x=1745946400; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wUTpxMvuuyovTdN44UZF2XC83CJk5jgmquZvcd9OYWQ=; b=S/FegW9pALWBs982A2Brqsbf+Kgtk89ruxHLCt3AfKH1DRrQm9XIg1cud5KX2TUfrW daJN8WvUo8mOfpCJlVG+bZcjk83NcLav8gEb5AjR9Sbd44Bk+YNkc1qW3kql/gcqrBTp 4ti1XghcdbicMpvzjYWqwS4bAdiCvhn3a1CMl2px1eQaNFDtXEl/IrKTYDZYlpI3kUBo QhEJqqvZI4/gGlUa8Vp1Mn/4JCnGheuNMP0/W3rqcYftG/f0NgTYwg8TUZXM20KJGoDg rkWqn5KDtCGoB1J1HXRB+M44trDQ0dDoDp2ypImRYLiPX8MYuK3LD5i7i0wTIs7GsAEN OFZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745341600; x=1745946400; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wUTpxMvuuyovTdN44UZF2XC83CJk5jgmquZvcd9OYWQ=; b=kuUbQAUQNbh/4xOA7hvqb+ztDcbI2RODtvAm/4XyNM0XBSMWo+g+ra4Ry3BAQFmnJ0 MbAFoCZOFXuLAGRkQ62UyuRVBHBuEqkDVXZ1jkp46rBckqt9odfmg6y6hF8gDuK/15A4 RYWOEWiDtdD0WnjT4YqDaVQXQk7o/L1mqMWiIhSDOkgRrxxOSwx8u5UIDlm2gdtlj1i6 H62WimawsBlKUHwok1jJEMGjp/UC74F6JyIwL4uUGqUmQEwxErYTO3DsUjCTrjP5Sqeg gyY0FGRzjEc5deFpEGwR9f0XcZw5iuG7CS9JFKVQJmlN1D6RcC8NlIwUNCfs000jjKUm vinw== X-Gm-Message-State: AOJu0YzqtJu5e4eDFtEQa+HU1K59LbMH5Ci9A5AKTf49HYKO+hqzgjpT zKlKLo3tvuzHbx6ZBcUyHXkLojgI2yGalMaQ06hTI2GZZETUvdjeSQ6rlBfaWAAnz7Mt2jSzLw1 XdrEK11vkUXfxm/FRCgEv3vSJu6A= X-Gm-Gg: ASbGncsJqj9yyh1Hjvkq3+MUgdR+on/+5pFAQaQbfFrfVjr7U0aKm1naQIFZYT6YkkT 8TRH+d7fE5fllCW3K4e/ehCvLZOJr25LhWG9AxgdswYRibaV7+JPWXKJJUedFcGfQpZ2P9qKWND tI/h3jcWoDjPzKnP2BsWbxX9voPcgNeWuxflB+CVml+wfjGahaEiJUiOOw X-Google-Smtp-Source: AGHT+IG9bS5LsTn4HgUJA12LxhaIACN2FdKuVbnqEknY/+4CV7FYIiqjaIIqFelcOWynQwwssR9WBnIyhrc0Ay5aIEo= X-Received: by 2002:a17:90b:1cc5:b0:2fe:85f0:e115 with SMTP id 98e67ed59e1d1-3087bb9f463mr18344524a91.26.1745341600177; Tue, 22 Apr 2025 10:06:40 -0700 (PDT) MIME-Version: 1.0 References: <76bb8214bcb3a4164b2d99c65982848f1e5d8a0d.camel@cybertec.at> In-Reply-To: <76bb8214bcb3a4164b2d99c65982848f1e5d8a0d.camel@cybertec.at> From: Yongye Serkfem Date: Tue, 22 Apr 2025 13:06:28 -0400 X-Gm-Features: ATxdqUFqsm_Wn9YPmGJqIIUTC5H_x_qN0Ho8agxLeGVv-u6jBvmU2O-CTpcm4k4 Message-ID: Subject: Re: Oracle_fdw To: Laurenz Albe Cc: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000001728670633610296" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000001728670633610296 Content-Type: text/plain; charset="UTF-8" Thanks, I'll look into it. On Tue, Apr 22, 2025, 7:54 AM Laurenz Albe wrote: > On Tue, 2025-04-22 at 07:28 -0400, Yongye Serkfem wrote: > > We are using Postgresql-15, ahd having issues importing foreign schema > with all > > its objects from an Oracle databse. Here is the error I am getting, > > "error connecting to Oracle: OCIEnvCreate failed to create environment > handle: Detail: SQL state: HV00N > > I have installed oracle instantclient 19_24 > > I would appreciate any help getting this resolved. > > This error usually indicated that you configured the Oracle Client wrongly. > Usually, that is a question of setting environment variables wrong, but > unfortunately it is a very generic error that Oracle throws when "something > is wrong". > > Your best bet is to research all the oracle_fdw issues that reported this > error. Hopefully, one of these cases matches yours: > https://github.com/laurenz/oracle_fdw/issues?q=is%3Aissue%20OCIEnvCreate > > Yours, > Laurenz Albe > --0000000000001728670633610296 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Thanks, I'll look into it.


On Tue, Apr 22, 2025, 7:54 AM Laurenz Albe <laurenz.albe@cybertec.at> wrote:
=
On Tue, 2025-04-22 at 07:28 -0400, Yon= gye Serkfem wrote:
> We are using Postgresql-15, ahd having issues importing foreign schema= with all
> its objects from an Oracle databse.=C2=A0Here is the error I am gettin= g,
> "error connecting=C2=A0to Oracle: OCIEnvCreate failed to create e= nvironment handle: Detail: SQL state: HV00N
> I have installed oracle instantclient=C2=A019_24
> I would appreciate any help getting this resolved.=C2=A0

This error usually indicated that you configured the Oracle Client wrongly.=
Usually, that is a question of setting environment variables wrong, but
unfortunately it is a very generic error that Oracle throws when "some= thing
is wrong".

Your best bet is to research all the oracle_fdw issues that reported this error.=C2=A0 Hopefully, one of these cases matches yours:
https://github.= com/laurenz/oracle_fdw/issues?q=3Dis%3Aissue%20OCIEnvCreate

Yours,
Laurenz Albe
--0000000000001728670633610296--