日期:2014-05-16  浏览次数:21534 次

linux下 sqlplus命令无效,怎么解决
提示:
[oracle@localhost /]$ sqlplus
bash: sqlplus: command not found

我的provile设置:

.bah_profile:
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$HOME/bin:$ORACLE_HOME/bin:$PATH

export PATH

ORACLE_HOME=/u01/app/oracle/db_1; export ORACLE_HOME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_SID=demo1; export ORACLE_SID


------解决方案--------------------
PATH=语句放在ORACLE_HOME=的后面,再export