Oracle errors
From dbawiki
ORA-12547: TNS lost contact
If
sqlplus <user>/<pass>
fails with above error, try
sqlplus <user>/<pass>@<db connection>
If this works, it is most probably a permissions error.
$ORACLE_HOME/root.shscript that was run as part of the original installation. This will reset the permissions on some important files.