[转]sqlplus /nolog 出错解决 SP2-0667: Message file sp1<lang>.msb not found SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
2016-09-07 16:57
1641 查看
http://techxploration.blogspot.com/2012/01/resolving-sp2-0750-you-may-need-to-set.html
$ sqlplus
SP2-0667: Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
To resolve it try the following. It's assumed Oracle XE 11G is installed at:
/u01/app/oracle/product/11.2.0/xe/
If you have a different set up, adjust your directory path accordingly.
1) Find out the path to sqlplus
bash-3.2$ which sqlplus
/u01/app/oracle/product/11.2.0/xe/bin/sqlplus
2) Set your Oracle_HOME (upto xe directory)
bash-3.2$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe/
3) Set the path to the directory where sqlplus is located to your PATH variable:
bash-3.2$ export PATH=/u01/app/oracle/product/11.2.0/xe/bin:$PATH
You should now be able to use sqlplus.
4) Now you need to edit you bash_profile so all these takes effect everytime you log in.
bash-3.2$ cd ~/
bash-3.2$ vim .bash_profile
5) In the .bash_profile you will need to add those export lines so every time you log in the same settings take effect.
bash-3.2$ vim .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
ORACLE_SID=XE
export ORACLE_SID
ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
export ORACLE_HOME
PATH=$ORACLE_HOME/bin:$PATH
export PATH
unset USERNAME
6) Run the following:
bash-3.2$ . .bash_profile
After following these 6 steps you should be able to connect to sqlplus any time.
Resolving SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
If you set up Oracle Database XE 11G in Linux and you encounter the following error when starting up SQL Plus:$ sqlplus
SP2-0667: Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
To resolve it try the following. It's assumed Oracle XE 11G is installed at:
/u01/app/oracle/product/11.2.0/xe/
If you have a different set up, adjust your directory path accordingly.
1) Find out the path to sqlplus
bash-3.2$ which sqlplus
/u01/app/oracle/product/11.2.0/xe/bin/sqlplus
2) Set your Oracle_HOME (upto xe directory)
bash-3.2$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe/
3) Set the path to the directory where sqlplus is located to your PATH variable:
bash-3.2$ export PATH=/u01/app/oracle/product/11.2.0/xe/bin:$PATH
You should now be able to use sqlplus.
4) Now you need to edit you bash_profile so all these takes effect everytime you log in.
bash-3.2$ cd ~/
bash-3.2$ vim .bash_profile
5) In the .bash_profile you will need to add those export lines so every time you log in the same settings take effect.
bash-3.2$ vim .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
ORACLE_SID=XE
export ORACLE_SID
ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
export ORACLE_HOME
PATH=$ORACLE_HOME/bin:$PATH
export PATH
unset USERNAME
6) Run the following:
bash-3.2$ . .bash_profile
After following these 6 steps you should be able to connect to sqlplus any time.
相关文章推荐
- SP2-0667: Message file sp1<lang>.msb not found SP2-0750: You may need to set ORACLE_HOME to your Ora
- ./sqlplusSP2-0667: Message file sp1<lang>.msb not found。SP2-0750: You may need to set ORACLE_HOME t
- ubuntu 9.10 下安装ORACLE 出错SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
- ubuntu 9.10 下安装ORACLE 出错SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
- SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
- SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
- (摘)SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
- SP2-0667: Message file sp1<lang>.msb not found sqlplus oracle
- Docker: oracle_xe_10g 数据库 运行sqlplus 时Message file sp1<lang>.msb not found 错误解决办法_20160513_七侠镇莫尛貝
- SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
- 进去到oracle的bin目录下,运行./sqlplus报错,You may need to set ORACLE_HOME to your Oracle software directory
- You may need to set ORACLE_HOME to your Oracle software directory
- 计划任务里执行包含连接oracle命令的shell脚本报错:SP2-0667: Message file sp1<lang>.msb not found
- Docker: oracle_xe_10g 数据库 运行sqlplus 时Message file sp1<lang>.msb not found 错误解决办法_20160513_七侠镇莫尛貝
- WINDOWS下运行ORACLE SQLPLUS时报错Message file sp1<lang>.msb not found问题解决
- 在Ubuntu安装完成后更改默认的语言LANG,出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法
- sqlplus 登录报 Message file UTILITY_MSG\spw<lang>.msb not found!
- ubuntu : you may need to re-run your boot loader[grub] 解决办法
- 在Ubuntu安装完成后更改默认的语言LANG,出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法
- 解决mac下qt工程编译错误:Xcode not set up properly. You may need to confirm the license agreement by running