Thứ Sáu, 22 tháng 3, 2013

Cấu hình RHEL/OEL6 cài đặt Oracle 11G


  1. Yêu cầu tối thiểu:
    • RAM tối thiểu 1G
    • Yêu cầu Swap:
      • RAM 1G - 2G   ==> Swap = RAM*1.5
      • RAM 2G - 16G ==> Swap = RAM*1
      • RAM >16G       ==> Swap = RAM
    • Thư mục /tmp từ 1G - 2TB
    • Oracle software ~ 4.4G
  2. Cấu hình OS
    • Tạo user
      • groupadd dba
      • groupadd oinstall
      • useradd -g dba -G oinstall oracle
    • Kiểm tra các package thiếu
      • rpm -q binutils compat-libstdc++-33 glibc ksh libaio libgcc libstdc++ make compat-libcap1 gcc gcc-c++ glibc-devel libaio-devel libstdc++-devel sysstat compat-libstdc++-33
    • Chỉnh sửa kernel
      • vi /etc/sysctl.conf
kernel.shmall = physical RAM size / pagesize For most systems, this will be the value 2097152 (8G)
kernel.shmmax = 1/2 of physical RAM (the value 2147483648 for a system with 4GB of physical RAM)
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 512 x processes (for example 6815744 for 13312 processes)
fs.aio-max-nr = 1048576
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
    • Sửa lại file limit.conf
      • vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384

oracle soft nofile 1024
oracle hard nofile 65536 
oracle soft stack 10240
    • Sửa lại file /etc/pam.d/login
      • vi /etc/pam.d/login
session required pam_limits.so
    • Sửa lại file /etc/profile
      • vi /etc/profile
if [ $USER = "oracle" ]; then
    if [ $SHELL = "/bin/ksh" ]; then
       ulimit -u 16384 
       ulimit -n 65536
    else
       ulimit -u 16384 -n 65536
    fi
fi
    • Sửa lại file /etc/hosts
      • vi /etc/hosts
192.168.2.2     ncdung.oracle.com       ncdung
    • Disable SELinux
      • vi /etc/selinux/config
#SELINUX=enforcing
SELINUX=disabled
NOTE: 1441282.1

Không có nhận xét nào:

Đăng nhận xét