CenotOS Linux 5 下Oracle 10g安裝指南

來源:互聯網
上載者:User

收集整理了一篇比較完美的CenotOS Linux 5 下Oracle 10g安裝教程。分享個朋友們!

Author:David Young (e4twood@gmail.com)

Last Update:2008-1-10

系統內容:CentOS Linux 5 Final

          Oracle Enterprise 10g R2

硬體環境:CPU:Intel Pentium Dual-core @1.60G

           記憶體:DDR 667 1G*2 Dual channels

           HandDisk:SATA 160G

一、軟體下載

CentOS Linux 5 Final:http://ftp.cse.yzu.edu.tw/pub/CentOS/5.0/isos/i386/

Oracle Enterprise 10g R2:http://mirrors.cn99.com/oracle/10g/10201_database_linux32.zip

二、CentOS 5作業系統的安裝

這時不再具體講述CentOS 5的安裝方法,可以參見:

需要注意的是:在安裝時,建議使用下面的一些設定:

1、為了避免系統編碼問題,最好先用英文系統。

2、安裝時選擇以下組件:

Base;X-window-System;gnome Desktop Enviroment;Development Tools;Legacy Software Development

3、除了上述組件以後,儘可能的少安裝組件。

4、在系統磁碟分割時,至少要滿足以下要求:

   (1)至少1G以上的交換空間(SWAP)

   (2)至少400M以上的/tmp空間

   (3)至少1.2G以上的Oracle檔案空間

   (4)至少1.5G以上的Oracle資料檔案空間

5、建議關閉防火牆並禁用SELinux.

一、Oracle安裝的準備與系統設定

1、包的檢查

   請使用rpm –q命令確保下列包的存在:

   gcc (DISC 2)

    libgomp (DISC 2)

    make (DISC 1)

    binutils (DISC 1)

    openmotif (DISC 3)

    setarch (DISC 1)

    compat-db (DISC 3)

    compat-gcc (DISC 3)

    compat-gcc-c++ (DISC 3)

    compat-libstdc++ (DISC 3)

    compat-libstdc++-devel

2、配置 Linux 核心參數

Linux 核心非常出色。與大多數其他 *NIX 系統不同,Linux 允許在系統啟動和運行時修改大多數核心參數。完成核心參數更改後不必重新啟動系統。Oracle 資料庫10g 需要以下所示的核心參數設定。其中給出的是最小值,因此如果您的系統使用的值較大,則不要更改它。

#vi /etc/sysctl.conf在尾端加入

#use for oracle

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=262144

net.core.rmem_max=262144

net.core.wmem_default=262144

net.core.wmem_max=262144

#use for oracle

* soft nproc 2047

* hard nproc 16384

* soft nofile 1024

* hard nofile 65536

再運行/sbin/sysctl -p應用上面的配置

# vi /etc/security/limits.conf 行末添加以下內容

session    required     pam_limits.so

#vi /etc/pam.d/login 行末添加以下內容

SELINUX=disabled

#vi /etc/selinux/config 確保以下內容

提高oracle使用者的shell限制,以便可以建立和開啟大檔案,完成這些工作需要修改/etc/profile              檔案,提高其中設定的上線,將如下內容添加到/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

export ORACLE_BASE=/u01/app/oracle

export ORACLE_SID=orcl

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