TNS_ADMIN for Instant Client

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
heidenbluth
Posts: 56
Joined: Mon 08 Nov 2004 19:01
Location: Germany

TNS_ADMIN for Instant Client

Post by heidenbluth » Tue 23 Jan 2018 20:49

Currently, there is no support for listing tnsnames aliases in connect dialog when an instant client is used, even if the TNS_ADMIN environent variable is set.

This can be fixed easily by a small change in OraCall.pas that passes the values of two environment variables:

Code: Select all

procedure TOracleHomes.Init;
...
  procedure AddInstantClients;
...
//        Home := OracleHomes.Add('InstantClient' + IntToStr(InstantCount), Str, '', '', '', True);
        Home := OracleHomes.Add('InstantClient' + IntToStr(InstantCount), Str, '', GetEnvironmentVariable('TNS_ADMIN'), GetEnvironmentVariable('NLS_LANG'), True);
Would you please include this change in your next build?

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: TNS_ADMIN for Instant Client

Post by MaximG » Wed 24 Jan 2018 09:03

We will add handling of the values of the 'TNS_ADMIN' and 'NLS_LANG' environment variables when using the Oracle Instant Client and let you know the results in the near future

Post Reply