In Linux, the script of the system before installing Oracle 10 Gb is the initial prototype. There is no logical relationship. Please use it with caution.
#! /Bin/bash
Cat>/etc/sysctl. conf <"EOF"
# Use for oracle
Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
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
EOF
/Sbin/sysctl-p
Cat>/etc/security/limits. conf <"EOF"
# Use for oracle
* Soft nproc 2047
* Hard nproc 16384
* Soft nofile 1024
* Hard nofile 65536
EOF
Echo "session required pam_limits.so">/etc/pam. d/login
Cat>/etc/profile <"EOF"
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
Export ORACLE_BASE =/u01/app/oracle
Export ORACLE_SID = orcl
EOF
Mkdir-p/u01/app/oracle
Chown-R oracle: oinstall/u01/app/oracle
/Usr/sbin/groupadd oinstall
/Usr/sbin/groupadd dba
/Usr/sbin/useradd-m-g oinstall-G dba oracle
Passwd oracle