Oracle documentation says:
Cause. A connection to a database or other service was required using the connection identifier, and the specified connection identifier could not be resolved to the connection descriptor using one of the configured naming methods. For example, if the type of connection identifier used was the name of the network service, then the net service name could not be found in the naming method repository, or the repository could not be found or reached.
Are you trying to connect to the database in the same way as Net Manager and PL / SQL Developer?
source share