sqlplus: error while loading shared libraries: libsqlplus.so

今天群里问他的sqlplus无法登录报如下错误
[oracle@localhost ]$ sqlplus /nolog
sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory

明显感觉是环境变量配置的问题,让其发过来环境变量
# .bash_profile

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

# for oracle i
PATH=$PATH:$HOME/bin
#oracle add 
 
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=orcl
export PATH=$PATCH:/ORACLE_HOME/bin:$HOME/bin            #这个明显写错误了
      
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH           #这个不需要在写了啊!!!!

修改就简单了
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH



来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11590946/viewspace-1064200/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/11590946/viewspace-1064200/