I had a problem at work. The oracle server was βfixedβ, and one of the databases that I use could not be connected via the TNSNames record, but through a basic connection. The database was installed, and the administrator could see that it was running.
In addition, any application using TNS to connect to the database also does not work.
The problem was that the database name was incorrect in the TNS file, but for some reason it worked for years. Correction of the name fixed it for us. I found that Oracle SQL Developer continued to use the old TNS record even after I updated it, and I do not want to reinstall it for only one database connection. It seems that when the database was created, it was given a smaller name, and then the others and after some action cut and paste into the TNSNames file, it was confused. No one is sure how this worked as we study it, but the oracle patch guaranteed that the name must be correct.
An example of a name was the name "DBName.Part1.Part2", but actually the database name was "DBName"
source share