Service name <name> vs <name>.<hostname>
I am trying to connect to my sample orcl database using
sqlplus hr/hr@TNS:orcl
After many tries and getting ORA-12594 error I finally got this to work. The trick was to update tnsnames.ora file and change
SERVICE_NAME = orcl
to
SERVICE_NAME = orcl.<hostname>
Does anyone know why this is like that? How can I get this to work with SERVICE_NAME = orcl