Oracle 11g, 12c: rlwrap: error: Cannot execute sqlplus: No such file or directory

I have installed an ASM instance and tried to login using sqlplus and received the below error:
$ sqlplus
rlwrap: error: Cannot execute sqlplus: No such file or directory

$ sqlplus / as sysdba
rlwrap: error: Cannot execute sqlplus: No such file or directory

Operating system: RedHat Linux 6.5

Solution: 
Add the following to the environment file :
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib 

No comments:

Post a Comment