The client cannot translate the connect name you used into a host and port.
tnsping <alias>echo $TNS_ADMIN and that the file is in that foldersqlplus user@//host:1521/service_nameNAMES.DIRECTORY_PATH in sqlnet.oraStandardise one TNS_ADMIN location per server.
One email a week. Unsubscribe any time.