groupadd -g 500 oinstall groupadd -g 501 dba groupadd -g 502 oper groupadd -g 503 asmadmin groupadd -g 504 asmoper groupadd -g 505 asmdba useradd -u 501 -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid useradd -u 502 -g oinstall -G dba,asmdba,oper oracle echo "kernel.shmmni = 4096" >> /etc/sysctl.conf echo "kernel.sem = 250 32000 100 128" >> /etc/sysctl.conf echo "fs.file-max = 6815744" >> /etc/sysctl.conf echo "net.ipv4.ip_local_port_range = 9000 65500" >> /etc/sysctl.conf echo "net.core.rmem_default = 262144" >> /etc/sysctl.conf echo "net.core.wmem_default = 262144" >> /etc/sysctl.conf echo "net.core.rmem_max = 4194304" >> /etc/sysctl.conf echo "net.core.wmem_max = 1048576" >> /etc/sysctl.conf echo "fs.aio-max-nr = 1048576" >> /etc/sysctl.conf sysctl -p echo "oracle soft nproc 65536" >> /etc/security/limits.conf echo "oracle hard nproc 65536" >> /etc/security/limits.conf echo "oracle soft nofile 65536" >> /etc/security/limits.conf echo "oracle hard nofile 65536" >> /etc/security/limits.conf echo "grid soft nproc 65536" >> /etc/security/limits.conf echo "grid hard nproc 65536" >> /etc/security/limits.conf echo "grid soft nofile 65536" >> /etc/security/limits.conf echo "grid hard nofile 65536" >> /etc/security/limits.conf echo "grid soft stack 10240" >> /etc/security/limits.conf echo "oracle soft stack 10240" >> /etc/security/limits.conf echo "oracle hard memlock 3145728 " >> /etc/security/limits.conf echo "oracle soft memlock 3145728 " >> /etc/security/limits.conf systemctl stop firewalld systemctl disable firewalld mkdir -p /u01/app/grid/grid_base mkdir -p /u01/app/grid/grid_home mkdir -p /u01/app/oracle mkdir -p /u01/app/oracle/product/12.2.0/db chown -R grid:oinstall /u01/app/grid chown -R oracle:oinstall /u01/app/oracle chown oracle.oinstall /u01/app/ echo "libXtst-devel.x86_64 " >> /root/rpm.txt echo "libXtst-devel.i686 " >> /root/rpm.txt echo "libstdc++-devel.i686 " >> /root/rpm.txt echo "kernel-headers " >> /root/rpm.txt echo "glibc-devel.i686 " >> /root/rpm.txt echo "glibc-devel.x86_64 " >> /root/rpm.txt echo "gnome-icon-theme " >> /root/rpm.txt echo "dmz-cursor-themes " >> /root/rpm.txt echo "sgml-common " >> /root/rpm.txt echo "libaio.i686 " >> /root/rpm.txt echo "libaio.x86_64 " >> /root/rpm.txt echo "libaio-devel.x86_64 " >> /root/rpm.txt echo "libaio-devel.i686 " >> /root/rpm.txt echo "ncurses-devel.x86_64 " >> /root/rpm.txt echo "ncurses-devel.i686 " >> /root/rpm.txt echo "elfutils-libelf-devel.x86_64 " >> /root/rpm.txt echo "elfutils-libelf-devel.i686 " >> /root/rpm.txt echo "compat-gcc-34 " >> /root/rpm.txt echo "compat-gcc-34-c++ " >> /root/rpm.txt echo "libXxf86misc.i686 " >> /root/rpm.txt echo "libXxf86vm.i686 " >> /root/rpm.txt echo "libXt.i686 " >> /root/rpm.txt echo "libXt.x86_64 " >> /root/rpm.txt echo "libXmu.x86_64 " >> /root/rpm.txt echo "libXmu.i686 " >> /root/rpm.txt echo "mpfr " >> /root/rpm.txt echo "cpp " >> /root/rpm.txt echo "xorg-x11-xauth " >> /root/rpm.txt echo "compat-gcc-34-c++ " >> /root/rpm.txt echo "libdaemon " >> /root/rpm.txt echo "avahi " >> /root/rpm.txt echo "avahi-glib " >> /root/rpm.txt echo "shared-mime-info " >> /root/rpm.txt echo "libIDL-devel.i686 " >> /root/rpm.txt echo "libIDL-devel.x86_64 " >> /root/rpm.txt echo "ORBit2-devel.i686 " >> /root/rpm.txt echo "ORBit2-devel.x86_64 " >> /root/rpm.txt echo "GConf2-devel.i686 " >> /root/rpm.txt echo "GConf2-devel.x86_64 " >> /root/rpm.txt echo "gnome-vfs2-devel.i686 " >> /root/rpm.txt echo "gnome-vfs2-devel.x86_64 " >> /root/rpm.txt echo "libbonobo-devel.i686 " >> /root/rpm.txt echo "libbonobo-devel.x86_64 " >> /root/rpm.txt echo "libtool-ltdl.i686 " >> /root/rpm.txt echo "libtool-ltdl.x86_64 " >> /root/rpm.txt echo "unixODBC-devel.i686 " >> /root/rpm.txt echo "unixODBC-devel.x86_64 " >> /root/rpm.txt echo "gtk2-engines.i686 " >> /root/rpm.txt echo "gtk2-engines.x86_64 " >> /root/rpm.txt echo "libmcpp " >> /root/rpm.txt echo "mcpp " >> /root/rpm.txt echo "xorg-x11-server-utils " >> /root/rpm.txt echo "libXv-devel.i686 " >> /root/rpm.txt echo "libXv-devel.x86_64 " >> /root/rpm.txt echo "ConsoleKit-x11 " >> /root/rpm.txt echo "xorg-x11-xinit " >> /root/rpm.txt echo "libXp-devel.i686 " >> /root/rpm.txt echo "libXp-devel.x86_64 " >> /root/rpm.txt echo "libXxf86dga " >> /root/rpm.txt echo "libdmx " >> /root/rpm.txt echo "xorg-x11-utils " >> /root/rpm.txt echo "compat-db43.i686 " >> /root/rpm.txt echo "compat-db43.x86_64 " >> /root/rpm.txt echo "ppl.i686 " >> /root/rpm.txt echo "ppl.x86_64 " >> /root/rpm.txt echo "cloog-ppl.i686 " >> /root/rpm.txt echo "cloog-ppl.x86_64 " >> /root/rpm.txt echo "gcc " >> /root/rpm.txt echo "gcc-c++ " >> /root/rpm.txt echo "compat-libstdc++-33.i686 " >> /root/rpm.txt echo "compat-libstdc++-33.x86_64 " >> /root/rpm.txt echo "compat-db.i686 " >> /root/rpm.txt echo "compat-db.x86_64 " >> /root/rpm.txt echo "gnome-themes " >> /root/rpm.txt echo "system-icon-theme " >> /root/rpm.txt echo "system-gnome-theme " >> /root/rpm.txt echo "readline-devel.i686 " >> /root/rpm.txt echo "readline-devel.x86_64 " >> /root/rpm.txt echo "libgnome-devel.i686 " >> /root/rpm.txt echo "libgnome-devel.x86_64 " >> /root/rpm.txt echo "binutils-devel.i686 " >> /root/rpm.txt echo "binutils-devel.x86_64 " >> /root/rpm.txt echo "elfutils-devel.i686 " >> /root/rpm.txt echo "elfutils-devel.x86_64 " >> /root/rpm.txt echo "numactl-devel.i686 " >> /root/rpm.txt echo "numactl-devel.x86_64 " >> /root/rpm.txt echo "sysstat " >> /root/rpm.txt echo "cifs-utils " >> /root/rpm.txt echo "unzip " >> /root/rpm.txt echo "oracleasm-support " >> /root/rpm.txt echo "ksh " >> /root/rpm.txt echo "compat-libcap1 " >> /root/rpm.txt echo "libstdc++-devel.x86_64 " >> /root/rpm.txt echo "nfs-utils " >> /root/rpm.txt echo "smartmontools " >> /root/rpm.txt echo "net-tools " >> /root/rpm.txt echo "cvuqdisk " >> /root/rpm.txt rm -f /etc/yum.repos.d/* echo "[localyum] " >> /etc/yum.repos.d/xxx.repo echo "name=localyum " >> /etc/yum.repos.d/xxx.repo echo "baseurl=file:///mnt/ " >> /etc/yum.repos.d/xxx.repo echo "gpgcheck=0 " >> /etc/yum.repos.d/xxx.repo echo "enabled=1 " >> /etc/yum.repos.d/xxx.repo yum -install -y `cat /root/rpm.txt` #public echo "192.168.111.100 12c-rac01 " >> /etc/hosts echo "192.168.111.200 12c-rac02 " >> /etc/hosts echo "#private " >> /etc/hosts echo "10.10.111.111 12c-rac01-priv " >> /etc/hosts echo "10.10.111.222 12c-rac02-priv " >> /etc/hosts echo "#vip " >> /etc/hosts echo "192.168.111.120 12c-rac01-vip " >> /etc/hosts echo "192.168.111.220 12c-rac02-vip " >> /etc/hosts echo "#scan_ip " >> /etc/hosts echo "192.168.111.150 rac-scan " >> /etc/hosts /home/grid/grid/runcluvfy.sh stage -pre crsinst -n 12c-rac01,12c-rac02 -fixup -verbose
隨筆
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.