I am working on a Windows server and access Oracle databases using the Oracle ODBC driver. I have Oracle ODBC connections that work fine on this machine.
However I want to add a new connection, and when testing it I get the error
Unable to connect
SQL State=S1000
[Oracle][ODBC][Ora] ORA-12170: TNS: Connect timeout occurred
I presume, though I am no DBA, that this has something to do with my TNS Service Name not being in TNSNAMES.ORA which points oracle toward the right server, port, etc.
However I cannot find TNSNAMES.ORA
I have an ORACLE_HOME environment variable, but it is empty.
Where can I find this file or otherwise configure my TNS names?
attrib /s tnsnames.ora
– Toleratecd c:\
thendir /s tnsnames.ora
– EugeniuszTNS: Connect timeout occurred
sounds more like a network problem or firewall issue, not a missing tnsnames.ora file. – Passing