2.0 Configuration oracle Install parameters
2.1 Logging In to the system as root
Linux reboot ,userpassword root/oracle
2.2 Creating Required Operating System Groups and Users,Directory
Last login: Wed Jul 9 05:13:55 2014 [root@hokodb01 ~]# cd / [root@hokodb01 /]# pwd /
[root@hokodb01 /]#
[root@hokodb01 /]# groupadd oinstall [root@hokodb01 /]# groupadd dba [root@hokodb01 /]# groupadd oper
[root@hokodb01 /]# useradd -g oinstall -G dba,oper -d /home/oracle oracle [root@hokodb01 /]# mkdir -p /u01/app/oracle [root@hokodb01 /]# mkdir -p /u01/archive
[root@hokodb01 /]# mkdir –p /u01/soft [root@hokodb01 /]# mkdir -p /u01/backup
[root@hokodb01 /]# mkdir -p /u01/app/oracle/product/11.2.0/db_1 [root@hokodb01 /]# chown -R oracle:oinstall /u01/app/oracle [root@hokodb01 /]# chown -R oracle:oinstall /u01 [root@hokodb01 /]# chmod -R 775 /u01 [root@hokodb01 /]# passwd oracle Changing password for user oracle. New UNIX password:
BAD PASSWORD: it is based on a dictionary word Retype new UNIX password:
passwd: all authentication tokens updated successfully.
2.3 Other parameters
[root@hokodb01 /]# vi /etc/pam.d/login session required pam_limits.so
:wq #:x save
[root@hokodb01 /]# vi /etc/redhat-release #CentOS release 5.5 (Final) CentOS release 4
2.4 Configuring Kernel Parameters and Resource Limits [root@hokodb01 /]# vi /etc/sysctl.conf (Add the following information) fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 2074470400 kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048586
net.ipv4.tcp_wmem = 262144 262144 262144 net.ipv4.tcp_rmem = 4194304 4194304 4194304 :x(save)
Enter the following command to change the current values of the kernel parameters:
[root@hokodb01 /]# sysctl -p net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0 kernel.sysrq = 0
kernel.core_uses_pid = 1 net.ipv4.tcp_syncookies = 1 kernel.msgmnb = 65536 kernel.msgmax = 65536
kernel.shmmax = 68719476736 kernel.shmall = 4294967296 fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 1054472192 kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048586
net.ipv4.tcp_wmem = 262144 262144 262144 net.ipv4.tcp_rmem = 4194304 4194304 4194304
2.5 Check Resource Limits for the Oracle Software Installation Users
[root@hokodb01 /]# vi /etc/security/limits.conf (Add the following information) oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 10240
#Resolution computer name
[root@hokodb01 ~]# vi /etc/hosts
# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost
::1 localhost6.localdomain6 localhost6 192.168.14.112 hokodb01