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 >