go to http://oracle.in.th

Thursday, September 3, 2009

สรุป pre-requisites สำหรับการติดตั้ง Oracle Database 11g Release 2 บน Enterprise Linux 5

Memory Requirement
ต้องการขั้นต่ำ 1 GB

Swap Space Requirement
ต้องการตามตารางนี้
Available RAM____________Swap Space Required
--------------------------------------------------
Between 1 GB and 2 GB____1.5 times the size of RAM
Between 2 GB and 16 GB___Equal to the size of RAM
More than 16 GB__________16 GB

Disk Space Requirement
/tmp ต้องการ 1 GB
ถ้าติดตั้ง Enterprise Edition ต้องการเนื้อที่ disk ประมาณ 4 GB
ถ้าสร้าง Database ด้วยเลย ก็ต้องการเนื้อที่สำหรับ Data Files อีก 1.7 GB
ดังนั้นรวมกันประมาณ 7 GB
สำหรับคนทำที่จะทดลองใน VMWare ก็เตรียม disk partition ประมาณ 15 GB เป็นอย่างต่ำ
เผื่อสำหรับ
  • Swap partition
  • Staging installtion file
  • Software installed
OS Requirements
  • Asianux 2.0
  • Asianux 3.0
  • Oracle Enterprise Linux 4.0 Update 7 or later
  • Oracle Enterprise Linux 5.0 (ผมใช้ตัวนี้)
  • Red Hat Enterprise Linux 4.0 Update 7 or later
  • Red Hat Enterprise Linux 5.0
  • SUSE Linux Enterprise Server 10.0
  • SUSE Linux Enterprise Server 11.0
จริง ๆ จะลงกับพวก Ubuntu หรือ Fedora ก็ได้, มีวิธีอยู่ ไว้ค่อย post เป็นอีก blog ถัด ๆ ไป

Kernel Requirements
  • For Asianux 2, Oracle Enterprise Linux 4.0, and Red Hat Enterprise Linux 4.0: 2.6.9 or later
  • For Asianux 3, Oracle Enterprise Linux 5.0, and Red Hat Enterprise Linux 5.0: 2.6.18 or later (ผมใช้อันนี้)
  • For SUSE 10: 2.6.16.21 or later
  • On SUSE Linux Enterprise Server 11: 2.6.27.19 or later
Package Requirements
รายการนี้จะสรุปแต่ packages ของ Oracle Enterprise Linux 5 อย่างเดียวครับ

binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
elfutils-libelf-devel-static-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-common-2.5
glibc-devel-2.5
glibc-headers-2.5
kernel-headers-2.6.18
ksh-20060214
libaio-0.3.106
libaio-devel-0.3.106
libgcc-4.1.2
libgomp-4.1.2
libstdc++-4.1.2
libstdc++-devel-4.1.2
make-3.81
sysstat-7.0.2
unixODBC-2.2.11
unixODBC-devel-2.2.11

Kernel Parameters
เพิ่มใน /etc/sysctk.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 = 1048586

เพิ่มใน /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

สรุปที่สำคัญของรายการที่ต้องเตรียมในการติดตั้ง Oracle Database 11g Release 2 บน Enterprise Linux มีเท่านี้ครับ รายการอื่น ๆ ที่ไม่จำเป็น ผมตัดออกไปแล้ว
ข้อเขียนนี้ช่วยฉัน:  

4 comments:

Unknown said...

ตอนติดตั้ง package

- elfutils-libelf-devel-0.125
- elfutils-libelf-devel-static-0.125

ต้องติดตั้งพร้อมกันนะครับ จะได้ไม่ติด error: Failed dependencies:

เพราะสองตัวนี้จะเรียกกันเอง ให้ใช้คำสั่งประมาณนี้ครับ ก็จะติดตั้งได้

# rpm -ivf elfutils-libelf-devel-0.137-3.el5.i386.rpm elfutils-libelf-devel-static-0.137-3.el5.i386.rpm

Kim said...

@chootham พอจะมีลำดับ dependencies ของ g* มั้ยครับ?
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-common-2.5
glibc-devel-2.5
glibc-headers-2.5

Unknown said...

@kim เท่าที่ลองลง OEL แบบ minimum แล้วจะลง g* ได้ตามนี้ครับ

kernel-headers
glibc-headers
glibc-devel
libgomp
gcc

libstdc++-devel
gcc-c++

ส่วนที่เหลือเป็น already installed
glibc
glibc-common
glibc-devel
glibc-headers

น่าจะคล้ายๆ กันทุก distro มั๊งครับ

Kim said...

@chootham,
ถ้าใน twitter ต้อง @sirichai นะครับ
เดี๋ยวจะมาไม่ถึง

Post a Comment