First check the hostname by running the command
Next check the /etc/hosts file, it should have an entry like this:
realIP shortname longname
Finally, log into sqlplus and verify what the machine name as follows:
When the SQL prompt appears, run
SELECT * FROM nh_machine;
All 3 places must match and be the shortname. Edit the hostname and hosts file as needed.