Oracle 11g R2 – Fixing ‘bash: sqlplus: command not found’ on Linux

linuxoracle-11g-r2

I have installed oracle correctly and also set ORACLE_HOME correctly on server,still sqlplus command is not working in my PC while it is working in others PC. I think I missed out some important step can you tell me what should I do ?

 $ echo $ORACLE_HOME
/u01/app/oracle/product/11.2.0/dbhome_1

This following is error message:

$ sqlplus
bash: sqlplus: command not found

Best Answer

Export the PATH variable. You have missed that.

PATH=$ORACLE_HOME/bin:$PATH
export PATH