1. Install the rpm package
Nano/v. sh
Copy the following content
#! /Bin/bash
Rpm-Uvh compat-db-4.2.52-5.1.i386.rpm
Rpm-Uvh compat-libstdc ++-33-3.2.3-61.i386.rpm
Rpm-Uvh make-3.81-3.el5.i386.rpm
Rpm-Uvh setarch-2.0-1.1.i386.rpm
Rpm-Uvh libgomp-4.4.0-6.el5.i386.rpm
Rpm-Uvh libXp-1.0.0-8.1.el5.i386.rpm
Rpm-Uvh openmotif-2.3.1-2.el5_4.1.i386.rpm
Rpm-Uvh kernel-headers-2.6.18-194.el5.i386.rpm
Rpm-Uvh glibc-headers-2.5-49.i386.rpm
Rpm-Uvh glibc-devel-2.5-49.i386.rpm
Rpm-Uvh compat-gcc-34-3.4.6-4.i386.rpm
Rpm-Uvh libstdc ++ devel-4.1.2-48.el5.i386.rpm
Rpm-Uvh gcc-4.1.2-48.el5.i386.rpm
Rpm-Uvh gcc-c ++-4.1.2-48. el5.i386. rpm
Rpm-Uvh compat-gcc-34-c + +-3.4.6-4. i386.rpm
Disk Storage
Bash/v. sh
Rm-f/v. sh
2. Adjust Kernel Parameters
Nano/etc/sysctl. conf
# Shield the original parameters # kernel. shmmax and kernel. shmall.
Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
# Semaphores: semmsl, semmns, semopm, semmni
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
Nano/etc/security/limits. conf -- Add the following four lines of code
* Soft nproc 2047
* Hard nproc 16384
* Soft nofile 1024
* Hard nofile 65536
Nano/etc/pam. d/login -- Add the following line of code
Session required/lib/security/pam_limits.so
3. Add users and groups
Groupadd oinstall
Groupadd dba
Groupadd rule
Useradd-g oinstall-G dba Oracle
Passwd oracle
4. disguise the operating system version so that the Oracle Installation will pass the operating system verification.
Cp/etc/RedHat-release/etc/redhat-release.bak
Nano/etc/redhat-release
Replace it with the following code:
Redhat-4