Oracle 一键安装脚本,演示 5 节点 RAC 一键安装过程(全程无需人工干预):(脚本包括 GRID/ORALCE PSU/OJVM 补丁自动安装)
⭐️ 脚本下载地址:Shell脚本安装Oracle数据库
脚本第三代支持 N 节点一键安装,不限制节点数!
[root@lucifer01 soft]# ./OracleShellInstall -n luciferdb `# hostname prefix`\
> -hn luciferdb01,luciferdb02,luciferdb03,luciferdb04,luciferdb05 `# rac node hostname`\
> -cn luciferdb-cls `# cluster_name`\
> -sn luciferdb-scan `# scan_name`\
> -rp oracle `# root password`\
> -gp oracle `# grid password`\
> -op oracle `# oracle password`\
> -lf ens192 `# local ip ifname`\
> -pf ens224,ens256 `# rac private ip ifname`\
> -ri 192.168.6.31,192.168.6.32,192.168.6.33,192.168.6.34,192.168.6.35 `# rac node public ip`\
> -vi 192.168.6.51,192.168.6.52,192.168.6.53,192.168.6.54,192.168.6.55 `# rac virtual ip`\
> -si 192.168.6.50 `# rac scan ip`\
> -tsi 202.112.10.36 `# timeserver ip`\
> -od /dev/sdb,/dev/sdc,/dev/sdd `# rac ocr asm disk`\
> -dd /dev/sde,/dev/sdf `# rac data asm disk`\
> -o oradb `# dbname`\
> -ds AL32UTF8 `# database character`\
> -ns AL16UTF16 `# national character`\
> -dp oracle `# sys/system password`\
> -redo 50 `# redo size`\
> -gpa 31718723 `# grid PSU/RU`\
> -jpa 31668908 `# OJVM PSU/RU`\
> -opd Y `# optimize db`
███████ ██ ████████ ██ ██ ██ ██ ██ ██ ██
██░░░░░██ ░██ ██░░░░░░ ░██ ░██ ░██░██ ░██ ░██ ░██
██ ░░██ ██████ ██████ █████ ░██ █████ ░██ ░██ █████ ░██ ░██░██ ███████ ██████ ██████ ██████ ░██ ░██
░██ ░██░░██░░█ ░░░░░░██ ██░░░██ ░██ ██░░░██░█████████░██████ ██░░░██ ░██ ░██░██░░██░░░██ ██░░░░ ░░░██░ ░░░░░░██ ░██ ░██
░██ ░██ ░██ ░ ███████ ░██ ░░ ░██░███████░░░░░░░░██░██░░░██░███████ ░██ ░██░██ ░██ ░██░░█████ ░██ ███████ ░██ ░██
░░██ ██ ░██ ██░░░░██ ░██ ██ ░██░██░░░░ ░██░██ ░██░██░░░░ ░██ ░██░██ ░██ ░██ ░░░░░██ ░██ ██░░░░██ ░██ ░██
░░███████ ░███ ░░████████░░█████ ███░░██████ ████████ ░██ ░██░░██████ ███ ███░██ ███ ░██ ██████ ░░██ ░░████████ ███ ███
░░░░░░░ ░░░ ░░░░░░░░ ░░░░░ ░░░ ░░░░░░ ░░░░░░░░ ░░ ░░ ░░░░░░ ░░░ ░░░ ░░ ░░░ ░░ ░░░░░░ ░░ ░░░░░░░░ ░░░ ░░░
请选择安装模式 [单机(si)/集群(rac)] :
rac
数据库安装模式: rac
请选择数据库版本 [11/12/19/21] :
11
数据库版本: 11
配置本地 YUM 源:
[server]
name=server
baseurl=file:///mnt
enabled=1
gpgcheck=0
获取 ASM 磁盘 UUID && 格式化磁盘头:
格式化 OCR 磁盘:/dev/sdb,/dev/sdc,/dev/sdd
10+0 records in
10+0 records out
1048576000 bytes (1.0 GB) copied, 11.6849 s, 89.7 MB/s
10+0 records in
10+0 records out
1048576000 bytes (1.0 GB) copied, 11.2133 s, 93.5 MB/s
10+0 records in
10+0 records out
1048576000 bytes (1.0 GB) copied, 11.4255 s, 91.8 MB/s
OCR磁盘组的磁盘UUID: 2d7490d9f98a4dd33,29d556de9c0521353,22a3d603188b7e7ac
格式化 DATA 磁盘:/dev/sde,/dev/sdf
10+0 records in
10+0 records out
1048576000 bytes (1.0 GB) copied, 11.3711 s, 92.2 MB/s
10+0 records in
10+0 records out
1048576000 bytes (1.0 GB) copied, 11.3941 s, 92.0 MB/s
DATA磁盘组的磁盘UUID: 2efbc650f3322eb34,228a97913b281ad29
#==============================================================#
配置 root 用户互信
#==============================================================#
Generating public/private rsa key pair.
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:q9jTYXhcuywt1GsmVmQLF0B8MmTAcSvkIzuqmxj8lFc root@lucifer01
The key's randomart image is:
+---[RSA 2048]----+
| .+**. |
| o.o+.o |
| . + .+ . |
| o o. = |
| o ESB o |
|. ...o *.= |
|...o . =.= o |
|.+o .o..* B |
|=. .. oo * |
+----[SHA256]-----+
#==============================================================#
配置 SELinux
#==============================================================#
SELINUX=disabled
SELINUXTYPE=targeted
#==============================================================#
YUM 静默安装依赖包
#==============================================================#
bc-1.06.95-13.el7.x86_64
binutils-2.27-43.base.el7.x86_64
compat-libcap1-1.10-7.el7.x86_64
package compat-libstdc++-33 is not installed
gcc-4.8.5-39.el7.x86_64
gcc-c++-4.8.5-39.el7.x86_64
elfutils-libelf-0.176-4.el7.x86_64
elfutils-libelf-devel-0.176-4.el7.x86_64
glibc-2.17-307.el7.1.x86_64
glibc-devel-2.17-307.el7.1.x86_64
libaio-0.3.109-13.el7.x86_64
libaio-devel-0.3.109-13.el7.x86_64
libgcc-4.8.5-39.el7.x86_64
libstdc++-4.8.5-39.el7.x86_64
libstdc++-devel-4.8.5-39.el7.x86_64
libxcb-1.13-1.el7.x86_64
libX11-1.6.7-2.el7.x86_64
libXau-1.0.8-2.1.el7.x86_64
libXi-1.7.9-1.el7.x86_64
libXrender-0.9.10-1.el7.x86_64
make-3.82-24.el7.x86_64
net-tools-2.0-0.25.20131004git.el7.x86_64
smartmontools-7.0-2.el7.x86_64
sysstat-10.1.5-19.el7.x86_64
e2fsprogs-1.42.9-17.el7.x86_64
e2fsprogs-libs-1.42.9-17.el7.x86_64
unzip-6.0-21.el7.x86_64
openssh-clients-7.4p1-21.el7.x86_64
readline-6.2-11.el7.x86_64
readline-devel-6.2-11.el7.x86_64
psmisc-22.20-16.el7.x86_64
ksh-20120801-142.el7.x86_64
nfs-utils-1.3.0-0.66.el7.x86_64
tar-1.26-35.el7.x86_64
device-mapper-multipath-0.4.9-131.el7.x86_64
avahi-0.6.31-20.el7.x86_64
ntp-4.2.6p5-29.el7.x86_64
package chronyd is not installed
libXtst-1.2.3-1.el7.x86_64
libXrender-devel-0.9.10-1.el7.x86_64
fontconfig-devel-2.13.0-4.3.el7.x86_64
policycoreutils-2.5-34.el7.x86_64
policycoreutils-python-2.5-34.el7.x86_64
package policycoreutils-python-utils) is not installed
#==============================================================#
配置主机名
#==============================================================#
Static hostname: luciferdb01
Icon name: computer-vm
Chassis: vm
Machine ID: d4f09aa65cef4e77a5472cbdb59bee2a
Boot ID: 2f0e96cc7d684affae5de778e02907c9
Virtualization: vmware
Operating System: Red Hat Enterprise Linux Server 7.8 (Maipo)
CPE OS Name: cpe:/o:redhat:enterprise_linux:7.8:GA:server
Kernel: Linux 3.10.0-1127.el7.x86_64
Architecture: x86-64
#==============================================================#
配置 HOSTS 文件
#==============================================================#
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
## OracleBegin
## RAC1 IP's: luciferdb01
## RAC1 Public IP
192.168.6.31 luciferdb01
## RAC1 Virtual IP
192.168.6.51 luciferdb01-vip
## RAC1 Private IP
2.2.1.1 luciferdb01-priv
2.2.2.1 luciferdb01-priv1
## RAC2 IP's: luciferdb02
## RAC2 Public IP
192.168.6.32 luciferdb02
## RAC2 Virtual IP
192.168.6.52 luciferdb02-vip
## RAC2 Private IP
2.2.2.2 luciferdb02-priv
2.2.1.2 luciferdb02-priv1
## RAC3 IP's: luciferdb03
## RAC3 Public IP
192.168.6.33 luciferdb03
## RAC3 Virtual IP
192.168.6.53 luciferdb03-vip
## RAC3 Private IP
2.2.2.3 luciferdb03-priv
2.2.1.3 luciferdb03-priv1
## RAC4 IP's: luciferdb04
## RAC4 Public IP
192.168.6.34 luciferdb04
## RAC4 Virtual IP
192.168.6.54 luciferdb04-vip
## RAC4 Private IP
2.2.2.4 luciferdb04-priv
2.2.1.4 luciferdb04-priv1
## RAC5 IP's: luciferdb05
## RAC5 Public IP
192.168.6.35 luciferdb05
## RAC5 Virtual IP
192.168.6.55 luciferdb05-vip
## RAC5 Private IP
2.2.2.5 luciferdb05-priv
2.2.1.5 luciferdb05-priv1
## SCAN IP
192.168.6.50 luciferdb-scan
#==============================================================#
创建用户和组
#==============================================================#
uid=11012(grid) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba),54327(asmdba),54328(asmoper),54329(asmadmin)
#==============================================================#
Avahi-daemon 状态
#==============================================================#
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; disabled; vendor preset: enabled)
Active: inactive (dead)
May 04 17:52:56 lucifer01 avahi-daemon[913]: Registering new address record for 2.2.1.1 on ens224.IPv4.
May 04 17:52:56 lucifer01 avahi-daemon[913]: Registering new address record for fe80::455c:1792:2080:e3ba on ens256.*.
May 04 17:52:56 lucifer01 avahi-daemon[913]: Joining mDNS multicast group on interface ens256.IPv4 with address 2.2.2.1.
May 04 17:52:56 lucifer01 avahi-daemon[913]: New relevant interface ens256.IPv4 for mDNS.
May 04 17:52:56 lucifer01 avahi-daemon[913]: Registering new address record for 2.2.2.1 on ens256.IPv4.
May 04 17:58:06 luciferdb01 avahi-daemon[913]: Got SIGTERM, quitting.
May 04 17:58:06 luciferdb01 avahi-daemon[913]: Leaving mDNS multicast group on interface ens256.IPv4 with address 2.2.2.1.
May 04 17:58:06 luciferdb01 systemd[1]: Stopping Avahi mDNS/DNS-SD Stack...
May 04 17:58:06 luciferdb01 avahi-daemon[913]: Leaving mDNS multicast group on interface ens224.IPv4 with address 2.2.1.1.
May 04 17:58:06 luciferdb01 systemd[1]: Stopped Avahi mDNS/DNS-SD Stack.
#==============================================================#
配置透明大页 && NUMA && 磁盘 IO 调度器
#==============================================================#
args="ro rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet LANG=en_US.UTF-8 numa=off transparent_hugepage=never elevator=deadline"
-rd.lvm.lv=rhel/root
-args="ro
args="ro rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet numa=off transparent_hugepage=never elevator=deadline"
-elevator=deadline"
-transparent_hugepage=never
#==============================================================#
配置 sysctl.conf
#==============================================================#
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 8369393663
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 = 1048576
vm.min_free_kbytes = 32692
net.ipv4.conf.ens192.rp_filter = 1
net.ipv4.conf.ens224.rp_filter = 2
net.ipv4.conf.ens256.rp_filter = 2
#==============================================================#
配置 nsysctl.conf
#==============================================================#
# Created by anaconda
NOZEROCONF=yes
#==============================================================#
配置 /etc/security/limits.conf
#==============================================================#
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768
oracle soft nproc 2047
oracle hard nproc 16384
oracle hard memlock unlimited
oracle soft memlock unlimited
grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240
grid hard stack 32768
grid soft nproc 2047
grid hard nproc 16384
#==============================================================#
配置 /etc/pam.d/login
#==============================================================#
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth substack system-auth
auth include postlogin
account required pam_nologin.so
account include system-auth
password include system-auth
session required pam_selinux.so close
session required pam_loginuid.so
session optional pam_console.so
session required pam_selinux.so open
session required pam_namespace.so
session optional pam_keyinit.so force revoke
session include system-auth
session include postlogin
-session optional pam_ck_connector.so
session required pam_limits.so
session required /lib64/security/pam_limits.so
#==============================================================#
配置 /dev/shm
#==============================================================#
/dev/mapper/rhel-root / xfs defaults 0 0
UUID=56e3f825-c9f9-47b8-8a54-c762d0699e79 /boot xfs defaults 0 0
/dev/mapper/rhel-swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs size=8173236k 0 0
#==============================================================#
安装 rlwrap
#==============================================================#
成功安装 rlwrap: rlwrap 0.42
#==============================================================#
Root 用户环境变量
#==============================================================#
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/bin
export PATH
alias so='su - oracle'
export PS1="[`whoami`@`hostname`:"'\w]# '
alias sg='su - grid'
alias crsctl='/u01/app/11.2.0/grid/bin/crsctl'
alias srvctl='/u01/app/11.2.0/grid/bin/srvctl'
#==============================================================#
Oracle 用户环境变量
#==============================================================#
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
umask 022
export TMP=/tmp
export TMPDIR=$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=oradb1
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/perl/bin:$PATH
export PERL5LIB=$ORACLE_HOME/perl/lib
alias sas='sqlplus / as sysdba'
alias awr='sqlplus / as sysdba @?/rdbms/admin/awrrpt'
alias ash='sqlplus / as sysdba @?/rdbms/admin/ashrpt'
alias alert='vi $ORACLE_BASE/diag/rdbms/*/$ORACLE_SID/trace/alert_$ORACLE_SID.log'
export PS1="[`whoami`@`hostname`:"'\w]$ '
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias adrci='rlwrap adrci'
#==============================================================#
Grid 用户环境变量
#==============================================================#
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
umask 022
export TMP=/tmp
export TMPDIR=$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/11.2.0/grid
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=+ASM1
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
alias sas='sqlplus / as sysasm'
export PS1="[`whoami`@`hostname`:"'\w]$ '
alias sqlplus='rlwrap sqlplus'
alias asmcmd='rlwrap asmcmd'
alias adrci='rlwrap adrci'
#==============================================================#
配置时间同步
#==============================================================#
Created symlink from /etc/systemd/system/multi-user.target.wants/ntpd.service to /usr/lib/systemd/system/ntpd.service.
#==============================================================#
NTP 检查
#==============================================================#
remote refid st t when poll reach delay offset jitter
==============================================================================
202.112.10.36 .INIT. 16 u - 64 0 0.000 0.000 0.001
#==============================================================#
多路径信息
#==============================================================#
create: asm_ocr_1 (2d7490d9f98a4dd33) undef ROCKET ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:0 sdb 8:16 undef ready running
create: asm_ocr_2 (29d556de9c0521353) undef ROCKET ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:1 sdc 8:32 undef ready running
create: asm_ocr_3 (22a3d603188b7e7ac) undef ROCKET ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:2 sdd 8:48 undef ready running
create: asm_data_1 (2efbc650f3322eb34) undef ROCKET ,IMAGEFILE
size=50G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:3 sde 8:64 undef ready running
create: asm_data_2 (228a97913b281ad29) undef ROCKET ,IMAGEFILE
size=50G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:4 sdf 8:80 undef ready running
#==============================================================#
UDEV 配置文件
#==============================================================#
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-2d7490d9f98a4dd33",SYMLINK+="asm_ocr_1",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-29d556de9c0521353",SYMLINK+="asm_ocr_2",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-22a3d603188b7e7ac",SYMLINK+="asm_ocr_3",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-2efbc650f3322eb34",SYMLINK+="asm_data_1",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-228a97913b281ad29",SYMLINK+="asm_data_2",OWNER="grid",GROUP="asmadmin",MODE="0660"
UDEV 已加载成功。
#==============================================================#
ASM 磁盘信息
#==============================================================#
/dev/asm_data_1
/dev/asm_data_2
/dev/asm_ocr_1
/dev/asm_ocr_2
/dev/asm_ocr_3
#==============================================================#
配置 RAC 节点:192.168.6.32
#==============================================================#
正在节点:192.168.6.32 上执行脚本:
███████ ██ ████████ ██ ██ ██ ██ ██ ██ ██
██░░░░░██ ░██ ██░░░░░░ ░██ ░██ ░██░██ ░██ ░██ ░██
██ ░░██ ██████ ██████ █████ ░██ █████ ░██ ░██ █████ ░██ ░██░██ ███████ ██████ ██████ ██████ ░██ ░██
░██ ░██░░██░░█ ░░░░░░██ ██░░░██ ░██ ██░░░██░█████████░██████ ██░░░██ ░██ ░██░██░░██░░░██ ██░░░░ ░░░██░ ░░░░░░██ ░██ ░██
░██ ░██ ░██ ░ ███████ ░██ ░░ ░██░███████░░░░░░░░██░██░░░██░███████ ░██ ░██░██ ░██ ░██░░█████ ░██ ███████ ░██ ░██
░░██ ██ ░██ ██░░░░██ ░██ ██ ░██░██░░░░ ░██░██ ░██░██░░░░ ░██ ░██░██ ░██ ░██ ░░░░░██ ░██ ██░░░░██ ░██ ░██
░░███████ ░███ ░░████████░░█████ ███░░██████ ████████ ░██ ░██░░██████ ███ ███░██ ███ ░██ ██████ ░░██ ░░████████ ███ ███
░░░░░░░ ░░░ ░░░░░░░░ ░░░░░ ░░░ ░░░░░░ ░░░░░░░░ ░░ ░░ ░░░░░░ ░░░ ░░░ ░░ ░░░ ░░ ░░░░░░ ░░ ░░░░░░░░ ░░░ ░░░
配置本地 YUM 源:
[server]
name=server
baseurl=file:///mnt
enabled=1
gpgcheck=0
#==============================================================#
配置 SELinux
#==============================================================#
SELINUX=disabled
SELINUXTYPE=targeted
#==============================================================#
YUM 静默安装依赖包
#==============================================================#
bc-1.06.95-13.el7.x86_64
binutils-2.27-43.base.el7.x86_64
compat-libcap1-1.10-7.el7.x86_64
package compat-libstdc++-33 is not installed
gcc-4.8.5-39.el7.x86_64
gcc-c++-4.8.5-39.el7.x86_64
elfutils-libelf-0.176-4.el7.x86_64
elfutils-libelf-devel-0.176-4.el7.x86_64
glibc-2.17-307.el7.1.x86_64
glibc-devel-2.17-307.el7.1.x86_64
libaio-0.3.109-13.el7.x86_64
libaio-devel-0.3.109-13.el7.x86_64
libgcc-4.8.5-39.el7.x86_64
libstdc++-4.8.5-39.el7.x86_64
libstdc++-devel-4.8.5-39.el7.x86_64
libxcb-1.13-1.el7.x86_64
libX11-1.6.7-2.el7.x86_64
libXau-1.0.8-2.1.el7.x86_64
libXi-1.7.9-1.el7.x86_64
libXrender-0.9.10-1.el7.x86_64
make-3.82-24.el7.x86_64
net-tools-2.0-0.25.20131004git.el7.x86_64
smartmontools-7.0-2.el7.x86_64
sysstat-10.1.5-19.el7.x86_64
e2fsprogs-1.42.9-17.el7.x86_64
e2fsprogs-libs-1.42.9-17.el7.x86_64
unzip-6.0-21.el7.x86_64
openssh-clients-7.4p1-21.el7.x86_64
readline-6.2-11.el7.x86_64
readline-devel-6.2-11.el7.x86_64
psmisc-22.20-16.el7.x86_64
ksh-20120801-142.el7.x86_64
nfs-utils-1.3.0-0.66.el7.x86_64
tar-1.26-35.el7.x86_64
device-mapper-multipath-0.4.9-131.el7.x86_64
avahi-0.6.31-20.el7.x86_64
ntp-4.2.6p5-29.el7.x86_64
package chronyd is not installed
libXtst-1.2.3-1.el7.x86_64
libXrender-devel-0.9.10-1.el7.x86_64
fontconfig-devel-2.13.0-4.3.el7.x86_64
policycoreutils-2.5-34.el7.x86_64
policycoreutils-python-2.5-34.el7.x86_64
package policycoreutils-python-utils) is not installed
#==============================================================#
配置主机名
#==============================================================#
Static hostname: luciferdb02
Icon name: computer-vm
Chassis: vm
Machine ID: 7023288668c24439a1514ac780701abe
Boot ID: d01791aefb2c47c48a4392f21c2133e7
Virtualization: vmware
Operating System: Red Hat Enterprise Linux Server 7.8 (Maipo)
CPE OS Name: cpe:/o:redhat:enterprise_linux:7.8:GA:server
Kernel: Linux 3.10.0-1127.el7.x86_64
Architecture: x86-64
#==============================================================#
配置 HOSTS 文件
#==============================================================#
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
## OracleBegin
## RAC1 IP's: luciferdb01
## RAC1 Public IP
192.168.6.31 luciferdb01
## RAC1 Virtual IP
192.168.6.51 luciferdb01-vip
## RAC1 Private IP
2.2.1.1 luciferdb01-priv
2.2.2.1 luciferdb01-priv1
## RAC2 IP's: luciferdb02
## RAC2 Public IP
192.168.6.32 luciferdb02
## RAC2 Virtual IP
192.168.6.52 luciferdb02-vip
## RAC2 Private IP
2.2.2.2 luciferdb02-priv
2.2.1.2 luciferdb02-priv1
## RAC3 IP's: luciferdb03
## RAC3 Public IP
192.168.6.33 luciferdb03
## RAC3 Virtual IP
192.168.6.53 luciferdb03-vip
## RAC3 Private IP
2.2.2.3 luciferdb03-priv
2.2.1.3 luciferdb03-priv1
## RAC4 IP's: luciferdb04
## RAC4 Public IP
192.168.6.34 luciferdb04
## RAC4 Virtual IP
192.168.6.54 luciferdb04-vip
## RAC4 Private IP
2.2.2.4 luciferdb04-priv
2.2.1.4 luciferdb04-priv1
## RAC5 IP's: luciferdb05
## RAC5 Public IP
192.168.6.35 luciferdb05
## RAC5 Virtual IP
192.168.6.55 luciferdb05-vip
## RAC5 Private IP
2.2.2.5 luciferdb05-priv
2.2.1.5 luciferdb05-priv1
## SCAN IP
192.168.6.50 luciferdb-scan
#==============================================================#
创建用户和组
#==============================================================#
uid=11012(grid) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba),54327(asmdba),54328(asmoper),54329(asmadmin)
#==============================================================#
Avahi-daemon 状态
#==============================================================#
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; disabled; vendor preset: enabled)
Active: inactive (dead)
#==============================================================#
配置透明大页 && NUMA && 磁盘 IO 调度器
#==============================================================#
args="ro rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet LANG=en_US.UTF-8 numa=off transparent_hugepage=never elevator=deadline"
-rd.lvm.lv=rhel/root
-args="ro
args="ro rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet numa=off transparent_hugepage=never elevator=deadline"
-elevator=deadline"
-transparent_hugepage=never
#==============================================================#
配置 sysctl.conf
#==============================================================#
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 8369389567
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 = 1048576
vm.min_free_kbytes = 32692
net.ipv4.conf.ens192.rp_filter = 1
net.ipv4.conf.ens224.rp_filter = 2
net.ipv4.conf.ens256.rp_filter = 2
#==============================================================#
配置 nsysctl.conf
#==============================================================#
# Created by anaconda
NOZEROCONF=yes
#==============================================================#
配置 /etc/security/limits.conf
#==============================================================#
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768
oracle soft nproc 2047
oracle hard nproc 16384
oracle hard memlock unlimited
oracle soft memlock unlimited
grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240
grid hard stack 32768
grid soft nproc 2047
grid hard nproc 16384
#==============================================================#
配置 /etc/pam.d/login
#==============================================================#
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth substack system-auth
auth include postlogin
account required pam_nologin.so
account include system-auth
password include system-auth
session required pam_selinux.so close
session required pam_loginuid.so
session optional pam_console.so
session required pam_selinux.so open
session required pam_namespace.so
session optional pam_keyinit.so force revoke
session include system-auth
session include postlogin
-session optional pam_ck_connector.so
session required pam_limits.so
session required /lib64/security/pam_limits.so
#==============================================================#
配置 /dev/shm
#==============================================================#
/dev/mapper/rhel-root / xfs defaults 0 0
UUID=7c2bbcd9-a8d3-4c6f-a8a2-486e6907ad84 /boot xfs defaults 0 0
/dev/mapper/rhel-swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs size=8173232k 0 0
#==============================================================#
安装 rlwrap
#==============================================================#
成功安装 rlwrap: rlwrap 0.42
#==============================================================#
Root 用户环境变量
#==============================================================#
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/bin
export PATH
alias so='su - oracle'
export PS1="[`whoami`@`hostname`:"'\w]# '
alias sg='su - grid'
alias crsctl='/u01/app/11.2.0/grid/bin/crsctl'
alias srvctl='/u01/app/11.2.0/grid/bin/srvctl'
#==============================================================#
Oracle 用户环境变量
#==============================================================#
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
umask 022
export TMP=/tmp
export TMPDIR=$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=oradb2
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/perl/bin:$PATH
export PERL5LIB=$ORACLE_HOME/perl/lib
alias sas='sqlplus / as sysdba'
alias awr='sqlplus / as sysdba @?/rdbms/admin/awrrpt'
alias ash='sqlplus / as sysdba @?/rdbms/admin/ashrpt'
alias alert='vi $ORACLE_BASE/diag/rdbms/*/$ORACLE_SID/trace/alert_$ORACLE_SID.log'
export PS1="[`whoami`@`hostname`:"'\w]$ '
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias adrci='rlwrap adrci'
#==============================================================#
Grid 用户环境变量
#==============================================================#
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
umask 022
export TMP=/tmp
export TMPDIR=$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/11.2.0/grid
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=+ASM2
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
alias sas='sqlplus / as sysasm'
export PS1="[`whoami`@`hostname`:"'\w]$ '
alias sqlplus='rlwrap sqlplus'
alias asmcmd='rlwrap asmcmd'
alias adrci='rlwrap adrci'
#==============================================================#
配置时间同步
#==============================================================#
Created symlink from /etc/systemd/system/multi-user.target.wants/ntpd.service to /usr/lib/systemd/system/ntpd.service.
#==============================================================#
NTP 检查
#==============================================================#
remote refid st t when poll reach delay offset jitter
==============================================================================
202.112.10.36 .INIT. 16 u - 64 0 0.000 0.000 0.001
#==============================================================#
多路径信息
#==============================================================#
create: asm_ocr_1 (2d7490d9f98a4dd33) undef ROCKET ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:0 sdb 8:16 undef ready running
create: asm_ocr_2 (29d556de9c0521353) undef ROCKET ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:1 sdc 8:32 undef ready running
create: asm_ocr_3 (22a3d603188b7e7ac) undef ROCKET ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:2 sdd 8:48 undef ready running
create: asm_data_1 (2efbc650f3322eb34) undef ROCKET ,IMAGEFILE
size=50G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:3 sde 8:64 undef ready running
create: asm_data_2 (228a97913b281ad29) undef ROCKET ,IMAGEFILE
size=50G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:4 sdf 8:80 undef ready running
#==============================================================#
UDEV 配置文件
#==============================================================#
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-2d7490d9f98a4dd33",SYMLINK+="asm_ocr_1",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-29d556de9c0521353",SYMLINK+="asm_ocr_2",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-22a3d603188b7e7ac",SYMLINK+="asm_ocr_3",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-2efbc650f3322eb34",SYMLINK+="asm_data_1",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-228a97913b281ad29",SYMLINK+="asm_data_2",OWNER="grid",GROUP="asmadmin",MODE="0660"
UDEV 已加载成功。
#==============================================================#
ASM 磁盘信息
#==============================================================#
/dev/asm_data_1
/dev/asm_data_2
/dev/asm_ocr_1
/dev/asm_ocr_2
/dev/asm_ocr_3
配置 RAC 节点:192.168.6.32 结束!
#==============================================================#
配置 RAC 节点:192.168.6.33
#==============================================================#
正在节点:192.168.6.33 上执行脚本:
███████ ██ ████████ ██ ██ ██ ██ ██ ██ ██
██░░░░░██ ░██ ██░░░░░░ ░██ ░██ ░██░██ ░██ ░██ ░██
██ ░░██ ██████ ██████ █████ ░██ █████ ░██ ░██ █████ ░██ ░██░██ ███████ ██████ ██████ ██████ ░██ ░██
░██ ░██░░██░░█ ░░░░░░██ ██░░░██ ░██ ██░░░██░█████████░██████ ██░░░██ ░██ ░██░██░░██░░░██ ██░░░░ ░░░██░ ░░░░░░██ ░██ ░██
░██ ░██ ░██ ░ ███████ ░██ ░░ ░██░███████░░░░░░░░██░██░░░██░███████ ░██ ░██░██ ░██ ░██░░█████ ░██ ███████ ░██ ░██
░░██ ██ ░██ ██░░░░██ ░██ ██ ░██░██░░░░ ░██░██ ░██░██░░░░ ░██ ░██░██ ░██ ░██ ░░░░░██ ░██ ██░░░░██ ░██ ░██
░░███████ ░███ ░░████████░░█████ ███░░██████ ████████ ░██ ░██░░██████ ███ ███░██ ███ ░██ ██████ ░░██ ░░████████ ███ ███
░░░░░░░ ░░░ ░░░░░░░░ ░░░░░ ░░░ ░░░░░░ ░░░░░░░░ ░░ ░░ ░░░░░░ ░░░ ░░░ ░░ ░░░ ░░ ░░░░░░ ░░ ░░░░░░░░ ░░░ ░░░
配置本地 YUM 源:
[server]
name=server
baseurl=file:///mnt
enabled=1
gpgcheck=0
#==============================================================#
配置 SELinux
#==============================================================#
SELINUX=disabled
SELINUXTYPE=targeted
#==============================================================#
YUM 静默安装依赖包
#==============================================================#
bc-1.06.95-13.el7.x86_64
binutils-2.27-43.base.el7.x86_64
compat-libcap1-1.10-7.el7.x86_64
package compat-libstdc++-33 is not installed
gcc-4.8.5-39.el7.x86_64
gcc-c++-4.8.5-39.el7.x86_64
elfutils-libelf-0.176-4.el7.x86_64
elfutils-libelf-devel-0.176-4.el7.x86_64
glibc-2.17-307.el7.1.x86_64
glibc-devel-2.17-307.el7.1.x86_64
libaio-0.3.109-13.el7.x86_64
libaio-devel-0.3.109-13.el7.x86_64
libgcc-4.8.5-39.el7.x86_64
libstdc++-4.8.5-39.el7.x86_64
libstdc++-devel-4.8.5-39.el7.x86_64
libxcb-1.13-1.el7.x86_64
libX11-1.6.7-2.el7.x86_64
libXau-1.0.8-2.1.el7.x86_64
libXi-1.7.9-1.el7.x86_64
libXrender-0.9.10-1.el7.x86_64
make-3.82-24.el7.x86_64
net-tools-2.0-0.25.20131004git.el7.x86_64
smartmontools-7.0-2.el7.x86_64
sysstat-10.1.5-19.el7.x86_64
e2fsprogs-1.42.9-17.el7.x86_64
e2fsprogs-libs-1.42.9-17.el7.x86_64
unzip-6.0-21.el7.x86_64
openssh-clients-7.4p1-21.el7.x86_64
readline-6.2-11.el7.x86_64
readline-devel-6.2-11.el7.x86_64
psmisc-22.20-16.el7.x86_64
ksh-20120801-142.el7.x86_64
nfs-utils-1.3.0-0.66.el7.x86_64
tar-1.26-35.el7.x86_64
device-mapper-multipath-0.4.9-131.el7.x86_64
avahi-0.6.31-20.el7.x86_64
ntp-4.2.6p5-29.el7.x86_64
package chronyd is not installed
libXtst-1.2.3-1.el7.x86_64
libXrender-devel-0.9.10-1.el7.x86_64
fontconfig-devel-2.13.0-4.3.el7.x86_64
policycoreutils-2.5-34.el7.x86_64
policycoreutils-python-2.5-34.el7.x86_64
package policycoreutils-python-utils) is not installed
#==============================================================#
配置主机名
#==============================================================#
Static hostname: luciferdb03
Icon name: computer-vm
Chassis: vm
Machine ID: 724a2c2cf20045c5a50e8cbee5982411
Boot ID: 6947165888e94b7fb9a3eb4e6edfd916
Virtualization: vmware
Operating System: Red Hat Enterprise Linux Server 7.8 (Maipo)
CPE OS Name: cpe:/o:redhat:enterprise_linux:7.8:GA:server
Kernel: Linux 3.10.0-1127.el7.x86_64
Architecture: x86-64
#==============================================================#
配置 HOSTS 文件
#==============================================================#
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
## OracleBegin
## RAC1 IP's: luciferdb01
## RAC1 Public IP
192.168.6.31 luciferdb01
## RAC1 Virtual IP
192.168.6.51 luciferdb01-vip
## RAC1 Private IP
2.2.1.1 luciferdb01-priv
2.2.2.1 luciferdb01-priv1
## RAC2 IP's: luciferdb02
## RAC2 Public IP
192.168.6.32 luciferdb02
## RAC2 Virtual IP
192.168.6.52 luciferdb02-vip
## RAC2 Private IP
2.2.2.2 luciferdb02-priv
2.2.1.2 luciferdb02-priv1
## RAC3 IP's: luciferdb03
## RAC3 Public IP
192.168.6.33 luciferdb03
## RAC3 Virtual IP
192.168.6.53 luciferdb03-vip
## RAC3 Private IP
2.2.2.3 luciferdb03-priv
2.2.1.3 luciferdb03-priv1
## RAC4 IP's: luciferdb04
## RAC4 Public IP
192.168.6.34 luciferdb04
## RAC4 Virtual IP
192.168.6.54 luciferdb04-vip
## RAC4 Private IP
2.2.2.4 luciferdb04-priv
2.2.1.4 luciferdb04-priv1
## RAC5 IP's: luciferdb05
## RAC5 Public IP
192.168.6.35 luciferdb05
## RAC5 Virtual IP
192.168.6.55 luciferdb05-vip
## RAC5 Private IP
2.2.2.5 luciferdb05-priv
2.2.1.5 luciferdb05-priv1
## SCAN IP
192.168.6.50 luciferdb-scan
#==============================================================#
创建用户和组
#==============================================================#
uid=11012(grid) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba),54327(asmdba),54328(asmoper),54329(asmadmin)
#==============================================================#
Avahi-daemon 状态
#==============================================================#
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; disabled; vendor preset: enabled)
Active: inactive (dead)
May 04 17:53:30 lucifer03 avahi-daemon[907]: New relevant interface ens256.IPv4 for mDNS.
May 04 17:53:30 lucifer03 avahi-daemon[907]: Registering new address record for 2.2.2.3 on ens256.IPv4.
May 04 18:00:02 luciferdb03 avahi-daemon[907]: Got SIGTERM, quitting.
May 04 18:00:02 luciferdb03 systemd[1]: Stopping Avahi mDNS/DNS-SD Stack...
May 04 18:00:02 luciferdb03 avahi-daemon[907]: Leaving mDNS multicast group on interface virbr0.IPv4 with address 192.168.122.1.
May 04 18:00:02 luciferdb03 avahi-daemon[907]: Leaving mDNS multicast group on interface ens256.IPv4 with address 2.2.2.3.
May 04 18:00:02 luciferdb03 avahi-daemon[907]: Leaving mDNS multicast group on interface ens224.IPv4 with address 2.2.1.3.
May 04 18:00:02 luciferdb03 avahi-daemon[907]: Leaving mDNS multicast group on interface ens192.IPv4 with address 192.168.6.33.
May 04 18:00:02 luciferdb03 avahi-daemon[907]: avahi-daemon 0.6.31 exiting.
May 04 18:00:02 luciferdb03 systemd[1]: Stopped Avahi mDNS/DNS-SD Stack.
#==============================================================#
配置透明大页 && NUMA && 磁盘 IO 调度器
#==============================================================#
args="ro rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet LANG=en_US.UTF-8 numa=off transparent_hugepage=never elevator=deadline"
-rd.lvm.lv=rhel/root
-args="ro
args="ro rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet numa=off transparent_hugepage=never elevator=deadline"
-elevator=deadline"
-transparent_hugepage=never
#==============================================================#
配置 sysctl.conf
#==============================================================#
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 8370016255
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 = 1048576
vm.min_free_kbytes = 32695
net.ipv4.conf.ens192.rp_filter = 1
net.ipv4.conf.ens224.rp_filter = 2
net.ipv4.conf.ens256.rp_filter = 2
#==============================================================#
配置 nsysctl.conf
#==============================================================#
# Created by anaconda
NOZEROCONF=yes
#==============================================================#
配置 /etc/security/limits.conf
#==============================================================#
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768
oracle soft nproc 2047
oracle hard nproc 16384
oracle hard memlock unlimited
oracle soft memlock unlimited
grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240
grid hard stack 32768
grid soft nproc 2047
grid hard nproc 16384
#==============================================================#
配置 /etc/pam.d/login
#==============================================================#
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth substack system-auth
auth include postlogin
account required pam_nologin.so
account include system-auth
password include system-auth
session required pam_selinux.so close
session required pam_loginuid.so
session optional pam_console.so
session required pam_selinux.so open
session required pam_namespace.so
session optional pam_keyinit.so force revoke
session include system-auth
session include postlogin
-session optional pam_ck_connector.so
session required pam_limits.so
session required /lib64/security/pam_limits.so
#==============================================================#
配置 /dev/shm
#==============================================================#
/dev/mapper/rhel-root / xfs defaults 0 0
UUID=ff1a641a-a4df-497c-9371-c1acdc2c078f /boot xfs defaults 0 0
/dev/mapper/rhel-swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs size=8173844k 0 0
#==============================================================#
安装 rlwrap
#==============================================================#
成功安装 rlwrap: rlwrap 0.42
#==============================================================#
Root 用户环境变量
#==============================================================#
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/bin
export PATH
alias so='su - oracle'
export PS1="[`whoami`@`hostname`:"'\w]# '
alias sg='su - grid'
alias crsctl='/u01/app/11.2.0/grid/bin/crsctl'
alias srvctl='/u01/app/11.2.0/grid/bin/srvctl'
#==============================================================#
Oracle 用户环境变量
#==============================================================#
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
umask 022
export TMP=/tmp
export TMPDIR=$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=oradb3
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/perl/bin:$PATH
export PERL5LIB=$ORACLE_HOME/perl/lib
alias sas='sqlplus / as sysdba'
alias awr='sqlplus / as sysdba @?/rdbms/admin/awrrpt'
alias ash='sqlplus / as sysdba @?/rdbms/admin/ashrpt'
alias alert='vi $ORACLE_BASE/diag/rdbms/*/$ORACLE_SID/trace/alert_$ORACLE_SID.log'
export PS1="[`whoami`@`hostname`:"'\w]$ '
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias adrci='rlwrap adrci'
#==============================================================#
Grid 用户环境变量
#==============================================================#
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
umask 022
export TMP=/tmp
export TMPDIR=$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/11.2.0/grid
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=+ASM3
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
alias sas='sqlplus / as sysasm'
export PS1="[`whoami`@`hostname`:"'\w]$ '
alias sqlplus='rlwrap sqlplus'
alias asmcmd='rlwrap asmcmd'
alias adrci='rlwrap adrci'
#==============================================================#
配置时间同步
#==============================================================#
Created symlink from /etc/systemd/system/multi-user.target.wants/ntpd.service to /usr/lib/systemd/system/ntpd.service.
#==============================================================#
NTP 检查
#==============================================================#
remote refid st t when poll reach delay offset jitter
==============================================================================
202.112.10.36 .INIT. 16 u - 64 0 0.000 0.000 0.001
#==============================================================#
多路径信息
#==============================================================#
create: asm_ocr_1 (2d7490d9f98a4dd33) undef ROCKET ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:0 sdb 8:16 undef ready running
create: asm_ocr_2 (29d556de9c0521353) undef ROCKET ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:1 sdc 8:32 undef ready running
create: asm_ocr_3 (22a3d603188b7e7ac) undef ROCKET ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:2 sdd 8:48 undef ready running
create: asm_data_1 (2efbc650f3322eb34) undef ROCKET ,IMAGEFILE
size=50G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:3 sde 8:64 undef ready running
create: asm_data_2 (228a97913b281ad29) undef ROCKET ,IMAGEFILE
size=50G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:4 sdf 8:80 undef ready running
#==============================================================#
UDEV 配置文件
#==============================================================#
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-2d7490d9f98a4dd33",SYMLINK+="asm_ocr_1",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-29d556de9c0521353",SYMLINK+="asm_ocr_2",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-22a3d603188b7e7ac",SYMLINK+="asm_ocr_3",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-2efbc650f3322eb34",SYMLINK+="asm_data_1",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-228a97913b281ad29",SYMLINK+="asm_data_2",OWNER="grid",GROUP="asmadmin",MODE="0660"
UDEV 已加载成功。
#==============================================================#
ASM 磁盘信息
#==============================================================#
/dev/asm_data_1
/dev/asm_data_2
/dev/asm_ocr_1
/dev/asm_ocr_2
/dev/asm_ocr_3
配置 RAC 节点:192.168.6.33 结束!
#==============================================================#
配置 RAC 节点:192.168.6.34
#==============================================================#
正在节点:192.168.6.34 上执行脚本:
███████ ██ ████████ ██ ██ ██ ██ ██ ██ ██
██░░░░░██ ░██ ██░░░░░░ ░██ ░██ ░██░██ ░██ ░██ ░██
██ ░░██ ██████ ██████ █████ ░██ █████ ░██ ░██ █████ ░██ ░██░██ ███████ ██████ ██████ ██████ ░██ ░██
░██ ░██░░██░░█ ░░░░░░██ ██░░░██ ░██ ██░░░██░█████████░██████ ██░░░██ ░██ ░██░██░░██░░░██ ██░░░░ ░░░██░ ░░░░░░██ ░██ ░██
░██ ░██ ░██ ░ ███████ ░██ ░░ ░██░███████░░░░░░░░██░██░░░██░███████ ░██ ░██░██ ░██ ░██░░█████ ░██ ███████ ░██ ░██
░░██ ██ ░██ ██░░░░██ ░██ ██ ░██░██░░░░ ░██░██ ░██░██░░░░ ░██ ░██░██ ░██ ░██ ░░░░░██ ░██ ██░░░░██ ░██ ░██
░░███████ ░███ ░░████████░░█████ ███░░██████ ████████ ░██ ░██░░██████ ███ ███░██ ███ ░██ ██████ ░░██ ░░████████ ███ ███
░░░░░░░ ░░░ ░░░░░░░░ ░░░░░ ░░░ ░░░░░░ ░░░░░░░░ ░░ ░░ ░░░░░░ ░░░ ░░░ ░░ ░░░ ░░ ░░░░░░ ░░ ░░░░░░░░ ░░░ ░░░
配置本地 YUM 源:
[server]
name=server
baseurl=file:///mnt
enabled=1
gpgcheck=0
#==============================================================#
配置 SELinux
#==============================================================#
SELINUX=disabled
SELINUXTYPE=targeted
#==============================================================#
YUM 静默安装依赖包
#==============================================================#
bc-1.06.95-13.el7.x86_64
binutils-2.27-43.base.el7.x86_64
compat-libcap1-1.10-7.el7.x86_64
package compat-libstdc++-33 is not installed
gcc-4.8.5-39.el7.x86_64
gcc-c++-4.8.5-39.el7.x86_64
elfutils-libelf-0.176-4.el7.x86_64
elfutils-libelf-devel-0.176-4.el7.x86_64
glibc-2.17-307.el7.1.x86_64
glibc-devel-2.17-307.el7.1.x86_64
libaio-0.3.109-13.el7.x86_64
libaio-devel-0.3.109-13.el7.x86_64
libgcc-4.8.5-39.el7.x86_64
libstdc++-4.8.5-39.el7.x86_64
libstdc++-devel-4.8.5-39.el7.x86_64
libxcb-1.13-1.el7.x86_64
libX11-1.6.7-2.el7.x86_64
libXau-1.0.8-2.1.el7.x86_64
libXi-1.7.9-1.el7.x86_64
libXrender-0.9.10-1.el7.x86_64
make-3.82-24.el7.x86_64
net-tools-2.0-0.25.20131004git.el7.x86_64
smartmontools-7.0-2.el7.x86_64
sysstat-10.1.5-19.el7.x86_64
e2fsprogs-1.42.9-17.el7.x86_64
e2fsprogs-libs-1.42.9-17.el7.x86_64
unzip-6.0-21.el7.x86_64
openssh-clients-7.4p1-21.el7.x86_64
readline-6.2-11.el7.x86_64
readline-devel-6.2-11.el7.x86_64
psmisc-22.20-16.el7.x86_64
ksh-20120801-142.el7.x86_64
nfs-utils-1.3.0-0.66.el7.x86_64
tar-1.26-35.el7.x86_64
device-mapper-multipath-0.4.9-131.el7.x86_64
avahi-0.6.31-20.el7.x86_64
ntp-4.2.6p5-29.el7.x86_64
package chronyd is not installed
libXtst-1.2.3-1.el7.x86_64
libXrender-devel-0.9.10-1.el7.x86_64
fontconfig-devel-2.13.0-4.3.el7.x86_64
policycoreutils-2.5-34.el7.x86_64
policycoreutils-python-2.5-34.el7.x86_64
package policycoreutils-python-utils) is not installed
#==============================================================#
配置主机名
#==============================================================#
Static hostname: luciferdb04
Icon name: computer-vm
Chassis: vm
Machine ID: 716b4ed4547946529219b5abcdf3f70b
Boot ID: 27c2685c6f34474baf54d4fffe8c2f8d
Virtualization: vmware
Operating System: Red Hat Enterprise Linux Server 7.8 (Maipo)
CPE OS Name: cpe:/o:redhat:enterprise_linux:7.8:GA:server
Kernel: Linux 3.10.0-1127.el7.x86_64
Architecture: x86-64
#==============================================================#
配置 HOSTS 文件
#==============================================================#
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
## OracleBegin
## RAC1 IP's: luciferdb01
## RAC1 Public IP
192.168.6.31 luciferdb01
## RAC1 Virtual IP
192.168.6.51 luciferdb01-vip
## RAC1 Private IP
2.2.1.1 luciferdb01-priv
2.2.2.1 luciferdb01-priv1
## RAC2 IP's: luciferdb02
## RAC2 Public IP
192.168.6.32 luciferdb02
## RAC2 Virtual IP
192.168.6.52 luciferdb02-vip
## RAC2 Private IP
2.2.2.2 luciferdb02-priv
2.2.1.2 luciferdb02-priv1
## RAC3 IP's: luciferdb03
## RAC3 Public IP
192.168.6.33 luciferdb03
## RAC3 Virtual IP
192.168.6.53 luciferdb03-vip
## RAC3 Private IP
2.2.2.3 luciferdb03-priv
2.2.1.3 luciferdb03-priv1
## RAC4 IP's: luciferdb04
## RAC4 Public IP
192.168.6.34 luciferdb04
## RAC4 Virtual IP
192.168.6.54 luciferdb04-vip
## RAC4 Private IP
2.2.2.4 luciferdb04-priv
2.2.1.4 luciferdb04-priv1
## RAC5 IP's: luciferdb05
## RAC5 Public IP
192.168.6.35 luciferdb05
## RAC5 Virtual IP
192.168.6.55 luciferdb05-vip
## RAC5 Private IP
2.2.2.5 luciferdb05-priv
2.2.1.5 luciferdb05-priv1
## SCAN IP
192.168.6.50 luciferdb-scan
#==============================================================#
创建用户和组
#==============================================================#
uid=11012(grid) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba),54327(asmdba),54328(asmoper),54329(asmadmin)
#==============================================================#
Avahi-daemon 状态
#==============================================================#
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; disabled; vendor preset: enabled)
Active: inactive (dead)
May 04 17:51:31 lucifer04 avahi-daemon[959]: Registering new address record for fe80::f08d:ddd2:1257:5ccd on ens256.*.
May 04 17:51:31 lucifer04 avahi-daemon[959]: Joining mDNS multicast group on interface ens256.IPv4 with address 2.2.2.4.
May 04 17:51:31 lucifer04 avahi-daemon[959]: New relevant interface ens256.IPv4 for mDNS.
May 04 17:51:31 lucifer04 avahi-daemon[959]: Registering new address record for 2.2.2.4 on ens256.IPv4.
May 04 18:01:01 luciferdb04 avahi-daemon[959]: Got SIGTERM, quitting.
May 04 18:01:01 luciferdb04 systemd[1]: Stopping Avahi mDNS/DNS-SD Stack...
May 04 18:01:01 luciferdb04 avahi-daemon[959]: Leaving mDNS multicast group on interface virbr0.IPv4 with address 192.168.122.1.
May 04 18:01:01 luciferdb04 avahi-daemon[959]: Leaving mDNS multicast group on interface ens256.IPv4 with address 2.2.2.4.
May 04 18:01:01 luciferdb04 avahi-daemon[959]: Leaving mDNS multicast group on interface ens224.IPv4 with address 2.2.1.4.
May 04 18:01:01 luciferdb04 systemd[1]: Stopped Avahi mDNS/DNS-SD Stack.
#==============================================================#
配置透明大页 && NUMA && 磁盘 IO 调度器
#==============================================================#
args="ro rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet LANG=en_US.UTF-8 numa=off transparent_hugepage=never elevator=deadline"
-rd.lvm.lv=rhel/root
-args="ro
args="ro rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet numa=off transparent_hugepage=never elevator=deadline"
-elevator=deadline"
-transparent_hugepage=never
#==============================================================#
配置 sysctl.conf
#==============================================================#
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 8370012159
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 = 1048576
vm.min_free_kbytes = 32695
net.ipv4.conf.ens192.rp_filter = 1
net.ipv4.conf.ens224.rp_filter = 2
net.ipv4.conf.ens256.rp_filter = 2
#==============================================================#
配置 nsysctl.conf
#==============================================================#
# Created by anaconda
NOZEROCONF=yes
#==============================================================#
配置 /etc/security/limits.conf
#==============================================================#
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768
oracle soft nproc 2047
oracle hard nproc 16384
oracle hard memlock unlimited
oracle soft memlock unlimited
grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240
grid hard stack 32768
grid soft nproc 2047
grid hard nproc 16384
#==============================================================#
配置 /etc/pam.d/login
#==============================================================#
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth substack system-auth
auth include postlogin
account required pam_nologin.so
account include system-auth
password include system-auth
session required pam_selinux.so close
session required pam_loginuid.so
session optional pam_console.so
session required pam_selinux.so open
session required pam_namespace.so
session optional pam_keyinit.so force revoke
session include system-auth
session include postlogin
-session optional pam_ck_connector.so
session required pam_limits.so
session required /lib64/security/pam_limits.so
#==============================================================#
配置 /dev/shm
#==============================================================#
/dev/mapper/rhel-root / xfs defaults 0 0
UUID=a4eeb7a6-9f11-4b60-8c45-0a06764f93c1 /boot xfs defaults 0 0
/dev/mapper/rhel-swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs size=8173840k 0 0
#==============================================================#
安装 rlwrap
#==============================================================#
成功安装 rlwrap: rlwrap 0.42
#==============================================================#
Root 用户环境变量
#==============================================================#
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/bin
export PATH
alias so='su - oracle'
export PS1="[`whoami`@`hostname`:"'\w]# '
alias sg='su - grid'
alias crsctl='/u01/app/11.2.0/grid/bin/crsctl'
alias srvctl='/u01/app/11.2.0/grid/bin/srvctl'
#==============================================================#
Oracle 用户环境变量
#==============================================================#
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
umask 022
export TMP=/tmp
export TMPDIR=$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=oradb4
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/perl/bin:$PATH
export PERL5LIB=$ORACLE_HOME/perl/lib
alias sas='sqlplus / as sysdba'
alias awr='sqlplus / as sysdba @?/rdbms/admin/awrrpt'
alias ash='sqlplus / as sysdba @?/rdbms/admin/ashrpt'
alias alert='vi $ORACLE_BASE/diag/rdbms/*/$ORACLE_SID/trace/alert_$ORACLE_SID.log'
export PS1="[`whoami`@`hostname`:"'\w]$ '
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias adrci='rlwrap adrci'
#==============================================================#
Grid 用户环境变量
#==============================================================#
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
umask 022
export TMP=/tmp
export TMPDIR=$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/11.2.0/grid
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=+ASM4
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
alias sas='sqlplus / as sysasm'
export PS1="[`whoami`@`hostname`:"'\w]$ '
alias sqlplus='rlwrap sqlplus'
alias asmcmd='rlwrap asmcmd'
alias adrci='rlwrap adrci'
#==============================================================#
配置时间同步
#==============================================================#
Created symlink from /etc/systemd/system/multi-user.target.wants/ntpd.service to /usr/lib/systemd/system/ntpd.service.
#==============================================================#
NTP 检查
#==============================================================#
remote refid st t when poll reach delay offset jitter
==============================================================================
202.112.10.36 .INIT. 16 u - 64 0 0.000 0.000 0.001
#==============================================================#
多路径信息
#==============================================================#
create: asm_ocr_1 (2d7490d9f98a4dd33) undef ROCKET ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:0 sdb 8:16 undef ready running
create: asm_ocr_2 (29d556de9c0521353) undef ROCKET ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:1 sdc 8:32 undef ready running
create: asm_ocr_3 (22a3d603188b7e7ac) undef ROCKET ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:2 sdd 8:48 undef ready running
create: asm_data_1 (2efbc650f3322eb34) undef ROCKET ,IMAGEFILE
size=50G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:3 sde 8:64 undef ready running
create: asm_data_2 (228a97913b281ad29) undef ROCKET ,IMAGEFILE
size=50G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:4 sdf 8:80 undef ready running
#==============================================================#
UDEV 配置文件
#==============================================================#
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-2d7490d9f98a4dd33",SYMLINK+="asm_ocr_1",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-29d556de9c0521353",SYMLINK+="asm_ocr_2",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-22a3d603188b7e7ac",SYMLINK+="asm_ocr_3",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-2efbc650f3322eb34",SYMLINK+="asm_data_1",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-228a97913b281ad29",SYMLINK+="asm_data_2",OWNER="grid",GROUP="asmadmin",MODE="0660"
UDEV 已加载成功。
#==============================================================#
ASM 磁盘信息
#==============================================================#
/dev/asm_data_1
/dev/asm_data_2
/dev/asm_ocr_1
/dev/asm_ocr_2
/dev/asm_ocr_3
配置 RAC 节点:192.168.6.34 结束!
#==============================================================#
配置 RAC 节点:192.168.6.35
#==============================================================#
正在节点:192.168.6.35 上执行脚本:
███████ ██ ████████ ██ ██ ██ ██ ██ ██ ██
██░░░░░██ ░██ ██░░░░░░ ░██ ░██ ░██░██ ░██ ░██ ░██
██ ░░██ ██████ ██████ █████ ░██ █████ ░██ ░██ █████ ░██ ░██░██ ███████ ██████ ██████ ██████ ░██ ░██
░██ ░██░░██░░█ ░░░░░░██ ██░░░██ ░██ ██░░░██░█████████░██████ ██░░░██ ░██ ░██░██░░██░░░██ ██░░░░ ░░░██░ ░░░░░░██ ░██ ░██
░██ ░██ ░██ ░ ███████ ░██ ░░ ░██░███████░░░░░░░░██░██░░░██░███████ ░██ ░██░██ ░██ ░██░░█████ ░██ ███████ ░██ ░██
░░██ ██ ░██ ██░░░░██ ░██ ██ ░██░██░░░░ ░██░██ ░██░██░░░░ ░██ ░██░██ ░██ ░██ ░░░░░██ ░██ ██░░░░██ ░██ ░██
░░███████ ░███ ░░████████░░█████ ███░░██████ ████████ ░██ ░██░░██████ ███ ███░██ ███ ░██ ██████ ░░██ ░░████████ ███ ███
░░░░░░░ ░░░ ░░░░░░░░ ░░░░░ ░░░ ░░░░░░ ░░░░░░░░ ░░ ░░ ░░░░░░ ░░░ ░░░ ░░ ░░░ ░░ ░░░░░░ ░░ ░░░░░░░░ ░░░ ░░░
配置本地 YUM 源:
[server]
name=server
baseurl=file:///mnt
enabled=1
gpgcheck=0
#==============================================================#
配置 SELinux
#==============================================================#
SELINUX=disabled
SELINUXTYPE=targeted
#==============================================================#
YUM 静默安装依赖包
#==============================================================#
bc-1.06.95-13.el7.x86_64
binutils-2.27-43.base.el7.x86_64
compat-libcap1-1.10-7.el7.x86_64
package compat-libstdc++-33 is not installed
gcc-4.8.5-39.el7.x86_64
gcc-c++-4.8.5-39.el7.x86_64
elfutils-libelf-0.176-4.el7.x86_64
elfutils-libelf-devel-0.176-4.el7.x86_64
glibc-2.17-307.el7.1.x86_64
glibc-devel-2.17-307.el7.1.x86_64
libaio-0.3.109-13.el7.x86_64
libaio-devel-0.3.109-13.el7.x86_64
libgcc-4.8.5-39.el7.x86_64
libstdc++-4.8.5-39.el7.x86_64
libstdc++-devel-4.8.5-39.el7.x86_64
libxcb-1.13-1.el7.x86_64
libX11-1.6.7-2.el7.x86_64
libXau-1.0.8-2.1.el7.x86_64
libXi-1.7.9-1.el7.x86_64
libXrender-0.9.10-1.el7.x86_64
make-3.82-24.el7.x86_64
net-tools-2.0-0.25.20131004git.el7.x86_64
smartmontools-7.0-2.el7.x86_64
sysstat-10.1.5-19.el7.x86_64
e2fsprogs-1.42.9-17.el7.x86_64
e2fsprogs-libs-1.42.9-17.el7.x86_64
unzip-6.0-21.el7.x86_64
openssh-clients-7.4p1-21.el7.x86_64
readline-6.2-11.el7.x86_64
readline-devel-6.2-11.el7.x86_64
psmisc-22.20-16.el7.x86_64
ksh-20120801-142.el7.x86_64
nfs-utils-1.3.0-0.66.el7.x86_64
tar-1.26-35.el7.x86_64
device-mapper-multipath-0.4.9-131.el7.x86_64
avahi-0.6.31-20.el7.x86_64
ntp-4.2.6p5-29.el7.x86_64
package chronyd is not installed
libXtst-1.2.3-1.el7.x86_64
libXrender-devel-0.9.10-1.el7.x86_64
fontconfig-devel-2.13.0-4.3.el7.x86_64
policycoreutils-2.5-34.el7.x86_64
policycoreutils-python-2.5-34.el7.x86_64
package policycoreutils-python-utils) is not installed
#==============================================================#
配置主机名
#==============================================================#
Static hostname: luciferdb05
Icon name: computer-vm
Chassis: vm
Machine ID: d5f34781900f43b78b5c2ace1e48e7a4
Boot ID: efe84f48c36f462ea927df3638b4fb01
Virtualization: vmware
Operating System: Red Hat Enterprise Linux Server 7.8 (Maipo)
CPE OS Name: cpe:/o:redhat:enterprise_linux:7.8:GA:server
Kernel: Linux 3.10.0-1127.el7.x86_64
Architecture: x86-64
#==============================================================#
配置 HOSTS 文件
#==============================================================#
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
## OracleBegin
## RAC1 IP's: luciferdb01
## RAC1 Public IP
192.168.6.31 luciferdb01
## RAC1 Virtual IP
192.168.6.51 luciferdb01-vip
## RAC1 Private IP
2.2.1.1 luciferdb01-priv
2.2.2.1 luciferdb01-priv1
## RAC2 IP's: luciferdb02
## RAC2 Public IP
192.168.6.32 luciferdb02
## RAC2 Virtual IP
192.168.6.52 luciferdb02-vip
## RAC2 Private IP
2.2.2.2 luciferdb02-priv
2.2.1.2 luciferdb02-priv1
## RAC3 IP's: luciferdb03
## RAC3 Public IP
192.168.6.33 luciferdb03
## RAC3 Virtual IP
192.168.6.53 luciferdb03-vip
## RAC3 Private IP
2.2.2.3 luciferdb03-priv
2.2.1.3 luciferdb03-priv1
## RAC4 IP's: luciferdb04
## RAC4 Public IP
192.168.6.34 luciferdb04
## RAC4 Virtual IP
192.168.6.54 luciferdb04-vip
## RAC4 Private IP
2.2.2.4 luciferdb04-priv
2.2.1.4 luciferdb04-priv1
## RAC5 IP's: luciferdb05
## RAC5 Public IP
192.168.6.35 luciferdb05
## RAC5 Virtual IP
192.168.6.55 luciferdb05-vip
## RAC5 Private IP
2.2.2.5 luciferdb05-priv
2.2.1.5 luciferdb05-priv1
## SCAN IP
192.168.6.50 luciferdb-scan
#==============================================================#
创建用户和组
#==============================================================#
uid=11012(grid) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba),54327(asmdba),54328(asmoper),54329(asmadmin)
#==============================================================#
Avahi-daemon 状态
#==============================================================#
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; disabled; vendor preset: enabled)
Active: inactive (dead)
May 04 05:51:18 lucifer05 avahi-daemon[845]: Joining mDNS multicast group on interface ens256.IPv4 with address 2.2.2.5.
May 04 05:51:18 lucifer05 avahi-daemon[845]: New relevant interface ens256.IPv4 for mDNS.
May 04 05:51:18 lucifer05 avahi-daemon[845]: Registering new address record for 2.2.2.5 on ens256.IPv4.
May 04 06:02:04 luciferdb05 systemd[1]: Stopping Avahi mDNS/DNS-SD Stack...
May 04 06:02:04 luciferdb05 avahi-daemon[845]: Got SIGTERM, quitting.
May 04 06:02:04 luciferdb05 avahi-daemon[845]: Leaving mDNS multicast group on interface virbr0.IPv4 with address 192.168.122.1.
May 04 06:02:04 luciferdb05 avahi-daemon[845]: Leaving mDNS multicast group on interface ens256.IPv4 with address 2.2.2.5.
May 04 06:02:04 luciferdb05 avahi-daemon[845]: Leaving mDNS multicast group on interface ens224.IPv4 with address 2.2.1.5.
May 04 06:02:04 luciferdb05 avahi-daemon[845]: Leaving mDNS multicast group on interface ens192.IPv4 with address 192.168.6.35.
May 04 06:02:04 luciferdb05 systemd[1]: Stopped Avahi mDNS/DNS-SD Stack.
#==============================================================#
配置透明大页 && NUMA && 磁盘 IO 调度器
#==============================================================#
args="ro rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet LANG=en_US.UTF-8 numa=off transparent_hugepage=never elevator=deadline"
-rd.lvm.lv=rhel/root
-args="ro
args="ro rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet numa=off transparent_hugepage=never elevator=deadline"
-elevator=deadline"
-transparent_hugepage=never
#==============================================================#
配置 sysctl.conf
#==============================================================#
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 8370016255
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 = 1048576
vm.min_free_kbytes = 32695
net.ipv4.conf.ens192.rp_filter = 1
net.ipv4.conf.ens224.rp_filter = 2
net.ipv4.conf.ens256.rp_filter = 2
#==============================================================#
配置 nsysctl.conf
#==============================================================#
# Created by anaconda
NOZEROCONF=yes
#==============================================================#
配置 /etc/security/limits.conf
#==============================================================#
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768
oracle soft nproc 2047
oracle hard nproc 16384
oracle hard memlock unlimited
oracle soft memlock unlimited
grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240
grid hard stack 32768
grid soft nproc 2047
grid hard nproc 16384
#==============================================================#
配置 /etc/pam.d/login
#==============================================================#
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth substack system-auth
auth include postlogin
account required pam_nologin.so
account include system-auth
password include system-auth
session required pam_selinux.so close
session required pam_loginuid.so
session optional pam_console.so
session required pam_selinux.so open
session required pam_namespace.so
session optional pam_keyinit.so force revoke
session include system-auth
session include postlogin
-session optional pam_ck_connector.so
session required pam_limits.so
session required /lib64/security/pam_limits.so
#==============================================================#
配置 /dev/shm
#==============================================================#
/dev/mapper/rhel-root / xfs defaults 0 0
UUID=0a1b3b00-847e-4d2f-86e5-22ccadd8b871 /boot xfs defaults 0 0
/dev/mapper/rhel-swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs size=8173844k 0 0
#==============================================================#
安装 rlwrap
#==============================================================#
成功安装 rlwrap: rlwrap 0.42
#==============================================================#
Root 用户环境变量
#==============================================================#
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/bin
export PATH
alias so='su - oracle'
export PS1="[`whoami`@`hostname`:"'\w]# '
alias sg='su - grid'
alias crsctl='/u01/app/11.2.0/grid/bin/crsctl'
alias srvctl='/u01/app/11.2.0/grid/bin/srvctl'
#==============================================================#
Oracle 用户环境变量
#==============================================================#
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
umask 022
export TMP=/tmp
export TMPDIR=$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=oradb5
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/perl/bin:$PATH
export PERL5LIB=$ORACLE_HOME/perl/lib
alias sas='sqlplus / as sysdba'
alias awr='sqlplus / as sysdba @?/rdbms/admin/awrrpt'
alias ash='sqlplus / as sysdba @?/rdbms/admin/ashrpt'
alias alert='vi $ORACLE_BASE/diag/rdbms/*/$ORACLE_SID/trace/alert_$ORACLE_SID.log'
export PS1="[`whoami`@`hostname`:"'\w]$ '
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias adrci='rlwrap adrci'
#==============================================================#
Grid 用户环境变量
#==============================================================#
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
umask 022
export TMP=/tmp
export TMPDIR=$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/11.2.0/grid
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=+ASM5
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
alias sas='sqlplus / as sysasm'
export PS1="[`whoami`@`hostname`:"'\w]$ '
alias sqlplus='rlwrap sqlplus'
alias asmcmd='rlwrap asmcmd'
alias adrci='rlwrap adrci'
#==============================================================#
配置时间同步
#==============================================================#
Removed symlink /etc/systemd/system/multi-user.target.wants/chronyd.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/ntpd.service to /usr/lib/systemd/system/ntpd.service.
#==============================================================#
NTP 检查
#==============================================================#
remote refid st t when poll reach delay offset jitter
==============================================================================
202.112.10.36 .INIT. 16 u - 64 0 0.000 0.000 0.001
#==============================================================#
多路径信息
#==============================================================#
create: asm_ocr_1 (2d7490d9f98a4dd33) undef ROCKET ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:0 sdb 8:16 undef ready running
create: asm_ocr_2 (29d556de9c0521353) undef ROCKET ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:1 sdc 8:32 undef ready running
create: asm_ocr_3 (22a3d603188b7e7ac) undef ROCKET ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:2 sdd 8:48 undef ready running
create: asm_data_1 (2efbc650f3322eb34) undef ROCKET ,IMAGEFILE
size=50G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:3 sde 8:64 undef ready running
create: asm_data_2 (228a97913b281ad29) undef ROCKET ,IMAGEFILE
size=50G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 33:0:0:4 sdf 8:80 undef ready running
#==============================================================#
UDEV 配置文件
#==============================================================#
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-2d7490d9f98a4dd33",SYMLINK+="asm_ocr_1",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-29d556de9c0521353",SYMLINK+="asm_ocr_2",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-22a3d603188b7e7ac",SYMLINK+="asm_ocr_3",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-2efbc650f3322eb34",SYMLINK+="asm_data_1",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-*",ENV{DM_UUID}=="mpath-228a97913b281ad29",SYMLINK+="asm_data_2",OWNER="grid",GROUP="asmadmin",MODE="0660"
UDEV 已加载成功。
#==============================================================#
ASM 磁盘信息
#==============================================================#
/dev/asm_data_1
/dev/asm_data_2
/dev/asm_ocr_1
/dev/asm_ocr_2
/dev/asm_ocr_3
配置 RAC 节点:192.168.6.35 结束!
#==============================================================#
配置 GRID 用户互信
#==============================================================#
Generating public/private rsa key pair.
Your identification has been saved in /home/grid/.ssh/id_rsa.
Your public key has been saved in /home/grid/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:2nlWBubEHZgtf808s3mX6I3a0/xoGIC2vs2D2dpfG6Q grid@luciferdb01
The key's randomart image is:
+---[RSA 2048]----+
| +. |
| .+... |
| .=o. + |
| o+... .o+|
| .S...o.o *|
| o.. o.+ +o|
| ..o+o EoB o|
| +*o o=.B |
| oo++oo+ o|
+----[SHA256]-----+
#==============================================================#
配置 ORACLE 用户互信
#==============================================================#
Generating public/private rsa key pair.
Your identification has been saved in /home/oracle/.ssh/id_rsa.
Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:uxhnfWFXxiBZS6omQit8m6XFY/BCB8iRVIf6ybIisSc oracle@luciferdb01
The key's randomart image is:
+---[RSA 2048]----+
| oo=o.. .o+ |
| + .o .+ + |
| .+ . . . +|
| ..o * . o |
| oo=.S o o . |
|. .o+X * . o |
| o o= + . . |
|E o . = . . |
| + . . . |
+----[SHA256]-----+
#==============================================================#
静默解压缩 Grid 软件包
#==============================================================#
正在静默解压缩 Grid 软件包,请稍等:
.---- -. -. . . . .
( .',----- - - ' ' ' __
\_/ ;--:- __--------------------___ ____=========_||___
__U__n_^_''__[. ooo___ | |_!_||_!_||_!_||_!_| | |..|_i_|..|_i_|..|
c(_ ..(_ ..(_ ..( /,,,,,,] | |___||___||___||___| | | |
,_\___________'_|,L______],|______________________|_i,!________________!_i
/;_(@)(@)==(@)(@) (o)(o) (o)^(o)--(o)^(o) (o)(o)-(o)(o)
""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"'""
静默解压 Grid 软件安装包: /soft/p13390677_112040_Linux-x86-64_3of7.zip
静默解压 Grid 软件补丁包: /soft/p31718723*.zip
安装 cvu 软件:
Preparing... ################################# [100%]
Using default group oinstall to install package
Updating / installing...
1:cvuqdisk-1.0.9-1 ################################# [100%]
Preparing... ########################################
Using default group oinstall to install package
Updating / installing...
cvuqdisk-1.0.9-1 ########################################
Preparing... ########################################
Using default group oinstall to install package
Updating / installing...
cvuqdisk-1.0.9-1 ########################################
Preparing... ########################################
Using default group oinstall to install package
Updating / installing...
cvuqdisk-1.0.9-1 ########################################
Preparing... ########################################
Using default group oinstall to install package
Updating / installing...
cvuqdisk-1.0.9-1 ########################################
#==============================================================#
静默解压 Oracle 软件包
#==============================================================#
正在静默解压缩 Oracle 软件包,请稍等:
.---- -. -. . . . .
( .',----- - - ' ' ' __
\_/ ;--:- __--------------------___ ____=========_||___
__U__n_^_''__[. ooo___ | |_!_||_!_||_!_||_!_| | |..|_i_|..|_i_|..|
c(_ ..(_ ..(_ ..( /,,,,,,] | |___||___||___||___| | | |
,_\___________'_|,L______],|______________________|_i,!________________!_i
/;_(@)(@)==(@)(@) (o)(o) (o)^(o)--(o)^(o) (o)(o)-(o)(o)
""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"'""
静默解压 Oracle 软件安装包: /soft/p13390677_112040_Linux-x86-64_1of7.zip,/soft/p13390677_112040_Linux-x86-64_2of7.zip
静默解压 OJVM 软件补丁包: /soft/p31668908*.zip
#==============================================================#
Grid 安装静默文件
#==============================================================#
INVENTORY_LOCATION=/u01/app/oraInventory
oracle.install.option=CRS_CONFIG
ORACLE_BASE=/u01/app/grid
oracle.install.asm.OSDBA=asmdba
oracle.install.asm.OSOPER=asmoper
oracle.install.asm.OSASM=asmadmin
oracle.install.crs.config.gpnp.scanName=luciferdb-scan
oracle.install.crs.config.gpnp.scanPort=1521
oracle.install.crs.config.clusterName=luciferdb-cls
oracle.install.crs.config.gpnp.configureGNS=false
oracle.install.crs.config.clusterNodes=luciferdb01:luciferdb01-vip,luciferdb02:luciferdb02-vip,luciferdb03:luciferdb03-vip,luciferdb04:luciferdb04-vip,luciferdb05:luciferdb05-vip
oracle.install.crs.config.networkInterfaceList=ens192:192.168.6.0:1,ens224:2.2.1.0:2,ens256:2.2.2.0:2
oracle.install.crs.config.useIPMI=false
oracle.install.asm.SYSASMPassword=oracle
oracle.install.asm.diskGroup.name=OCR
oracle.install.asm.diskGroup.redundancy=EXTERNAL
oracle.install.asm.diskGroup.disks=/dev/asm_ocr_1,/dev/asm_ocr_2,/dev/asm_ocr_3
oracle.install.asm.diskGroup.diskDiscoveryString=/dev/asm*
oracle.install.asm.monitorPassword=oracle
oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v11_2_0
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/11.2.0/grid
oracle.install.crs.config.storageOption=ASM_STORAGE
oracle.install.asm.diskGroup.AUSize=1
oracle.installer.autoupdates.option=SKIP_UPDATES
#==============================================================#
静默安装 Grid 软件
#==============================================================#
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 75921 MB Passed
Checking swap space: must be greater than 150 MB. Actual 8191 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2023-05-04_06-10-42PM. Please wait ...[WARNING] [INS-30011] The SYS password entered does not conform to the Oracle recommended standards.
CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
ACTION: Provide a password that conforms to the Oracle recommended standards.
[WARNING] [INS-30011] The ASMSNMP password entered does not conform to the Oracle recommended standards.
CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
ACTION: Provide a password that conforms to the Oracle recommended standards.
You can find the log of this install session at:
/u01/app/oraInventory/logs/installActions2023-05-04_06-10-42PM.log
Prepare in progress.
.................................................. 9% Done.
Prepare successful.
Copy files in progress.
.................................................. 15% Done.
.................................................. 20% Done.
.................................................. 25% Done.
.................................................. 30% Done.
.................................................. 35% Done.
.................................................. 40% Done.
.................................................. 45% Done.
........................................
Copy files successful.
Link binaries in progress.
Link binaries successful.
.................................................. 62% Done.
Setup files in progress.
Setup files successful.
.................................................. 76% Done.
Perform remote operations in progress.
.................................................. 89% Done.
Perform remote operations successful.
The installation of Oracle Grid Infrastructure 11g was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2023-05-04_06-10-42PM.log' for more details.
.................................................. 94% Done.
Execute Root Scripts in progress.
As a root user, execute the following script(s):
1. /u01/app/oraInventory/orainstRoot.sh
2. /u01/app/11.2.0/grid/root.sh
Execute /u01/app/oraInventory/orainstRoot.sh on the following nodes:
[luciferdb01, luciferdb02, luciferdb03, luciferdb04, luciferdb05]
Execute /u01/app/11.2.0/grid/root.sh on the following nodes:
[luciferdb01, luciferdb02, luciferdb03, luciferdb04, luciferdb05]
.................................................. 100% Done.
Execute Root Scripts successful.
As install user, execute the following script to complete the configuration.
1. /u01/app/11.2.0/grid/cfgtoollogs/configToolAllCommands RESPONSE_FILE=<response_file>
Note:
1. This script must be run on the same host from where installer was run.
2. This script needs a small password properties file for configuration assistants that require passwords (refer to install guide documentation).
Successfully Setup Software.
#==============================================================#
静默安装 18370031 补丁
#==============================================================#
节点 192.168.6.31 :
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/11.2.0/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/11.2.0/grid/oraInst.loc
OPatch version : 11.2.0.3.4
OUI version : 11.2.0.4.0
Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2023-05-04_18-22-58PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 18370031
Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/11.2.0/grid')
Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying interim patch '18370031' to OH '/u01/app/11.2.0/grid'
Patching component oracle.crs, 11.2.0.4.0...
Verifying the update...
Patch 18370031 successfully applied.
Log file location: /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2023-05-04_18-22-58PM_1.log
OPatch succeeded.
节点 192.168.6.32 :
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/11.2.0/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/11.2.0/grid/oraInst.loc
OPatch version : 11.2.0.3.4
OUI version : 11.2.0.4.0
Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2023-05-04_18-24-05PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 18370031
Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/11.2.0/grid')
Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying interim patch '18370031' to OH '/u01/app/11.2.0/grid'
Patching component oracle.crs, 11.2.0.4.0...
Verifying the update...
Patch 18370031 successfully applied.
Log file location: /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2023-05-04_18-24-05PM_1.log
OPatch succeeded.
节点 192.168.6.33 :
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/11.2.0/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/11.2.0/grid/oraInst.loc
OPatch version : 11.2.0.3.4
OUI version : 11.2.0.4.0
Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2023-05-04_18-25-15PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 18370031
Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/11.2.0/grid')
Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying interim patch '18370031' to OH '/u01/app/11.2.0/grid'
Patching component oracle.crs, 11.2.0.4.0...
Verifying the update...
Patch 18370031 successfully applied.
Log file location: /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2023-05-04_18-25-15PM_1.log
OPatch succeeded.
节点 192.168.6.34 :
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/11.2.0/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/11.2.0/grid/oraInst.loc
OPatch version : 11.2.0.3.4
OUI version : 11.2.0.4.0
Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2023-05-04_18-26-15PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 18370031
Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/11.2.0/grid')
Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying interim patch '18370031' to OH '/u01/app/11.2.0/grid'
Patching component oracle.crs, 11.2.0.4.0...
Verifying the update...
Patch 18370031 successfully applied.
Log file location: /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2023-05-04_18-26-15PM_1.log
OPatch succeeded.
节点 192.168.6.35 :
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/11.2.0/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/11.2.0/grid/oraInst.loc
OPatch version : 11.2.0.3.4
OUI version : 11.2.0.4.0
Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2023-05-04_06-27-13AM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 18370031
Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/11.2.0/grid')
Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying interim patch '18370031' to OH '/u01/app/11.2.0/grid'
Patching component oracle.crs, 11.2.0.4.0...
Verifying the update...
Patch 18370031 successfully applied.
Log file location: /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2023-05-04_06-27-13AM_1.log
OPatch succeeded.
#==============================================================#
Grid 执行 root 脚本
#==============================================================#
节点 192.168.6.31 :
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
Check /u01/app/11.2.0/grid/install/root_luciferdb01_2023-05-04_18-28-02.log for the output of root script
节点 192.168.6.32 :
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
Check /u01/app/11.2.0/grid/install/root_luciferdb02_2023-05-04_18-35-03.log for the output of root script
节点 192.168.6.33 :
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
Check /u01/app/11.2.0/grid/install/root_luciferdb03_2023-05-04_18-40-07.log for the output of root script
节点 192.168.6.34 :
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
Check /u01/app/11.2.0/grid/install/root_luciferdb04_2023-05-04_18-45-15.log for the output of root script
节点 192.168.6.35 :
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
Check /u01/app/11.2.0/grid/install/root_luciferdb05_2023-05-04_06-50-21.log for the output of root script
#==============================================================#
Grid 软件安装补丁
#==============================================================#
节点 192.168.6.31 :
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /soft -patchn 31718723 -oh /u01/app/11.2.0/grid -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_params
This is the main log file: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2023-05-04_19-00-25.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/11.2.0/grid/cfgtoollogs/opatchauto2023-05-04_19-00-25.report.log
2023-05-04 19:00:25: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Stopping CRS...
Stopped CRS successfully
patch /soft/31718723/29938455 apply successful for home /u01/app/11.2.0/grid
patch /soft/31718723/31537677 apply successful for home /u01/app/11.2.0/grid
patch /soft/31718723/29509309 apply successful for home /u01/app/11.2.0/grid
Starting CRS...
Installing Trace File Analyzer
CRS-4123: Oracle High Availability Services has been started.
opatch auto succeeded.
节点 192.168.6.32 :
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /soft -patchn 31718723 -oh /u01/app/11.2.0/grid -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_params
This is the main log file: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2023-05-04_19-12-35.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/11.2.0/grid/cfgtoollogs/opatchauto2023-05-04_19-12-35.report.log
2023-05-04 19:12:35: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Stopping CRS...
Stopped CRS successfully
patch /soft/31718723/29938455 apply successful for home /u01/app/11.2.0/grid
patch /soft/31718723/31537677 apply successful for home /u01/app/11.2.0/grid
patch /soft/31718723/29509309 apply successful for home /u01/app/11.2.0/grid
Starting CRS...
Installing Trace File Analyzer
CRS-4123: Oracle High Availability Services has been started.
opatch auto succeeded.
节点 192.168.6.33 :
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /soft -patchn 31718723 -oh /u01/app/11.2.0/grid -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_params
This is the main log file: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2023-05-04_19-24-16.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/11.2.0/grid/cfgtoollogs/opatchauto2023-05-04_19-24-16.report.log
2023-05-04 19:24:16: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Stopping CRS...
Stopped CRS successfully
patch /soft/31718723/29938455 apply successful for home /u01/app/11.2.0/grid
patch /soft/31718723/31537677 apply successful for home /u01/app/11.2.0/grid
patch /soft/31718723/29509309 apply successful for home /u01/app/11.2.0/grid
Starting CRS...
Installing Trace File Analyzer
CRS-4123: Oracle High Availability Services has been started.
opatch auto succeeded.
节点 192.168.6.34 :
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /soft -patchn 31718723 -oh /u01/app/11.2.0/grid -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_params
This is the main log file: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2023-05-04_19-36-11.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/11.2.0/grid/cfgtoollogs/opatchauto2023-05-04_19-36-11.report.log
2023-05-04 19:36:11: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Stopping CRS...
Stopped CRS successfully
patch /soft/31718723/29938455 apply successful for home /u01/app/11.2.0/grid
patch /soft/31718723/31537677 apply successful for home /u01/app/11.2.0/grid
patch /soft/31718723/29509309 apply successful for home /u01/app/11.2.0/grid
Starting CRS...
Installing Trace File Analyzer
CRS-4123: Oracle High Availability Services has been started.
opatch auto succeeded.
节点 192.168.6.35 :
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /soft -patchn 31718723 -oh /u01/app/11.2.0/grid -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_params
This is the main log file: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2023-05-04_07-47-50.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/11.2.0/grid/cfgtoollogs/opatchauto2023-05-04_07-47-50.report.log
2023-05-04 07:47:50: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Stopping CRS...
Stopped CRS successfully
patch /soft/31718723/29938455 apply successful for home /u01/app/11.2.0/grid
patch /soft/31718723/31537677 apply successful for home /u01/app/11.2.0/grid
patch /soft/31718723/29509309 apply successful for home /u01/app/11.2.0/grid
Starting CRS...
Installing Trace File Analyzer
CRS-4123: Oracle High Availability Services has been started.
opatch auto succeeded.
#==============================================================#
Grid 软件版本
#==============================================================#
SQL*Plus: Release 11.2.0.4.0 Production
#==============================================================#
Grid 补丁信息
#==============================================================#
29509309;ACFS Patch Set Update : 11.2.0.4.190716 (29509309)
31537677;Database Patch Set Update : 11.2.0.4.201020 (31537677)
29938455;OCW Patch Set Update : 11.2.0.4.191015 (29938455)
OPatch succeeded.
#==============================================================#
ASM磁盘组创建
#==============================================================#
Disk Group DATA created successfully.
State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
MOUNTED EXTERN N 512 4096 1048576 102400 102176 0 102176 0 N DATA/
MOUNTED EXTERN N 512 4096 1048576 30720 30193 0 30193 0 Y OCR/
#==============================================================#
Oracle 安装静默文件
#==============================================================#
oracle.install.option=INSTALL_DB_SWONLY
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=oper
oracle.install.db.CLUSTER_NODES=luciferdb01,luciferdb02,luciferdb03,luciferdb04,luciferdb05
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
SELECTED_LANGUAGES=en,zh_CN
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db
DECLINE_SECURITY_UPDATES=true
oracle.installer.autoupdates.option=SKIP_UPDATES
#==============================================================#
静默安装数据库软件
#==============================================================#
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 66476 MB Passed
Checking swap space: must be greater than 150 MB. Actual 8184 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2023-05-04_07-59-59PM. Please wait ...You can find the log of this install session at:
/u01/app/oraInventory/logs/installActions2023-05-04_07-59-59PM.log
Prepare in progress.
.................................................. 9% Done.
Prepare successful.
Copy files in progress.
.................................................. 14% Done.
.................................................. 19% Done.
.................................................. 25% Done.
.................................................. 30% Done.
.................................................. 36% Done.
.................................................. 41% Done.
.................................................. 46% Done.
.................................................. 51% Done.
.................................................. 56% Done.
Copy files successful.
..........
Link binaries in progress.
Link binaries successful.
.................................................. 77% Done.
Setup files in progress.
.................................................. 94% Done.
Setup files successful.
The installation of Oracle Database 11g was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2023-05-04_07-59-59PM.log' for more details.
Execute Root Scripts in progress.
As a root user, execute the following script(s):
1. /u01/app/oracle/product/11.2.0/db/root.sh
Execute /u01/app/oracle/product/11.2.0/db/root.sh on the following nodes:
[luciferdb01, luciferdb02, luciferdb03, luciferdb04, luciferdb05]
.................................................. 100% Done.
Execute Root Scripts successful.
Successfully Setup Software.
#==============================================================#
Oracle 执行 root 脚本
#==============================================================#
节点 192.168.6.31 :
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
Check /u01/app/oracle/product/11.2.0/db/install/root_luciferdb01_2023-05-04_20-16-36.log for the output of root script
节点 192.168.6.32 :
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
Check /u01/app/oracle/product/11.2.0/db/install/root_luciferdb02_2023-05-04_20-16-37.log for the output of root script
节点 192.168.6.33 :
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
Check /u01/app/oracle/product/11.2.0/db/install/root_luciferdb03_2023-05-04_20-16-39.log for the output of root script
节点 192.168.6.34 :
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
Check /u01/app/oracle/product/11.2.0/db/install/root_luciferdb04_2023-05-04_20-16-40.log for the output of root script
节点 192.168.6.35 :
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
Check /u01/app/oracle/product/11.2.0/db/install/root_luciferdb05_2023-05-04_08-16-41.log for the output of root script
#==============================================================#
Oracle 软件安装补丁
#==============================================================#
节点 192.168.6.31 :
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/oracle/product/11.2.0/db/OPatch/crs/patch11203.pl -patchdir /soft -patchn 31718723 -oh /u01/app/oracle/product/11.2.0/db -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_params
This is the main log file: /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatchauto2023-05-04_20-17-26.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatchauto2023-05-04_20-17-26.report.log
2023-05-04 20:17:26: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Stopping RAC /u01/app/oracle/product/11.2.0/db ...
Stopped RAC /u01/app/oracle/product/11.2.0/db successfully
patch /soft/31718723/29938455/custom/server/29938455 apply successful for home /u01/app/oracle/product/11.2.0/db
patch /soft/31718723/31537677 apply successful for home /u01/app/oracle/product/11.2.0/db
Starting RAC /u01/app/oracle/product/11.2.0/db ...
Started RAC /u01/app/oracle/product/11.2.0/db successfully
opatch auto succeeded.
节点 192.168.6.32 :
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/oracle/product/11.2.0/db/OPatch/crs/patch11203.pl -patchdir /soft -patchn 31718723 -oh /u01/app/oracle/product/11.2.0/db -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_params
This is the main log file: /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatchauto2023-05-04_20-25-51.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatchauto2023-05-04_20-25-51.report.log
2023-05-04 20:25:51: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Stopping RAC /u01/app/oracle/product/11.2.0/db ...
Stopped RAC /u01/app/oracle/product/11.2.0/db successfully
patch /soft/31718723/29938455/custom/server/29938455 apply successful for home /u01/app/oracle/product/11.2.0/db
patch /soft/31718723/31537677 apply successful for home /u01/app/oracle/product/11.2.0/db
Starting RAC /u01/app/oracle/product/11.2.0/db ...
Started RAC /u01/app/oracle/product/11.2.0/db successfully
opatch auto succeeded.
节点 192.168.6.33 :
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/oracle/product/11.2.0/db/OPatch/crs/patch11203.pl -patchdir /soft -patchn 31718723 -oh /u01/app/oracle/product/11.2.0/db -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_params
This is the main log file: /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatchauto2023-05-04_20-32-42.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatchauto2023-05-04_20-32-42.report.log
2023-05-04 20:32:42: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Stopping RAC /u01/app/oracle/product/11.2.0/db ...
Stopped RAC /u01/app/oracle/product/11.2.0/db successfully
patch /soft/31718723/29938455/custom/server/29938455 apply successful for home /u01/app/oracle/product/11.2.0/db
patch /soft/31718723/31537677 apply successful for home /u01/app/oracle/product/11.2.0/db
Starting RAC /u01/app/oracle/product/11.2.0/db ...
Started RAC /u01/app/oracle/product/11.2.0/db successfully
opatch auto succeeded.
节点 192.168.6.34 :
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/oracle/product/11.2.0/db/OPatch/crs/patch11203.pl -patchdir /soft -patchn 31718723 -oh /u01/app/oracle/product/11.2.0/db -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_params
This is the main log file: /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatchauto2023-05-04_20-39-17.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatchauto2023-05-04_20-39-17.report.log
2023-05-04 20:39:17: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Stopping RAC /u01/app/oracle/product/11.2.0/db ...
Stopped RAC /u01/app/oracle/product/11.2.0/db successfully
patch /soft/31718723/29938455/custom/server/29938455 apply successful for home /u01/app/oracle/product/11.2.0/db
patch /soft/31718723/31537677 apply successful for home /u01/app/oracle/product/11.2.0/db
Starting RAC /u01/app/oracle/product/11.2.0/db ...
Started RAC /u01/app/oracle/product/11.2.0/db successfully
opatch auto succeeded.
节点 192.168.6.35 :
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/oracle/product/11.2.0/db/OPatch/crs/patch11203.pl -patchdir /soft -patchn 31718723 -oh /u01/app/oracle/product/11.2.0/db -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_params
This is the main log file: /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatchauto2023-05-04_08-45-36.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatchauto2023-05-04_08-45-36.report.log
2023-05-04 08:45:36: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Stopping RAC /u01/app/oracle/product/11.2.0/db ...
Stopped RAC /u01/app/oracle/product/11.2.0/db successfully
patch /soft/31718723/29938455/custom/server/29938455 apply successful for home /u01/app/oracle/product/11.2.0/db
patch /soft/31718723/31537677 apply successful for home /u01/app/oracle/product/11.2.0/db
Starting RAC /u01/app/oracle/product/11.2.0/db ...
Started RAC /u01/app/oracle/product/11.2.0/db successfully
opatch auto succeeded.
#==============================================================#
OJVM 补丁安装
#==============================================================#
节点 192.168.6.31 :
Oracle Interim Patch Installer version 11.2.0.3.31
Copyright (c) 2023, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /u01/app/oracle/product/11.2.0/db
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0/db/oraInst.loc
OPatch version : 11.2.0.3.31
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2023-05-04_20-52-29PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
Oracle Interim Patch Installer version 11.2.0.3.31
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0/db
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0/db/oraInst.loc
OPatch version : 11.2.0.3.31
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2023-05-04_20-52-32PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 31668908
Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/11.2.0/db')
Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying interim patch '31668908' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.sqlj, 11.2.0.4.0 ] , [ oracle.sqlj.companion, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.javavm.server, 11.2.0.4.0...
Patching component oracle.precomp.common, 11.2.0.4.0...
Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Patching component oracle.javavm.client, 11.2.0.4.0...
Patching component oracle.dbjava.jdbc, 11.2.0.4.0...
Patching component oracle.dbjava.ic, 11.2.0.4.0...
Patch 31668908 successfully applied.
Log file location: /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2023-05-04_20-52-32PM_1.log
OPatch succeeded.
节点 192.168.6.32 :
Oracle Interim Patch Installer version 11.2.0.3.31
Copyright (c) 2023, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /u01/app/oracle/product/11.2.0/db
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0/db/oraInst.loc
OPatch version : 11.2.0.3.31
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2023-05-04_20-53-08PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
Oracle Interim Patch Installer version 11.2.0.3.31
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0/db
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0/db/oraInst.loc
OPatch version : 11.2.0.3.31
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2023-05-04_20-53-10PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 31668908
Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/11.2.0/db')
Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying interim patch '31668908' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.sqlj, 11.2.0.4.0 ] , [ oracle.sqlj.companion, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.javavm.server, 11.2.0.4.0...
Patching component oracle.precomp.common, 11.2.0.4.0...
Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Patching component oracle.javavm.client, 11.2.0.4.0...
Patching component oracle.dbjava.jdbc, 11.2.0.4.0...
Patching component oracle.dbjava.ic, 11.2.0.4.0...
Patch 31668908 successfully applied.
Log file location: /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2023-05-04_20-53-10PM_1.log
OPatch succeeded.
节点 192.168.6.33 :
Oracle Interim Patch Installer version 11.2.0.3.31
Copyright (c) 2023, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /u01/app/oracle/product/11.2.0/db
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0/db/oraInst.loc
OPatch version : 11.2.0.3.31
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2023-05-04_20-53-42PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
Oracle Interim Patch Installer version 11.2.0.3.31
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0/db
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0/db/oraInst.loc
OPatch version : 11.2.0.3.31
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2023-05-04_20-53-44PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 31668908
Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/11.2.0/db')
Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying interim patch '31668908' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.sqlj, 11.2.0.4.0 ] , [ oracle.sqlj.companion, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.javavm.server, 11.2.0.4.0...
Patching component oracle.precomp.common, 11.2.0.4.0...
Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Patching component oracle.javavm.client, 11.2.0.4.0...
Patching component oracle.dbjava.jdbc, 11.2.0.4.0...
Patching component oracle.dbjava.ic, 11.2.0.4.0...
Patch 31668908 successfully applied.
Log file location: /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2023-05-04_20-53-44PM_1.log
OPatch succeeded.
节点 192.168.6.34 :
Oracle Interim Patch Installer version 11.2.0.3.31
Copyright (c) 2023, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /u01/app/oracle/product/11.2.0/db
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0/db/oraInst.loc
OPatch version : 11.2.0.3.31
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2023-05-04_20-54-14PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
Oracle Interim Patch Installer version 11.2.0.3.31
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0/db
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0/db/oraInst.loc
OPatch version : 11.2.0.3.31
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2023-05-04_20-54-17PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 31668908
Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/11.2.0/db')
Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying interim patch '31668908' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.sqlj, 11.2.0.4.0 ] , [ oracle.sqlj.companion, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.javavm.server, 11.2.0.4.0...
Patching component oracle.precomp.common, 11.2.0.4.0...
Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Patching component oracle.javavm.client, 11.2.0.4.0...
Patching component oracle.dbjava.jdbc, 11.2.0.4.0...
Patching component oracle.dbjava.ic, 11.2.0.4.0...
Patch 31668908 successfully applied.
Log file location: /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2023-05-04_20-54-17PM_1.log
OPatch succeeded.
节点 192.168.6.35 :
Oracle Interim Patch Installer version 11.2.0.3.31
Copyright (c) 2023, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /u01/app/oracle/product/11.2.0/db
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0/db/oraInst.loc
OPatch version : 11.2.0.3.31
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2023-05-04_08-54-50AM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
Oracle Interim Patch Installer version 11.2.0.3.31
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0/db
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0/db/oraInst.loc
OPatch version : 11.2.0.3.31
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2023-05-04_08-54-53AM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 31668908
Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/11.2.0/db')
Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying interim patch '31668908' to OH '/u01/app/oracle/product/11.2.0/db'
ApplySession: Optional component(s) [ oracle.sqlj, 11.2.0.4.0 ] , [ oracle.sqlj.companion, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.javavm.server, 11.2.0.4.0...
Patching component oracle.precomp.common, 11.2.0.4.0...
Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Patching component oracle.javavm.client, 11.2.0.4.0...
Patching component oracle.dbjava.jdbc, 11.2.0.4.0...
Patching component oracle.dbjava.ic, 11.2.0.4.0...
Patch 31668908 successfully applied.
Log file location: /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2023-05-04_08-54-53AM_1.log
OPatch succeeded.
#==============================================================#
Oracle 软件版本
#==============================================================#
SQL*Plus: Release 11.2.0.4.0 Production
#==============================================================#
OPatch 补丁信息
#==============================================================#
31668908;OJVM PATCH SET UPDATE 11.2.0.4.201020
31537677;Database Patch Set Update : 11.2.0.4.201020 (31537677)
29938455;OCW Patch Set Update : 11.2.0.4.191015 (29938455)
OPatch succeeded.
#==============================================================#
创建数据库
#==============================================================#
Copying database files
1% complete
3% complete
9% complete
15% complete
21% complete
27% complete
30% complete
Creating and starting Oracle instance
32% complete
36% complete
40% complete
44% complete
45% complete
48% complete
50% complete
Creating cluster database views
52% complete
70% complete
Completing Database Creation
73% complete
76% complete
77% complete
78% complete
79% complete
88% complete
97% complete
100% complete
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/oradb/oradb.log" for further details.
#==============================================================#
配置 OMF && 优化 RMAN
#==============================================================#
Recovery Manager: Release 11.2.0.4.0 - Production on Thu May 4 21:14:19 2023
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORADB (DBID=2889241045)
RMAN>
using target database control file instead of recovery catalog
new RMAN configuration parameters:
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+DATA/snapcf_fdcdb1.f';
new RMAN configuration parameters are successfully stored
RMAN>
Recovery Manager complete.
#==============================================================#
配置控制文件和重做日志
#==============================================================#
静默配置控制文件和重做日志,请稍候:
数据库控制文件:
NAME
----------------------------------------------------------------------------------------------------
+DATA/oradb/controlfile/current.261.1135976277
+DATA/oradb/controlfile/current.260.1135976277
数据库在线重做日志文件:
THREAD# GROUP# MEMBER size(M)
---------- ---------- ------------------------------------------------------------ ----------
1 2 +DATA/oradb/onlinelog/group_2.264.1135976281 50
1 2 +DATA/oradb/onlinelog/group_2.265.1135976283 50
1 1 +DATA/oradb/onlinelog/group_1.262.1135976281 50
1 1 +DATA/oradb/onlinelog/group_1.263.1135976281 50
1 15 +DATA/oradb/onlinelog/group_15.301.1135977273 50
1 15 +DATA/oradb/onlinelog/group_15.300.1135977271 50
1 11 +DATA/oradb/onlinelog/group_11.292.1135977263 50
1 14 +DATA/oradb/onlinelog/group_14.298.1135977269 50
1 13 +DATA/oradb/onlinelog/group_13.297.1135977269 50
1 13 +DATA/oradb/onlinelog/group_13.296.1135977267 50
1 12 +DATA/oradb/onlinelog/group_12.295.1135977267 50
1 12 +DATA/oradb/onlinelog/group_12.294.1135977267 50
1 11 +DATA/oradb/onlinelog/group_11.293.1135977265 50
1 14 +DATA/oradb/onlinelog/group_14.299.1135977271 50
2 4 +DATA/oradb/onlinelog/group_4.289.1135977191 50
2 20 +DATA/oradb/onlinelog/group_20.310.1135977283 50
2 19 +DATA/oradb/onlinelog/group_19.309.1135977283 50
2 19 +DATA/oradb/onlinelog/group_19.308.1135977281 50
2 18 +DATA/oradb/onlinelog/group_18.307.1135977281 50
2 18 +DATA/oradb/onlinelog/group_18.306.1135977279 50
2 17 +DATA/oradb/onlinelog/group_17.305.1135977279 50
2 17 +DATA/oradb/onlinelog/group_17.304.1135977277 50
2 16 +DATA/oradb/onlinelog/group_16.303.1135977277 50
2 16 +DATA/oradb/onlinelog/group_16.302.1135977275 50
2 20 +DATA/oradb/onlinelog/group_20.311.1135977285 50
2 4 +DATA/oradb/onlinelog/group_4.288.1135977191 50
2 3 +DATA/oradb/onlinelog/group_3.285.1135977187 50
2 3 +DATA/oradb/onlinelog/group_3.286.1135977189 50
3 5 +DATA/oradb/onlinelog/group_5.281.1135977185 50
3 6 +DATA/oradb/onlinelog/group_6.284.1135977187 50
3 6 +DATA/oradb/onlinelog/group_6.283.1135977185 50
3 5 +DATA/oradb/onlinelog/group_5.280.1135977183 50
4 8 +DATA/oradb/onlinelog/group_8.279.1135977181 50
4 8 +DATA/oradb/onlinelog/group_8.278.1135977179 50
4 7 +DATA/oradb/onlinelog/group_7.277.1135977179 50
4 7 +DATA/oradb/onlinelog/group_7.275.1135977177 50
5 10 +DATA/oradb/onlinelog/group_10.273.1135977175 50
5 10 +DATA/oradb/onlinelog/group_10.274.1135977175 50
5 9 +DATA/oradb/onlinelog/group_9.271.1135977173 50
5 9 +DATA/oradb/onlinelog/group_9.272.1135977173 50
#==============================================================#
数据库参数配置
#==============================================================#
数据库参数:
NAME SID SPVALUE VALUE
-------------------------------------------------- ---------- -------------------------------------------------- --------------------------------------------------
_b_tree_bitmap_plans * FALSE FALSE
_datafile_write_errors_crash_instance * FALSE FALSE
audit_file_dest * /u01/app/oracle/admin/oradb/adump /u01/app/oracle/admin/oradb/adump
audit_trail * NONE NONE
cluster_database * true TRUE
compatible * 11.2.0.4.0 11.2.0.4.0
control_file_record_keep_time * 31 31
db_block_size * 8192 8192
db_create_file_dest * +DATA +DATA
db_file_multiblock_read_count * 128
db_files * 5000 200
db_name * oradb oradb
db_recovery_file_dest * +DATA +DATA
db_recovery_file_dest_size * 5800722432 5800722432
db_writer_processes * 1
deferred_segment_creation * FALSE FALSE
diagnostic_dest * /u01/app/oracle /u01/app/oracle
dispatchers * (PROTOCOL=TCP) (SERVICE=oradbXDB) (PROTOCOL=TCP) (SERVICE=oradbXDB)
enable_ddl_logging * TRUE FALSE
event * 10949 trace name context forever,level 1
event * 28401 trace name context forever,level 1
fast_start_parallel_rollback * LOW
log_archive_dest_1 * location=+DATA location=+DATA
log_archive_format * %t_%s_%r.dbf %t_%s_%r.dbf
max_dump_file_size * unlimited
open_cursors * 1000 300
optimizer_index_caching * 0
optimizer_mode * ALL_ROWS
parallel_force_local * TRUE FALSE
parallel_max_servers * 64 64
pga_aggregate_target * 1339031552 1339031552
processes * 2000 150
remote_login_passwordfile * exclusive EXCLUSIVE
resource_limit * TRUE FALSE
resource_manager_plan * force:
sec_case_sensitive_logon * FALSE TRUE
session_cached_cursors * 300 50
sessions * 248
sga_max_size * 5356126208 5368709120
sga_target * 5356126208 5368709120
spfile * +DATA/oradb/spfileoradb.ora
statistics_level * TYPICAL
undo_retention * 10800 900
恭喜!Oracle RAC 安装成功,现在是否重启主机:[Y/N]