当前位置: 技术问答>linux和unix
linux下 sqlplus命令无效,怎么解决
来源: 互联网 发布时间:2016-05-13
本文导语: 提示: [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=$H...
提示:
[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
[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