sqlplus执行报错Message file sp1<lang>.msb not found SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

bomc60@suse10t135:~> sqlplus
Error 6 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

 

搞了好久,最后还是环境变量问题!!!

一开始的环境变量这么写的:

HOME=/opt/aa

ORACLE_HOME=/opt/aa/oracle/10.2.0/db_1

PATH=$ORACLE_HOME/bin:$PATH

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH

 

最后改成了


export HOME=/opt/aa

export ORACLE_HOME=$HOME/oracle/10.2.0/db_1

export PATH=$ORACLE_HOME/bin:$PATH

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH

 

关键点,只是把前面都增加了export,其他都是次要的!!!原来还是因为环境变量啊

 

感谢http://blog.itpub.net/23718752/viewspace-752926/答疑!

 

posted @ 2016-08-15 16:45  懒猫咪  阅读(22986)  评论(0编辑  收藏  举报