# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export ORACLE_BASE=/oracle
export ORACLE_HOME=$ORACLE_BASE/10g
export ORACLE_SID=boson
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
[oracle@oracleserver 10g]$ which sqlplus
/oracle/10g/bin/sqlplus
[oracle@oracleserver 10g]$
大家帮我看看这是怎么回事?
环境变量是对的啊、那你就用绝对路径进去
/oracle/10g/bin/sqlplus