./sqlplusSP2-0667: Message file sp1<lang>.msb not found。SP2-0750: You may need to set ORACLE_HOME t

92 篇文章 0 订阅

 http://wcx337.blog.sohu.com/129739601.html

Linux下安装好Oracle 10g后运行sqlplus出现故障如下:

[oracle@localhost oracle]$ ./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

解决方法:
第一,用oracle用户名登录linux系统。而不是root登录后su oracle。
第二,用oracle用户名登录linux系统后,vi .bash_profile,其中,文件.bash_profile
在/home/oracle目录下,它是隐藏文件,可以ls -a 显示所有文件(包含隐藏文件)。
第三,编辑.bash_profile文件,内容如下:
——————————————————————————————————————————————————————————————————
# .bash_profile

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

# User specific environment and startup programs

PATH=$PATH:$ORACLE_HOME/bin


unset USERNAME
export ORACLE_SID=orcl
export ORACLE_BASE=/home/oracle/oracle
export ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1
export PATH
~
——————————————————————————————————————————————————————————————————————————  

重新启动系统,用oracle用户名登录。
[oracle@localhost ~]$ cd $ORACLE_HOME
[oracle@localhost db_1]$ pwd
/home/oracle/oracle/product/10.2.0/db_1
[oracle@localhost db_1]$ cd bin
[oracle@localhost bin]$ pwd
/home/oracle/oracle/product/10.2.0/db_1/bin
[oracle@localhost bin]$

然后
[oracle@localhost bin]$ ./sqlplus "/ as sysdba"

SQL*Plus: Release 10.2.0.1.0 - Production on Mon Aug 17 10:43:41 2009

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to an idle instance.

SQL>
——————————————————————————————————————————
问题解决!!
我们发现Connected to an idle instance.
只要
SQL>startup
就ok

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值