Sudo issue

Dear All,

I wanted to execute sqlplus using another user instead of oracle user.

I have given user AA sudo permissions in such a way that it can execute all oracle related files.

when i try the below command from user AA ,it is not working.

sudo -u oracle sh -c sqlplus

Error 6 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

If any body can help me ...extend ur hands.

regards
rj

Try:

sudo -i -u oracle sh -c sqlplus