前言:這篇文章主要是翻譯的Oracle-base的那篇安裝教程,不過由於英文的行文方式翻譯成中文比較彆扭,他這篇文章裡面也有不完美的地方,我再慢慢調整,現在這篇文章只是作為一個參考,每台機子情況不同,完全照著做基本上是裝不上,貼一下本文地址,防止有人把半成品給轉走哈,加上地址這樣別人看了好知道成品在哪,文章寫的是x86_64位的安裝教程,其實也適用於32位
這篇文章介紹的是如何在Fedora 12 x86_64上面安裝oracle 11.2.對於作業系統的要求是至少2g swap分區和禁用secure Linux,並且安裝了下面這些組件:
Gnome Desktop Environment
Editors
Graphical Internet
Development Libraries
Development Tools
Server Configuration Tools
Administration Tools
Base
Fonts
Hardware Support
Input Methods
System Tools
X Windows System
整個安裝過程總共分以下幾步:
下載oracle安裝檔案
解壓檔案
設定hosts檔案
修改核心參數
設定
安裝
下載oracle安裝檔案
為
http://www.oracle.com/technology/software/products/database/index.html
需要註冊一下(當然也可以不註冊,那就是用迅雷),下載下來是兩個壓縮包
解壓檔案
解壓檔案命令
代碼:
unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip其實圖形介面解壓就可以
設定hosts檔案
保證/etc/hosts檔案包含下面的內容
代碼:
<IP-address> <fully-qualified-machine-name> <machine-name>這一步一般情況下不用做任何修改,保證檔案裡麵包含上面的內容就可以了
修改核心參數
oracle推薦的下列參數需要設定的最小值:
代碼:
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586這些參數的當前值可以用下面的命令查看:
代碼:
/sbin/sysctl -a | grep <param-name>一般情況下這些參數的值都不符合要求,因此需要把下列內容添加到"/etc/sysctl.conf"檔案末尾
代碼:
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586運行下面的命令來更改核心參數的值:
代碼:
/sbin/sysctl -p在"/etc/security/limits.conf"檔案末尾添加下列內容:
代碼:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536把下面的內容添加到/etc/pam.d/login檔案當中
代碼:
session required pam_limits.so關掉防火牆和selinux,這都是圖形介面能解決的,就不多說了