Create Oracle User:

# groupadd oinstall
# groupadd dba
# mkdir -p /home/oracle /ocfs
# useradd -d /home/oracle -g oinstall -G dba -s /bin/ksh oracle
# chown oracle:dba /export/home/oracle /apps
# echo "oracle123" |passwd oracle
passwd: password successfully changed for oracle
Setup /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

/etc/pam.d/login
session required /lib/security/pam_limits.so

 

/etc/security/limits.conf

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
/etc/sysctl.conf
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        = 1048576
net.core.rmem_max            = 1048576
net.core.wmem_default        = 262144
net.core.wmem_max            = 262144

FOR COMPLETE step by step shell scripts, please consult the DBAExpert.com website:  http://dbaexpert.com/linux/