读书人

linux下 sqlplus命令无效如何解决

发布时间: 2012-05-06 16:15:43 作者: rapoo

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

读书人网 >UNIXLINUX

热点推荐