I just installed Oracle Database 11g R2 on Ubuntu.
I tried to run sqlplus
but I got this message :
sqlplus: command not found
These are the values of : $ORACLE_SID, $ORACLE_HOME and $PATH
aimad@localhost:/u01/app/oracle/product/11.2.0/dbhome_2/bin$ echo $ORACLE_SID
aimad@localhost:/u01/app/oracle/product/11.2.0/dbhome_2/bin$ echo $ORACLE_HOME
/u01/app/oracle/product/11.2.0/dbhome_2/
aimad@localhost:/u01/app/oracle/product/11.2.0/dbhome_2/bin$ echo $PATH
/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/root/bin
How can I solve this problem ?
Edit :
I tried to enter to the /u01/app/oracle/product/11.2.0/dbhome_2/bin
and run the ./sqlplus
command instead of sqlplus and it worked, but I want to execute sqlplus
without entering to that path everytime.
sudo find /usr /bin /sbin /root -name sqlplus
– Mitch Oct 10 '14 at 16:26oraenv
in /usr/bin or /usr/local/bin. If you type. oraenv
, does it make your shell's PATH include the/u01/app/oracle/product/11.2.0/dbhome_2/bin
directory? – Mark Plotnick Oct 10 '14 at 22:17