Check the tnsnames.ora file on your client machine to see whether it had been configured correctly.

Then try

tnsping servicename

then

sqlplus username/password@servicename

Sam