Allows to specify the TNS_ADMIN environment variable value.
Use the TNSAdmin property to specify the Oracle client TNS_ADMIN environment variable value.
When you have the Oracle full client installed, the best way to specify the TNS_ADMIN is to set the TNS_ADMIN registry value in HKLM\Software\Oracle\<Oracle home>. Or just leave it as is, then the default path <Oracle home folder>\NETWORK\Admin is used.
When you are using Oracle instant client, the best way is to use TNSAdmin property. Or just leave it as is, because the default path is application EXE folder.
property TNSAdmin: String;
ADPhysOracleDriverLink1.TNSAdmin := 'c:\Program Files\MyApp\Config';
What do you think about this topic? Send feedback!