SERVICE_NAME vs. SID in TNSNAMES.ORA
I need to understand why I'm often facing the problem to adress an Oracle instance correctly.
Situation: I installed a 11.2.0.4 site recently with one instance (amd64 architecture), SID name ORCL, using the setup installer from the distribution. (Windows 2012R2 server)
On the client side I had instantclient_11_2 (32bit). In TNSNAMES.ORA I had to write SERVICE_NAME = orcl.intranet.de.
With this configuration I was able to connect from the client using SQLPlus.
Then I deleted the instance of the server and installed a new one using dbassist.
Gave it the name ORCL again.
Suddenly I was unable to connect using SQLPLus. (got ORA-12514)