CentOS下安裝Oracle 10g

來源:互聯網
上載者:User

Linux上安裝Oralce是比較繁瑣的,安裝前的準備工作如下:

參考閱讀:CentOS 6.3(x32)下安裝Oracle 10g R2 

一、檢查一下rpm軟體包是否已經安裝   

binutils-2.17.50.0.6-6.el5
compat-db-4.2.52-5.1
compat-libstdc++-33-3.2.3-61
control-center-2.16.0-16.el5
gcc-4.1.2-42.el5
gcc-c++-4.1.2-42.el5
glibc-2.5-24
glibc-common-2.5-24
libgnome-2.16.0-6.el5
libstdc++-4.1.2-42.el5
libstdc++-devel-4.1.2-42.el5
make-3.81-3.el5
ksh-20060214-1.7
sysstat-7.0.2-1.el5
gnome-screensaver-2.16.1-8.el5
setarch-2.0-1.1
libXp-1.0.0-8.1.el5

一般在CentOS安裝時以上rpm大部分都安裝上了,需要特別留意  compat-db-4.2.52-5.1、 sysstat-7.0.2-1.el5、libXp-1.0.0-8.1.el5(我的只缺這三個),其中libXp-1.0.0-8.1.el5用於處理Oracle安裝時Java的圖形化介面,沒有這個包安裝的第一步就會報錯

二、修改系統核心參數 

        1.  編輯/etc/sysctl.conf檔案,增加如下內容             

kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144       

      2. 修改/etc/security/limits.conf,增加如下內容

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536 

      3. 修改/etc/pam.d/login檔案,增加如下內容

session required /lib/security/pam_limits.so

session required pam_limits.so

      4. 修改vi /etc/profile檔案,增加如下內容

if [ $USER = "oracle" ]; then
    if [ $SHELL = "/bin/ksh" ]; then
      ulimit -p 16384
      ulimit -n 65536
    else
    ulimit -u 16384 -n 65536
  fi
fi

三、使用者佈建、配置       

    添加oinstall和dba使用者組

# groupadd -g 501 oinstall
# groupadd -g 502 dba

    添加oracle使用者

# useradd -g oinstall -G dba -u 501 -d /oracle oracle

      修改/oracle許可權

# chown -R oracle:oinstall /oracle 
好了,準備工作已經完成了
使用Oracle使用者登入系統,解壓下載的database安裝包
運行 ./runInstaller -ignoreSysPrereqs安裝
如果安裝介面出現亂碼,可以設定下環境變數"export LANG=en_CN",再次安裝就可以
安裝中的具體設定不在此贅述

接下來請看第2頁精彩內容:

  • 1
  • 2
  • 下一頁

相關文章

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.