Connect using Oracle instant 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.
 
That will work if, during application start-up, you set the TNS_ADMIN environment variable to the application directory.
 
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:
 
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;...
 
Back
Top