CentOS 5.9安裝Oracle 11g

來源:互聯網
上載者:User

環境:CentOS 5.9企業版 官網可以下載到
      虛擬機器virtualBox
      Oracle 11g R2 這邊貼出:
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linx8664soft-100572.html
1.簡單描述下安裝過程
主要參考oracle官方文檔,當然是英文的看起來相當的累
(1)硬體要求:
    swap空間:記憶體的兩倍 一般大於2G
    查看swap 大小  grep SwapTotal /proc/meminfo或者free
    安裝Centos 時給與30G的空間安裝
    /tmp 目錄至少大於1G
    可只建立swap 分區和/tmp分區  將剩餘空間直接掛載到根目錄上
(2)軟體要求:
    根據oracle 11g 官方文檔
   
核心要求:
    On Red Hat Enterprise Linux 5 Update 5
    with the Oracle Unbreakable Enterprise
    Kernel for Linu:2.6.32 or later
    查看核心版本:cat /proc/version

Package Requirements:
The following or later version of packages for Asianux 3, Oracle Linux 5, and Red
Hat Enterprise Linux 5 must be installed:
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2

檢查是否安裝過該軟體包:rpm – qa |grep 軟體包名稱
如果未安裝,並且系統可以上網 可直接通過 yum install 軟體包名稱 安裝
在Centos ISO鏡像中也有軟體包可以提供,不過不全,後續不全可以通過網路下載安裝

(3)建立所需要oracle使用者和組
    groupadd  oinstall
    groupadd dba
    mkdir –p /u01/oracle
    useradd –g oinstall –G dba –d /u01/oracle oracle
    passwd oracle
    chown -R oracle:oinstall /u01/oracle/
    chmod -R 775 /u01/oracle/


 (4)配置核心參數Configuring Kernel Parameters:
vim /etc/sysctl.conf下添加:
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 = 1048576
重新啟動:/sbin/chkconfig boot.sysctl on
            sysctl -p


(5)檢查Oracle安裝使用者(oracle)資源限制:
    vim /etc/secourity/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240


(6)  檢查display 查看系統是否支援圖形介面
  查看root使用者下是否已設定DISPLAY變數
  # echo $DISPLAY
  如果有值出現,則說明已設定DISPLAY變數;否則,就需要手動設定DISPLAY
 # echo $DISPLAY =192.168.1.5 該伺服器的IP
  執行 xhost +

推薦閱讀:

Rad Hat Enterprise Linux 5.5上安裝Oracle 11g R2

  • 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.