Fedora 14上安裝 Oracle 11g

來源:互聯網
上載者:User

本文介紹了在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後,伺服器需要重新啟動才能更改生效。 

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 下一頁

聯繫我們

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