ubuntu 9.10 下安裝ORACLE 出錯SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

來源:互聯網
上載者:User

在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使用者下時,這個環境變數還保留著。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.