Fedora 12 安裝 Oracle 11g R2

來源:互聯網
上載者:User

前言:這篇文章主要是翻譯的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,這都是圖形介面能解決的,就不多說了

  • 1
  • 2
  • 下一頁

聯繫我們

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