Ubuntu 6.10上安裝Oracle 10g__Oracle

來源:互聯網
上載者:User
如果以前有安裝過oracle,可以通過以下命令清除:


sudo rm  - rf  $ORACLE_HOME
sudo rm  / etc / oratab
sudo rm  / etc / oraInst . loc
/etc中的兩個檔案是在上次安裝過程中運行root.sh時自動產生的,主要和inventory目錄有關。必須要先刪除,否則接下來安裝過程中會出現錯誤。

用apt-get 安裝必須的軟體包:
gcc make binutils libmotif3 lesstif2 rpm libaio libdb3 libc - dev
ln  - s  / usr / bin / awk  / bin / awk
ln  - s  / usr / bin / rpm  / bin / rpm
ln  - s  / usr / bin / basename  / bin / basename
ln  - s  / etc  / etc / rc . d    建立/etc/redhat-release檔案
Red Hat Linux release  4.1 sudo groupadd oinstall
sudo groupadd dba
sudo groupadd nobody
sudo useradd  - g oinstall  - G dba  - p passwd  - d  / home / oracle oracle
sudo useradd  - g nobody nobody mkdir  - pv  / opt / oracle
mkdir  - pv  / opt / oradata
chown  - R oracle:oinstall  / opt / ora *
chmod  - R  775   / opt / ora *
為避免安裝介面出現亂碼:
$ export LC_ALL = en_US
開始安裝:
 
我只選擇安裝軟體,以後再自行建立資料庫。

安裝完成後,把{ORACLE_HOME}/bin目錄加到環境變數$PATH中。

然後運行dbca建立資料庫。

資料庫建立完成後,運行netca配置網路

運行lsnrctl start啟動網路監聽器。

運行emctl start dbconsole啟動企業管理器,然後通過
http://localhost:1158/em
訪問企業管理器。


運行sqlplus:
bitan @ubuntu : ~ $ 
bitan @ubuntu : ~ $ sqlplus  / nolog

SQL * Plus: Release  10.2 . 0.1 . 0   -  Production  on  Sat Feb  17   01 : 45 : 55   2007

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

SQL >  conn  /   as  sysdba
Connected  to  an idle instance.
SQL >  startup
ORACLE instance started.

Total System Global Area   167772160  bytes
Fixed Size                   1218316  bytes
Variable Size               75499764  bytes
Database  Buffers            88080384  bytes
Redo Buffers                 2973696  bytes
Database  mounted.
Database  opened.
SQL >  conn system / qqqqqq @oradb
Connected.
SQL >

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.