ubuntu 9.10 下安装ORACLE 出错SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
来源:互联网 发布:linux系统while循环 编辑:程序博客网 时间:2024/04/30 19:34
在ubuntu 9.10 下安装ORACLE Database 10g Express Edition
首先用ROOT用户在 /etc/apt/sources.list里添加一行记录。
deb http://oss.oracle.com/debian unstable main non-free
然后在终端上输入:apt-get update
完了之后再输入:apt-get install oracle-xe-universal
这样他就会去指定的网上下载ORACLE Database安装了,这种安装是没有界面的,全都是自动安装,所以有一些设置也是没有法设置(不知道怎么设置)安ORACLE 安装成功后,再输入:/etc/init.d/oracle-xe configure 这样ORACLE就基本上OK了,它会自动的添加一个ORACLE用户。
如果你想让机子运行的ORACLE数据库可以关闭,由于是自动安装,我也不知道他安装到什么地方去,但是可以在终端上输入 ps -ef|grep oracle 这就知道oracle安装在什么目录下面去了,也可以用su oracle 进去,可是我不知道oracle用户的密码怎么办,那就用root用户将密码改为自己知道上的也一样可以找到安装在什么地方啦,哈啦~~
但是当我用在终端输入 sqlplus / as sysdba 时出错:
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_HOME的目录,怎么办,不用急;
在终端上输入 echo $ORACLE_HOME,那一步是空的,什么也没有,那我的目录在哪里
可以从一个地方找到ORACLE_HOME=多少
那就是listener.ora文件里面就写了ORACLE_HOME是什么了
我的ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server。
可以用export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server来设置目录
然后再输入sqlplus / as sysdba 哈哈没有问题了。
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Jan 3 13:55:30 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> shutdown #关闭
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> quit #退出
我为了下次关闭方便我将会那个东西写到一个文件里,下来的时候,执一下文件就,环境就有了。
但是还不会怎么让其转到oracle用户下时,这个环境变量还保留着。
- 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 oracle_home to you oracle software directory
- 进去到oracle的bin目录下,运行./sqlplus报错,You may need to set ORACLE_HOME to your Oracle software directory
- 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 : you may need to re-run your boot loader[grub] 解决办法
- You may need to configure your browser or application to trust the Charles Root Certificate.
- Oracle 10g DBA Certification: Everything You Need to Know
- Oracle Data Integrator Agent – What you need to know
- 解决mac下qt工程编译错误:Xcode not set up properly. You may need to confirm the license agreement by running
- JAVA错误:AXIS Web Service Problem: No compiler found in your classpath! (you may need to add ‘tools.ja
- Software to set up your own WIKI
- What you may need to know about DBTransaction::postChanges()
- You may need to adjust the proxy settings in Gradle.
- QT 5.7 for iOS Xcode 8 Project ERROR: Xcode not set up properly. You may need to confirm the license
- Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /
- select 语句的处理顺序
- (转)JFreeChart 中文手册
- 民间绝妙验方
- 做的差不多了
- typename 一个用法
- ubuntu 9.10 下安装ORACLE 出错SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
- [project]shark
- (C77)[こすぷれ喫茶娘々]東方鎖宝録 汉化补丁
- ubuntu 修改或创建交换分区的大小。
- result type 4常用4种类型
- 今天是新的一页了....
- 实战Active Directory站点部署与管理,Active Directory系列之十二
- Oracle中大批量删除数据的方法
- 设计模式 举例理解