Print Thread
DOA Client on PC with 64 bit server
#56321 04/08/17 12:49 PM
Joined: Jun 2011
Posts: 12
G
Member
OP Offline
Member
G
Joined: Jun 2011
Posts: 12
Hello,
I am running version 4.1.1, on Windows 10 64 bit. I have Oracle 12.1.0.2, 64 installed on this server. I need to run Oracle 64 bit on the same server as DOA 32 bit. I have downloaded the Instant Client 32 bit. I am having challenges getting both to work together. Without Instant Client, SQL*PLus and SQL Developer work fine, both with and without a TNS Connection (aka username/password@PROD (which is both my service and SID name). I run the DeptEmp client, and connect connect, can't find oci.dll. I set $PATH (top entry) to include the instant-client, and then TNS does want to work properly. Is there a trick to getting DOA to use 32 bit, but leaving the server stuff using 64 bit?

Re: DOA Client on PC with 64 bit server
G Spears #56325 04/10/17 09:31 AM
Joined: Aug 1999
Posts: 22,218
Member
Offline
Member
Joined: Aug 1999
Posts: 22,218
To use the Instant Client you need to set the following environment variables:
  • PATH
    Needs to include the Instant Client directory (where oci.dll is located).
  • ORACLE_HOME
    Set it to the Instant Client directory.
  • TNS_ADMIN
    Needs to point to the directory where tnsnames.ora is located.
  • NLS_LANG=language_territory.characterset
    Defines the language, territory, and character set for the client.
You can set these environment variables in a script that launches your application, so that it does not affect the server itself.


Marco Kalter
Allround Automations
Re: DOA Client on PC with 64 bit server
Marco Kalter #56329 04/10/17 10:58 AM
Joined: Jun 2011
Posts: 12
G
Member
OP Offline
Member
G
Joined: Jun 2011
Posts: 12
That will work fine ONCE that application is written and released production, but what about in a development environment? These changes would need to be applied to Delphi, and then when I run the app from within Delphi, wouldn't the app then use the O/S environment settings?

G Spears

Re: DOA Client on PC with 64 bit server
G Spears #56332 04/11/17 08:30 AM
Joined: Aug 1999
Posts: 22,218
Member
Offline
Member
Joined: Aug 1999
Posts: 22,218
I think the application will inherit the environment variables. If not, you can set the environment variables during the initialization of your application before it makes a connection to the database.


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.032s Queries: 15 (0.007s) Memory: 2.5078 MB (Peak: 3.0405 MB) Data Comp: Off Server Time: 2024-05-15 00:41:41 UTC
Valid HTML 5 and Valid CSS