Oracle 11g grid software installation [20180121], grid20180121
Lab environment: system-> Redhat 6.5 Oracle software-> oracle 11.2.0.4.0 system initialization settings hosts host name and corresponding IP address vi/etc/hosts 192.168.139.11 t-redhat-02 t-redhat-02.com close selinux vi/etc/selinux/config # SELINUX = enforcing SELINUX = disabled disable firewall and automatic service iptables stop & service ip6tables stop chkconfig iptables off & chkconfig ip6tables off Update System Kernel Parameter vim/etc/sysctl. conf # ADD # kernel. shmmax-> use OS default no change # shmmax: Smallest of-> (Half the size of the physical memory) or (4 GB-1 byte) # kernel. shmall-> use OS default no changekernel. shmmni = 4096 # semaphores: semmsl, semmns, semopm, semmnikernel. sem = 250 32000 100 142fs. aio-max-nr = 1048576fs. file-max = 6815744net. ipv4.ip _ local_port_range = 9000 65000net. core. rmem_default = 262144net. core. rmem_max = 4192134net. core. wmem_default = 262144net. core. wmem_max = 1048576 restrict the number of oracle and grid user processes and the number of files vim/etc/security/limits. conforacle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 grid soft nproc 2047 grid hard nproc 16384 grid soft nofile 1024 grid hard nofile 65536 vim/etc/pam. d/login session required pam_limits.so vim/etc/profile if [/$ USER = "oracle"] | [/$ USER = "grid"]; then if [/$ SHELL = "/bin/ksh"]; then ulimit-p 16384 ulimit-n 65536 else ulimit-u 16384-n 65536 fi umask 022 fi create grid and oracle user groupadd-g 501 oinstall groupadd-g 502 dba groupadd-g 503 osasm groupadd-g 504 asmoper useradd-g oinstall-G osasm, asmoper grid useradd-g oninstall-G dba oracle updates the grid and oracle user environment variables vim/home/grid /. bash_profile export ORACLE_BASE =/u01/app/oracle export ORACLE_HOME = $ ORACLE_BASE/product/11.2.0.4/dbhome_1 export GRID_HOME =/u01/app/grid/product/11.2.0.4 export PATH = $ ORACLE_HOME/ bin: $ GRID_HOME/bin: $ ORACLE_HOME/OPatch: $ PATHVim/home/oracle/. bash_profileExport ORACLE_BASE =/u01/app/oracle; export ORACLE_HOME = $ ORACLE_BASE/product/11.2.0.4/dbhome_1 export PATH = $ ORACLE_HOME/bin: $ PATH to install the required dependency package yum-y install binutilsYum-y install compat-libcap1Yum-y install compat-libstdc ++ * yum-y install libgccyum-y install libstdc ++ yum-y install libstdc ++-develyum-y install sysstatyum-y install gccyum-y install gcc-c ++ yum-y install kshyum-y install makeyum-y install glibcyum-y install glibc-develyum-y install libaioyum-y install libaio-develyum-y- y install elfutils-libelfyum-y install elfutils-libelf-develyum-y install glibc-commonyum-y install glibc-headersyum-y install expat rpm-vih pdksh-5.2.14-30 * Create grid and oracle software directory mkdir-p/u01/app/grid/product/11.2.0.4 mkdir-p/u01/app/oraInventory mkdir-p/u01/app/oracle authorize chown-R grid. oinstall/u01/app/grid chown-R oracle. oinstall/u01/app/oracle chown-R grid. oinstall/u01/app/oraInventory chmod-R 775/u01/app/grid/u01/app/oracle/u01/app/oraInventory first install the grid Software
Only install grid Software
Configure RAC cd $ GRID_HOME/crs/config./config. sh https://docs.oracle.com/cd/E11882_01/install.112/e41961/crsunix.htm#CWLIN2950