I have a poorly written legacy .NET application that is in constant contact with the database throwing up a "No Connection" screen if it detects that connectivity has been dropped.
All machines running this program are configured identically but on two of them we just recently started running into a problem where the No Connection screen comes up regardless of whether there is connectivity or not and won't detect the connection until the computer itself is restarted.
Looking into error logs it seems that the culprit is
ORA-12560: TNS:protocol adapter error
But what can possibly be causing this? Especially since this wasn't happening until just a few weeks ago.
Most probably, the machines cannot resolve the
DNSnames provided in theHOSTentry oftnsnames.ora, or access the server provided in theHOSTentry.If the connection drops on timeout (as if underlying
TCPstream drops on timeout), it will also fail with this message.If you use
tnsnames.oraonOracle 10gor higher, try to useEasy Connectformat (//servername/servicename) instead.