In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you "how to achieve ORACLE RAC rapid installation and deployment script", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to achieve ORACLE RAC rapid installation and deployment script" this article.
In view of the frequent installation of RAC, the main steps in the installation process are sorted out, and the configuration of the RAC database host can be quickly realized through the script.
#! / bin/bash
#
# # Operation of 11G RAC deployment for Red Hat Enterprise Linux Server release 6.x and extremely compatible kernels
# # 0. Environmental information check
# # 1. Turn off redundant services to improve operating system performance and security
# # 2. Configure a remote graphical interface (Xmanager or VNC)
# # 3. Configure the local YUM source and install the operating system patch
# # 4. Modify operating system kernel parameters
# # 5. Configure shared storage
# # 6. Create oracle user and installation directory
# # 7. Restart the operating system for modification verification
# # 8. Perform CRS installation
# # 9. Install patch CRS 10.2.0.5
# # 10. Perform database installation
# # 11. Install the database 10.2.0.5 patch
# # 12. Install the PSU patch
# # 13. Build the library by hand
# # 14. Parameter adjustment
#
#
# # 0. Environmental information check
#
Echo "#"
Echo "0. Environmental Information check"
Echo
Echo "memory info"
Grep MemTotal / proc/meminfo
Echo
Echo
Echo "swap info"
Grep SwapTotal / proc/meminfo
Echo
Echo
Echo "tmp info"
Df-h / tmp
Echo
Echo
Echo "disk info"
Df-h
Echo
Echo
Echo "cpu info"
Grep "model name" / proc/cpuinfo
Echo
Echo
Echo "kernel info"
Uname-a
Echo
Echo
Echo "release info"
More / etc/redhat-release
RELEASE= `more / etc/redhat-release | awk'{print $1}'`
Echo "#"
Echo
Echo
Echo
#
# # 1. Turn off redundant services to improve operating system performance and security
# # customize according to environment and needs
#
Echo "#"
Echo "1. Turn off redundant services to improve operating system performance and security"
Echo
Chkconfig-level 2345 bluetooth off
Chkconfig-level 2345 cups off
Chkconfig-level 2345 ip6tables off
Chkconfig-level 2345 iptables off
Chkconfig-level 2345 sendmail off
Chkconfig-level 2345 acpid off
Chkconfig-level 2345 bluetooth off
Chkconfig-level 2345 cups off
Chkconfig-level 2345 cpuspeed off
Chkconfig-level 2345 irqbalance off
Chkconfig-level 2345 postfix off
Chkconfig-level 2345 ip6tables off
Chkconfig-level 2345 iptables off
Chkconfig-level 2345 sendmail off
Chkconfig-level 2345 NetworkManager off
Echo
Echo
Echo "turn off selinux"
SELINUX= `grep ^ SELINUX= / etc/selinux/ config`
If [$SELINUX! = "SELINUX=disabled"]; then
Cp / etc/selinux/config / etc/selinux/config.bak
Sed-I's / ^ Selinux = / # SELINUX=/g' / etc/selinux/config
Sed-I'$a SELINUX=disabled' / etc/selinux/config
Else
Echo "SELINUX is already disabled"
Fi
Echo
Echo "#"
Echo
Echo
Echo
#
# # 2. Configure a remote graphical interface (Xmanager or VNC)
# # manual configuration is required depending on the environment. It is recommended to use Xmanager-Passive or VNC.
#
# # | 2.1Login via xshell
# # | Open the Xmanager-Passive tool and use Xshell to connect to the remote server
# #
# # | # export DISPLAY= client IP:0.0
# # | # xclock
#
# # 3. Configure the local YUM source and install the operating system patch
#
Echo "#"
Echo "3. Configure local YUM source and install operating system patch pack"
Echo
Mkdir-p / media/cdrom
Mount / dev/cdrom / media/cdrom
Cd / etc/yum.repos.d/
Mkdir bak
Mv * .repo. / bak/
> local.repo
# Note that the YUM configuration of RHEL and CENTOS is different, and adjust accordingly according to the operating system
#-RHEL
# [RHEL]
# name = RHEL
# baseurl= file:///media/cdrom/Server/
# gpgcheck=0
# enabled=1
#
#-CENTOS
# [CENTOS]
# name = CENTOS
# baseurl= file:///media/cdrom/
# gpgcheck=0
# enabled=1
Cat > > local.repo > / etc/sysctl.conf > / etc/modprobe.conf diskinfo.tmp
# > udevinfo.tmp
#
# cd / dev
#
# for i in $(ls sd* | grep-v sda | grep-v 1 $)
# do
# diskinfo= `fdisk-l / dev/$i | grep "Disk / dev/$i" `
# scsiinfo= `/ sbin/scsi_id-- whitelisted-- replace-whitespace-- device=/dev/$ i`
# echo $diskinfo''$scsiinfo > > $OLDPWD/diskinfo.tmp
# echo "KERNEL==\" sd*\ ", BUS==\" scsi\ ", PROGRAM==\" / sbin/scsi_id-- whitelisted-- replace-whitespace-- device=/dev/\ $parent\ ", RESULT==\" `/ sbin/scsi_id-- whitelisted-- replace-whitespace-- device=/dev/$ i`\ ", NAME=\" asm-disk$i\ ", OWNER=\" grid\ ", GROUP=\" asmadmin\ ", MODE=\" 0660\ "# $diskinfo" > $OLDPWD/udevinfo.tmp
# done
#
# cd $OLDPWD
#
# cat diskinfo.tmp
# cat udevinfo.tmp | awk-FairGB' {print $1 "GB"}'
# rm-f diskinfo.tmp
# rm-f udevinfo.tmp
# vi / etc/udev/rules.d/99-oracle-asmdevices.rules
# [root@A42ams1 ~] # grep deadline / sys/block/sd*/queue/scheduler
# RHEL 4, RHEL 5, RHEL 6: add elevator=deadline to the end of the kernel line in / etc/grub.conf file:
# kernel / vmlinuz-2.6.9-67.EL ro root=/dev/vg0/lv0 elevator=deadline
#
# # 6. Create oracle user and installation directory
#
Echo "#"
Echo "6. Create oracle user and installation directory"
Echo
Echo "create oracle users and groups"
/ usr/sbin/groupadd-g 1000 oinstall
/ usr/sbin/groupadd-g 1001 dba
/ usr/sbin/groupadd-g 1002 oper
/ usr/sbin/groupadd-g 1010 asmadmin
/ usr/sbin/groupadd-g 1011 asmoper
/ usr/sbin/groupadd-g 1012 asmdba
/ usr/sbin/useradd-u 1000-g oinstall-G dba,oper,asmdba oracle
/ usr/sbin/useradd-u 1001-g oinstall-G dba,asmadmin,asmdba,asmoper grid
Echo oracle | passwd-- stdin oracle
Echo oracle | passwd-- stdin grid
Echo
Echo "create oracle installation directory"
Mkdir-p / grid/app/11.2.0.4/grid
Chown-R grid:oinstall / grid
Chmod-R 755 / grid
Mkdir-p/oracle / app/oracle
Chown-R oracle:oinstall / oracle
Chmod-R 755 / oracle
Echo
Echo "modify oracle user session limits"
Cp / etc/security/limits.conf / etc/security/limits.conf.bak
Cat > > / etc/security/limits.conf > / etc/pam.d/login > / home/grid/.bash_profile > / home/oracle/.bash_profile ping.sh
# $ping.sh
The above is all the contents of the article "how to implement the ORACLE RAC Quick installation and deployment script". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 217
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.