M Martin Ben Member Feb 12, 2015 #1 Hi, I'm looking for connect to database using Oracle instant client Can I use DOA components? Thanks, Martin
Hi, I'm looking for connect to database using Oracle instant client Can I use DOA components? Thanks, Martin
Marco Kalter Administrator Staff member Feb 12, 2015 #1 Yes, that is possible. 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). 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.
Yes, that is possible. 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). 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.
M Martin Ben Member Feb 12, 2015 #1 Thanks. Can I use tnsnames.ora in directory where my application is? Instead of environment variable TNS_NAMES.
Thanks. Can I use tnsnames.ora in directory where my application is? Instead of environment variable TNS_NAMES.
Marco Kalter Administrator Staff member Feb 13, 2015 #1 That will work if, during application start-up, you set the TNS_ADMIN environment variable to the application directory.
That will work if, during application start-up, you set the TNS_ADMIN environment variable to the application directory.
M Martin Ben Member Feb 16, 2015 #1 I used your recommendation, but I cannot log on Oracle. I got this exception message: Code: Initialization error Oracle Client not properly installed OracleHomeKey: OracleHomeDir:
I used your recommendation, but I cannot log on Oracle. I got this exception message: Code: Initialization error Oracle Client not properly installed OracleHomeKey: OracleHomeDir:
Marco Kalter Administrator Staff member Feb 16, 2015 #1 Can you let me know your exact Direct Oracle Access version?
Marco Kalter Administrator Staff member Feb 16, 2015 #1 It should work fine. Can you add the instant client directory as the first entry in the PATH? For example: PATH=C:\Oracle\InstantClien11g;C:\Windows;C:\Windows\System;...
It should work fine. Can you add the instant client directory as the first entry in the PATH? For example: PATH=C:\Oracle\InstantClien11g;C:\Windows;C:\Windows\System;...
M Martin Ben Member Feb 16, 2015 #1 There was a bug in tnsnames.ora Now it works perfectly. Thanks a lot for your help.