Oracle RAC Deployment Transcript (II): Oracle Grid Infrastructure

Source: Internet
Author: User
Tags chmod dba mkdir stdin

[[email protected] ~]# groupadd -g 1300 dba[[email protected] ~]#  groupadd -g 1301 oper[[email protected] ~]# groupadd -g 1000  oinstall [[email protected] ~]# groupadd -g 1200 asmadmin[[email  protected] ~]# groupadd -g 1201 asmdba [[email protected] ~]#  groupadd -g 1202 asmoper [[email protected] ~]# useradd -u  1100 -g oinstall -g asmadmin,asmdba,asmoper,dba grid[[email protected] ~]#  echo grid | passwd --stdin grid[[email protected] ~]# id  griduid=1100 (GRID)  gid=1000 (Oinstall)  groups=1000 (Oinstall), 1300 (DBA), (Asmadmin), 1201 (ASMDBA), 1202 (Asmoper) [[Email protected] ~]# su - grid[[email protected] ~]$ vi  .bash_profileexport oracle_sid=+asm1export oracle_base=/u01/app/gridexport oracle_home=/u01/app/11.2.0.4/gridexport  Path= $ORACLE _home/bin: $PATHexport  display=192.168.1.99:0


[[email protected] ~]# groupadd -g 1300 dba[[email protected] ~]#  groupadd -g 1301 oper[[email protected] ~]# groupadd -g 1000  oinstall [[email protected] ~]# groupadd -g 1200 asmadmin[[email  protected] ~]# groupadd -g 1201 asmdba [[email protected] ~]#  groupadd -g 1202 asmoper [[email protected] ~]# useradd -u  1100 -g oinstall -g asmadmin,asmdba,asmoper,dba grid[[email protected] ~]#  echo grid | passwd --stdin grid[[email protected] ~]# id  griduid=1100 (GRID)  gid=1000 (Oinstall)  groups=1000 (Oinstall), 1300 (DBA), (Asmadmin), 1201 (ASMDBA), 1202 (Asmoper) [[Email protected] ~]# su - grid[[email protected] ~]$ vi  .bash_profilexport oracle_sid=+asm2export oracle_base=/u01/app/gridexport oracle_home=/u01/app/11.2.0.4/gridexport  Path= $ORACLE _home/bin: $PATHexport  display=192.168.1.99:0


[Email protected] ~]# mkdir-p/u01/app/grid[[email protected] ~]# mkdir-p/u01/app/11.2.0.4/grid[[email protected] ~]# Chown-r Grid:oinstall/u01[[email protected] ~]# chmod-r 775/u01


[Email protected] ~]# mkdir-p/u01/app/grid[[email protected] ~]# mkdir-p/u01/app/11.2.0.4/grid[[email protected] ~]# Chown-r Grid:oinstall/u01[[email protected] ~]# chmod-r 775/u01


[Email protected] ~]# yum-y install binutils elfutils-libelf elfutils-libelf-devel elfutils-libelf-devel-static gcc gcc -c++ glibc glibc-common glibc-devel glibc-headers ksh libaio libaio-devel libstdc++ libstdc++-devel make Sysstat UnixODBC Unixodbc-devel[[email protected] ~]# yum install-y compat-libstdc++*


[Email protected] ~]# yum-y install binutils elfutils-libelf elfutils-libelf-devel elfutils-libelf-devel-static gcc gcc -c++ glibc glibc-common glibc-devel glibc-headers ksh libaio libaio-devel libstdc++ libstdc++-devel make Sysstat UnixODBC Unixodbc-devel[[email protected] ~]# yum install-y compat-libstdc++*


[Email protected] ~]# Cvuqdisk_grp=oinstall; [[email protected] ~]# export Cvuqdisk_grp[[email protected] ~]# RPM-IVH cvuqdisk-1.0.9-1.rpm[[email protected] ~]# CVUQD Isk_grp=oinstall; [[email protected] ~]# export Cvuqdisk_grp[[email protected] ~]# RPM-IVH cvuqdisk-1.0.9-1.rpm


[[Email protected] ~]# service ntpd stop[[email protected] ~]# chkconfig ntpd off[[email protected] ~]# mv/etc/ntp.conf/ Etc/ntp.conf.back[[email protected] ~]# service ntpd stop[[email protected] ~]# chkconfig ntpd off[[email protected] ~]# m V/etc/ntp.conf/etc/ntp.conf.back


[[email protected] ~]# cat >> /etc/hosts  <<EOF# Public Network -  (eth0)  192.168.1.201   king01  192.168.1.202   king02  # Public Virtual IP  (VIP)   addresses -  (eth0:1)  192.168.1.211   king01-vip 192.168.1.222    king02-vip EOF[[email protected] ~]# cat >> /etc/hosts << eof# public network -  (eth0)  192.168.1.201   king01 192.168.1.202    king02  # Public Virtual IP  (VIP)  addresses -  ( ETH0:1)  192.168.1.211   king01-vip 192.168.1.222   king02-vip eof 
[[email protected] ~]# cat >> /etc/profile <<eof 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 fieof[[email protected]  ~]# cat >> /etc/profile <<eof if [ \ $USER  =  " Oracle " ] | |  [ \ $USER  =  "Grid"  ]; then      if [ \$ shell =  "/bin/ksh"  ]; then   &Nbsp;    ulimit -p 16384        ulimit  -n 65536     else          ulimit -u 16384 -n 65536     fi      Umask 022 fieof


[[Email protected] ~]# cat >> /etc/security/limits.conf <<eofgrid             soft    nproc            2047    grid             hard    nproc            16384grid             soft    nofile           1024grid            hard     nofile          65536EOF[[email  protected] ~]# cat >> /etc/security/limits.conf <<eofgrid             soft    nproc            2047    grid             Hard    nproc           16384grid             soft    nofile           1024grid             hard    nofile           65536eof


[[Email protected] ~]# cat >> /etc/sysctl.conf <<eofkernel.shmmni  = 4096kernel.sem = 250 32000 100 128fs.file-max =  6815744net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default=262144net.core.rmem_max= 4194304net.core.wmem_default=262144net.core.wmem_max=1048576fs.aio-max-nr=1048576net.ipv4.conf.default.rp_ Filter = 0eof[[email protected] ~]# sysctl -p  [[email protected]  ~]# cat >> /etc/sysctl.conf <<EOFkernel.shmmni =  4096kernel.sem = 250 32000 100 128fs.file-max = 6815744net.ipv4.ip_local_ Port_range = 9000 65500net.core.rmem_default=262144net.core.rmem_max=4194304net.core.wmem_ default=262144net.core.wmem_max=1048576fs.aio-max-nr=1048576net.ipv4.conf.default.rp_filter = 0eof[[ Email protected] ~]# sysctl -p


Oracle RAC Deployment Transcript (II): Oracle Grid Infrastructure

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.