本文介紹了在Fedora 14 64-bit上安裝Oracle Database 11g Release 2 (11.2) 64-bit. 這篇文章基於具有2G swap分區和SELinux關閉。 安裝也應包括以下程式包:
- 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
安裝成功需要以下幾步
- 下載軟體
- 解壓檔案
- 修改Hosts檔案
- 設定Kernel參數
- 設定安裝
- 開始安裝
- 安裝結束
下載軟體
下載此軟體
- Oracle Database 11g Release 2 (11.2) Software
解壓
解壓檔案
unzip linux.x64_11gR2_database_1of2.zipunzip linux.x64_11gR2_database_2of2.zip
你現在應該有一個單獨的目錄稱為“database”包含安裝檔案。
Hosts 檔案
"/etc/hosts"檔案必須寫伺服器的全名
<IP-address> <fully-qualified-machine-name> <machine-name>
設定Kernel參數
oracle推薦以下最低參數設定。
fs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048586
當前的值可以用下面的命令進行測試。
/sbin/sysctl -a | grep <param-name>
在“/etc/sysctl.conf”檔案中添加或修改以下行。
fs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096# semaphores: semmsl, semmns, semopm, semmnikernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default=262144net.core.rmem_max=4194304net.core.wmem_default=262144net.core.wmem_max=1048586
運行下面的命令來改變當前核心參數。
/sbin/sysctl -p
在“/etc/security/limits.conf”檔案中添加以下行。
oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536
如果 “/etc/pam.d/login”檔案 中不存在,添加以下行
session required pam_limits.so
啟動防火牆管理對話方塊(“系統>管理”>防火牆)。 點擊“禁用”按鈕,其次是應用工具列上的按鈕,然後關閉對話方塊。
停用SELinux 編輯/etc/selinux/config 檔案,並確保SELinux的標誌設定如下。
SELINUX=disabled
另外,以上改變可以通過使用GUI工具(應用程式>“系統設定”>安全層級)。 單擊SELinux選項卡並禁用該功能。禁用SELinux後,伺服器需要重新啟動才能更改生效。