1. Install CentOS 5 and disable selinux (you can enable selinux after installing Oracle)
System-> Management-> Security Level and firewall-> Selinux-> disable
2. Check the installed software: rpm-qa | grep xxxxx
Binutils
Compat-libstdc ++
Elfutils-libelf
Elfutils-libelf-devel
Glibc
Glibc-common
Glibc-devel
Gcc
Gcc-c ++
Libaio
Libaio-devel
Libgcc
Libstdc ++
Libstdc ++-devel
Make
Sysstat
UnixODBC
UnixODBC-devel
Find these software directly from the installation CD
3. Create users and groups (root operation)
$ Su-
# Groupadd oinstall
# Groupadd dba
# Useradd-g oinstall-G dba oracle
# Passwd oracle
4. create directories and permissions (root operation)
# Mkdir/oracle
# Mkdir/oracle/10g
# Chown-R oracle: oinstall/oracle
5. Modify Environment Variables
1.
# Vi/etc/sysctl. conf
Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Net. ipv4.ip _ local_port_range = 1024 65000
Net. core. rmem_default = 4194304
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
2.
# Vi/etc/security/limits. conf
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
3.
Vi/etc/pam. d/login
Session required/lib/security/pam_limits.so
Session required pam_limits.so
4.
Vi/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
5.
Cd/home/oracle
Vi. bash_profile
ORACLE_BASE =/oracle
ORACLE_HOME = $ ORACLE_BASE/10g
ORACLE_SID = wilson
PATH = $ ORACLE_HOME/bin: $ PATH
Export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
6. Install libXp
Yum-y install libXp
7.
Vi/etc/RedHat-release
Change CentOS release 5 (Final) to redhat 4
6. Use oracle users to access linux
Enter Terminal
$ Cd oralce Installation File directory
$ LANG = en
$ Sh runInstaller
7. Start oracle after installation
$ Sqlpuls/nolog
$ SQL> conn sys/password as sysdba
$ SQL> startup
$ SQL> exit
Start the listener:
$ Cd/oracle/10g/bin
$./Lsnrctl start