Overview
To install Oracle 10.2.0.5, you must first install 10.2.0.1. The installation sequence is
10.2.0.1-> 10.2.0.5-> EM patch-> Create an instance-> fix EM Chinese garbled characters-> Create auto-start
1. Install the rpm package
Nano/v. sh
Copy the following content
For x64
#! /Bin/bash
Rpm-Uvh kernel-headers-2.6.18-194.el5.x86_64.rpm
Rpm-Uvh glibc-headers-2.5-49.x86_64.rpm
Rpm-Uvh glibc-devel-2.5-49.i386.rpm
Rpm-Uvh glibc-devel-2.5-49.x86_64.rpm
Rpm-Uvh libgomp-4.4.0-6.el5.x86_64.rpm
Rpm-Uvh compat-gcc-34-3.4.6-4.x86_64.rpm
Rpm-Uvh libstdc ++ devel-4.1.2-48.el5.x86_64.rpm
Rpm-Uvh gcc-4.1.2-48.el5.x86_64.rpm
Rpm-Uvh gcc-c ++-4.1.2-48. el5.x86 _ 64.rpm
Rpm-Uvh make-3.81-3.el5.x86_64.rpm
Rpm-Uvh libXp-1.0.0-8.1.el5.x86_64.rpm
Rpm-Uvh libXp-1.0.0-8.1.el5.i386.rpm
Rpm-Uvh openmotif-2.3.1-2.el5_4.1.x86_64.rpm
Rpm-Uvh setarch-2.0-1.1.x86_64.rpm
Rpm-Uvh compat-db-4.2.52-5.1.x86_64.rpm
Rpm-Uvh compat-gcc-34-3.4.6-4.x86_64.rpm
Rpm-Uvh compat-gcc-34-c + +-3.4.6-4. x86_64.rpm
Rpm-Uvh compat-libstdc ++-33-3.2.3-61.x86_64.rpm
Rpm-Uvh libXau-devel-1.0.1-3.1.x86_64.rpm
Rpm-Uvh libXau-devel-1.0.1-3.1.i386.rpm
Rpm-Uvh libXp-devel-1.0.0-8.1.el5.x86_64.rpm
Rpm-Uvh libXp-devel-1.0.0-8.1.el5.i386.rpm
For x32
#! /Bin/bash
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 libgomp-4.4.0-6.el5.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 make-3.81-3.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 setarch-2.0-1.1.i386.rpm
Rpm-Uvh compat-db-4.2.52-5.1.i386.rpm
Rpm-Uvh compat-gcc-34-3.4.6-4.i386.rpm
Rpm-Uvh compat-gcc-34-c + +-3.4.6-4. i386.rpm
Rpm-Uvh compat-libstdc ++-33-3.2.3-61.i386.rpm
Rpm-Uvh libXau-devel-1.0.1-3.1.i386.rpm
Rpm-Uvh libXp-devel-1.0.0-8.1.el5.i386.rpm
Storage,
Go to the rpm directory where the dvd is installed (CentOS is the Centos directory and Oralce Linux is the Server Directory) and run
Bash/v. sh
2. Adjust Kernel Parameters
Nano/etc/sysctl. conf
# Shield the original parameters # kernel. shmmax and kernel. shmall.
Kernel. shmall = 2097152 # // you do not need to change it
Kernel. shmmax = 2147483648 # // you do not need to change it
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
/Sbin/sysctl-p -- reload
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 pam_limits.so
3. Add users and groups
Groupadd oinstall
Groupadd dba
Groupadd rule
Useradd-g oinstall-G dba oracle
Passwd oracle
4. Create a folder for installing Oracle and set its permissions to Oracle users.
Mkdir-p/u01/app/oracle/product/db_1
Chown-R oracle. oinstall/u01
Chmod 775/u01