Ubuntu 8.04 上安裝Oracle 11G的方法

來源:互聯網
上載者:User

花了半天時間,在Ubuntu 8.04 LTS上順利安裝Oracle 11G.下面說說大概的步驟.

1.確保安裝了以下程式:

sudo apt-get install build-essential libaio1 gawk ksh libmotif3 alien libtool lsb-rpm

2.

cd /bin
ln -sf bash /bin/sh

3.增加使用者和組

addgroup oinstall
addgroup dba
addgroup nobody
useradd -g oinstall -G dba -p passwd -d /home/oracle -s /bin/bash oracle
usermod -g nobody nobody

4.
mkdir /home/oracle
chown -R oracle:dba /home/oracle

ln -s /usr/bin/awk /bin/awk
ln -s /usr/bin/rpm /bin/rpm
ln -s /usr/bin/basename /bin/basename

5.
mkdir /etc/rc.d
for i in 0 1 2 3 4 5 6 S ; do ln -s /etc/rc$i.d /etc/rc.d/rc$i.d ; done

mkdir -p /opt/ora11
chown -R oracle:dba /opt

6.編輯/etc/sysctl.conf,增加以下內容:

fs.file-max = 65535
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65535
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144

7.編輯/etc/security/limits.conf,增加以下內容:

oracle soft nproc 2047
oracle hard nproc 16383
oracle soft nofile 1023
oracle hard nofile 65535

8.編輯/etc/pam.d/login,增加以下內容:

session required /lib/security/pam_limits.so
session required pam_limits.so

9.執行:

sysctl -p

10.

su - oracle

以上命令需以root使用者執行,接下來切換至oracle使用者.

11.切換至安裝目錄,開始安裝.我選擇了英語作為安裝時顯示的語言.

export LANG=en_CN
./runInstaller

12.安裝過程中提示運行以下兩個指令碼:

orainstRoot.sh
root.sh

12.安裝過程中檢測到系統未裝有GLIBC環境,忽略後,未發現對安裝和運行有多大影響.

13.切記,安裝時選擇自訂,並且選擇資料庫的字元集為 ZHS16GBK!

因為忘記了這個選項,我只好刪掉資料庫,重建立了一個,浪費了半個小時的時間.

PS.ORACLE 11g好像不支援更改資料庫的字元集了...或是我沒有找到正確的方法

14.安裝完成後,資料庫的串連和查詢異常之慢,GOOGLE之,然後嘗試著把網路的DNS伺服器全給刪了,解決.

15.兩個常用的工具:dbca和netca.
(作者:跑跑豬)

聯繫我們

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