Scenario:
*oracle xe11g r2 is installed( and runs properly when logged in as oracle).
*logged in as user, root
*added root to groups oinstall and dba as follows:
#useradd -G oinstall root
#useradd -G dba root
*environment variables ORACLE_HOME and ORACLE_SID are set as follows:
#export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
#export ORACLE_SID=XE
#export PATH=$ORACLE_HOME/bin:$PATH
and executed:
#sudo -u oracle sqlplus / as sysdba
Output:
sudo: sqlplus: command not found
Please guide me in running sqlplus by root using sudo.
oracleeither.