How can I get the location of the tnsnames.ora
file by code, in a machine with the Oracle client installed?
Is there a windows registry key indicating the l
I'm not a C# or a Windows guy for that matter so hopefully this helps. The tnsnames.ora file should be located in:
ORACLE_HOME\network\admin
If an alternate location has been specified, it should be available via the TNS_ADMIN registry key.
See this link for more information on how Oracle handles tns names on Windows.