Sorry I misread your thread, I did not realise it was an OS user. The user above is absolutely correct, the environment variables need to be the same.
Also you should check that the user is part of DBA/Oracle etc group on UNIX. Tjis ensures that not only does he know where the executables are but also has rights to run them.
I set all the required environment variables in .profile of root, I logged in in Unix as root (OS USERNAME). When I invoke SQLPLUS, I get the following error,
Enter user-name: ems
Enter password:
ld.so.1: oracleion: fatal: libucb.so.1: open failed: No such file or directory
ERROR:
ORA-12547: TNS:lost contact
It works fine when I logon to Unix as Oracle (OS Username oracle).
Infact, I copied oracle user's .profile to root user's .profile even then I get this message.
Check the variable $PATH, check the order of the PATH, if root has more then put them at last, I mean
root's PATH=/bin;/usr/bin;/usr/ucb/bin;/app/oracle/bin.....etc
oracle's PATH=/app/oracle/bin;/usr/bin;/bin;/local/bin
Then =>
root's PATH=/app/oracle/bin;/usr/bin;/bin;/local/bin;/usr/ucb/bin;...etc
I guess the problem is ucb path
As I mentioned earlier, even If I copy the .profile of user "oracle" with right settings and for this user everything is working fine to root user's .profile the error following message comes,
Enter user-name: ems
Enter password:
ld.so.1: oracleion: fatal: libucb.so.1: open failed: No such file or directory
ERROR:
ORA-12547: TNS:lost contact
Bookmarks