无人值守安装Oracle 11GR2 RAC集群,只需要1.5小时?没错,通过脚本静默安装,只需要1.5小时,包括安装补丁,建库。

脚本下载链接:SHELL脚本进行oracle数据库一键安装,实现真正的无人值守安装

GitHub:https://github.com/pc-study/InstallOracleshell

一、主机准备

节点 主机版本 主机内存 主机磁盘空间 主机网卡 ASM盘
rac01 redhat 7.9 8G 50G eth0,eth1 OCR:/dev/sdb,/dev/sdc,/dev/sdd
DATA:/dev/sde,/dev/sdf
rac02 redhat 7.9 8G 50G eth0,eth1

注意:

1.主机内存不得低于2G

2.磁盘空间不得低于50G

节点 主机IP
rac01 10.211.55.100,10.10.1.1(PRIVIP),10.211.55.102(Vip),10.211.55.105(SCANIP)
rac02 10.211.55.101,10.10.1.2(PRIVIP),10.211.55.103(Vip),10.211.55.105(SCANIP)

节点一:

节点二:

ASM盘通过共享存储之--StarWind高级配置方式配置ISCSI共享存储。(两个节点都需要配置ISCSI共享存储

二、安装前准备

1.挂载ISO镜像源(两个节点都需要挂载)

##1.通过cdrom挂载
mount /dev/cdrom /mnt##2.通过安装镜像源挂载
mount -o loop /soft/rhel-server-7.9-x86_64-dvd.iso /mnt

2.创建目录并上传安装介质(节点一上传即可)

##1.创建安装介质上传目录
mkdir /soft
[root@localhost ~]# cd /soft/##2.上传安装介质
[root@localhost soft]# du -sh *
##linux7系统缺少补丁包
192K    compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm
##无人值守shell脚本(包括互信脚本)
140K    OracleShellInstall.sh
4.0K    auto_ssh.sh
##oracle 11GR2官方DB 安装包
1.3G    p13390677_112040_Linux-x86-64_1of7.zip
1.1G    p13390677_112040_Linux-x86-64_2of7.zip
##oracle 11GR2官方GRID 安装包
1.2G    p13390677_112040_Linux-x86-64_3of7.zip
##oracle 11GR2 GRID PSU 最终版补丁包+6880880 OPatch补丁包
1.3G    p31718723_112040_Linux-x86-64.zip
118M    p6880880_112000_Linux-x86-64.zip
##RAC GRID On Linux7 需要打补丁修复OHAS
175M    p18370031_112040_Linux-x86-64.zip##上下文切换软件(可选)
276K    rlwrap-0.42.tar.gz##3.授权脚本执行权限
chmod +x OracleShellInstall.sh
chmod +x auto_ssh.sh

三、安装

注意:可通过./OracleShellInstall.sh --help查看命令帮助

安装命令如下:

##节点一执行即可
cd /soft
./OracleShellInstall.sh -i 10.211.55.100 `#Public ip`\
-n rac11g `# hostname`\
-o rac11g `# oraclesid`\
-rs oracle `# root password`\
-op oracle `# oracle password`\
-gp oracle `# grid password`\
-b /u01/app `# install basedir`\
-s AL32UTF8 `# characterset`\
-n1 rac11g01 -n2 rac11g02 `# node hostname`\
-pb1 10.211.55.100 -pb2 10.211.55.101 `# node public ip`\
-vi1 10.211.55.102 -vi2 10.211.55.103 `# node virtual ip`\
-pi1 10.10.1.1 -pi2 10.10.1.2 `# node private ip`\
-si 10.211.55.105 `# scan ip`\
-dd /dev/sde,/dev/sdf `# asm data disk`\
-od /dev/sdb,/dev/sdc,/dev/sdd `# asm ocr disk`\
-or EXTERNAL `# asm ocr redundancy`\
-dr EXTERNAL `# asm data redundancy`\
-on OCR `# asm ocr diskgroupname`\
-dn DATA `# asm data diskgroupname`\
-puf eth0 -prf eth1 `# network fcname`\
-ts 10.211.55.18 `# timeserver`\
-gpa 31718723 `# Grid PSU NUMBER`

敲下回车将开始无人值守安装......

开始时间:04:10

执行过程太多.....略

安装日志记录在两个节点的/soft目录下:oracleAllSilent_*.log,在文末展示安装日志。

安装结束后,将自动创建好上述指定实例名为rac11g的数据库rac集群实例(rac11g01,rac11g02),并安装上传补丁31718723。

等待安装结束.......

结束时间:05:40

安装结束。

总耗时:1小时30分钟。

安装日志如下:

节点一:

[root@rac11g01 soft]# cat oracleAllSilent_20210506030459.log
##################################################################################### Installation Logging######################################################################################################################################################################### OS Version####################################################################################OS Version :linux7##################################################################################### DB Version####################################################################################DB Version :11.2.0.4##################################################################################### HOSTNAME####################################################################################HOSTNAME :rac11g01##################################################################################### RPM Check####################################################################################RPM Check :bc-1.06.95-13.el7.x86_64
binutils-2.27-44.base.el7.x86_64
compat-libcap1-1.10-7.el7.x86_64
compat-libstdc++-33-3.2.3-72.el7.x86_64
gcc-4.8.5-44.el7.x86_64
gcc-c++-4.8.5-44.el7.x86_64
elfutils-libelf-0.176-5.el7.x86_64
elfutils-libelf-devel-0.176-5.el7.x86_64
glibc-2.17-317.el7.x86_64
glibc-devel-2.17-317.el7.x86_64
ksh-20120801-142.el7.x86_64
libaio-0.3.109-13.el7.x86_64
libaio-devel-0.3.109-13.el7.x86_64
libgcc-4.8.5-44.el7.x86_64
libstdc++-4.8.5-44.el7.x86_64
libstdc++-devel-4.8.5-44.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
libXtst-1.2.3-1.el7.x86_64
libXrender-0.9.10-1.el7.x86_64
libXrender-devel-0.9.10-1.el7.x86_64
make-3.82-24.el7.x86_64
net-tools-2.0-0.25.20131004git.el7.x86_64
nfs-utils-1.3.0-0.68.el7.x86_64
smartmontools-7.0-2.el7.x86_64
sysstat-10.1.5-19.el7.x86_64
e2fsprogs-1.42.9-19.el7.x86_64
e2fsprogs-libs-1.42.9-19.el7.x86_64
fontconfig-devel-2.13.0-4.3.el7.x86_64
expect-5.45-14.el7_1.x86_64
unzip-6.0-21.el7.x86_64
openssh-clients-7.4p1-21.el7.x86_64
readline-6.2-11.el7.x86_64##################################################################################### /etc/hosts####################################################################################/etc/hosts :127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6##Public IP
10.211.55.100 rac11g01
10.211.55.101 rac11g02##Private IP
10.10.1.1 rac11g01-priv
10.10.1.2 rac11g02-priv##Virtual IP
10.211.55.102 rac11g01-vip
10.211.55.103 rac11g02-vip##Scan IP
10.211.55.105 rac11g-scan##################################################################################### Create user and groups(grid)####################################################################################Create user and groups(grid) :uid=11012(grid) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54330(racdba),54327(asmdba),54328(asmoper),54329(asmadmin)##################################################################################### Create user and groups(oracle)####################################################################################Create user and groups(oracle) :uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba),54327(asmdba)##################################################################################### multipath info:####################################################################################multipath info: :data_2 (2c7a3296d077abc19) dm-7 ROCKET  ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active`- 8:0:0:4 sdf 8:80 active ready running
ocr_3 (26db11f226db16dbc) dm-5 ROCKET  ,IMAGEFILE
size=15G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active`- 8:0:0:2 sdd 8:48 active ready running
data_1 (20726af970fe9d02e) dm-6 ROCKET  ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active`- 8:0:0:3 sde 8:64 active ready running
ocr_2 (2a3131d89cdb898cd) dm-4 ROCKET  ,IMAGEFILE
size=15G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active`- 8:0:0:1 sdc 8:32 active ready running
ocr_1 (27dddccfeca91227d) dm-3 ROCKET  ,IMAGEFILE
size=15G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active`- 8:0:0:0 sdb 8:16 active ready running##################################################################################### udev asm info:####################################################################################udev asm info: :/dev/asm_data_1
/dev/asm_data_2
/dev/asm_ocr_1
/dev/asm_ocr_2
/dev/asm_ocr_3##################################################################################### chronyd####################################################################################chronyd :● chronyd.service - NTP client/serverLoaded: loaded (/usr/lib/systemd/system/chronyd.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:chronyd(8)man:chrony.conf(5)May 06 14:23:54 localhost.localdomain systemd[1]: Starting NTP client/server...
May 06 14:23:54 localhost.localdomain chronyd[731]: chronyd version 3.4 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 +DEBUG)
May 06 14:23:54 localhost.localdomain systemd[1]: Started NTP client/server.
May 06 15:06:54 rac11g01 systemd[1]: Stopping NTP client/server...
May 06 15:06:54 rac11g01 chronyd[731]: chronyd exiting
May 06 15:06:54 rac11g01 systemd[1]: Stopped NTP client/server.##################################################################################### Time ntpdate####################################################################################Time ntpdate :##For ntpupdate
#OracleBegin
00 12 * * * /usr/sbin/ntpdate -u 10.211.55.18 && /usr/sbin/hwclock -w
#OracleEnd##################################################################################### Time dependent####################################################################################Time dependent :Sun May  9 04:11:14 CST 2021##################################################################################### avahi-daemon####################################################################################avahi-daemon :##################################################################################### Firewalld####################################################################################Firewalld :● firewalld.service - firewalld - dynamic firewall daemonLoaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:firewalld(1)May 06 14:23:54 localhost.localdomain systemd[1]: Starting firewalld - dynamic firewall daemon...
May 06 14:23:55 localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.
May 06 14:23:55 localhost.localdomain firewalld[750]: WARNING: AllowZoneDrifting is enabled. This is considered an insecure configuration option. It will be removed in a future release. Please consider disabling it now.
May 09 04:11:14 rac11g01 systemd[1]: Stopping firewalld - dynamic firewall daemon...
May 09 04:11:15 rac11g01 systemd[1]: Stopped firewalld - dynamic firewall daemon.##################################################################################### SELINUX####################################################################################SELINUX :Permissive##################################################################################### /etc/default/grub####################################################################################/etc/default/grub :GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="spectre_v2=retpoline rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet transparent_hugepage=never numa=off"
GRUB_DISABLE_RECOVERY="true"##################################################################################### Transparent_hugepages####################################################################################Transparent_hugepages :[always] madvise never##################################################################################### NUMA####################################################################################NUMA :BOOT_IMAGE=/vmlinuz-3.10.0-1160.el7.x86_64 root=/dev/mapper/rhel-root ro spectre_v2=retpoline rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet LANG=en_US.UTF-8##################################################################################### NetworkManager####################################################################################NetworkManager :● NetworkManager.service - Network ManagerLoaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)Active: inactive (dead) since Sun 2021-05-09 04:11:17 CST; 137ms agoDocs: man:NetworkManager(8)Main PID: 771 (code=exited, status=0/SUCCESS)May 06 14:43:52 localhost.localdomain NetworkManager[771]: <info>  [1620283432.5700] device (eth1): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
May 06 14:43:52 localhost.localdomain NetworkManager[771]: <info>  [1620283432.5703] device (eth1): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
May 06 14:43:52 localhost.localdomain NetworkManager[771]: <info>  [1620283432.5722] device (eth1): Activation: successful, device activated.
May 06 15:05:34 rac11g01 NetworkManager[771]: <info>  [1620284734.4530] hostname: hostname changed from "localhost.localdomain" to "rac11g01"
May 06 15:05:34 rac11g01 NetworkManager[771]: <info>  [1620284734.4538] policy: set-hostname: set hostname to 'rac11g01' (from system configuration)
May 09 04:11:17 rac11g01 NetworkManager[771]: <info>  [1620504677.4001] caught SIGTERM, shutting down normally.
May 09 04:11:17 rac11g01 systemd[1]: Stopping Network Manager...
May 09 04:11:17 rac11g01 NetworkManager[771]: <info>  [1620504677.4082] manager: NetworkManager state is now CONNECTED_SITE
May 09 04:11:17 rac11g01 NetworkManager[771]: <info>  [1620504677.4096] exiting (success)
May 09 04:11:17 rac11g01 systemd[1]: Stopped Network Manager.##################################################################################### rlwrap####################################################################################rlwrap :rlwrap 0.42##################################################################################### /etc/sysctl.conf####################################################################################/etc/sysctl.conf :fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 8365367295
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##################################################################################### NOZEROCONF####################################################################################NOZEROCONF :# Created by anaconda
#OracleBegin
NOZEROCONF=yes
#OracleEnd##################################################################################### /etc/security/limits.d/20-nproc.conf####################################################################################/etc/security/limits.d/20-nproc.conf :# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.*          -       nproc     16384
root       soft    nproc     unlimited##################################################################################### /etc/security/limits.conf####################################################################################/etc/security/limits.conf :# /etc/security/limits.conf
#
#This file sets the resource limits for the users logged in via PAM.
#It does not affect resource limits of the system services.
#
#Also note that configuration files in /etc/security/limits.d directory,
#which are read in alphabetical order, override the settings in this
#file in case the domain is the same or more specific.
#That means for example that setting a limit for wildcard domain here
#can be overriden with a wildcard setting in a config file in the
#subdirectory, but a user specific setting here can be overriden only
#with a user specific setting in the subdirectory.
#
#Each line describes a limit for a user in the form:
#
#<domain>        <type>  <item>  <value>
#
#Where:
#<domain> can be:
#        - a user name
#        - a group name, with @group syntax
#        - the wildcard *, for default entry
#        - the wildcard %, can be also used with %group syntax,
#                 for maxlogin limit
#
#<type> can have the two values:
#        - "soft" for enforcing the soft limits
#        - "hard" for enforcing hard limits
#
#<item> can be one of the following:
#        - core - limits the core file size (KB)
#        - data - max data size (KB)
#        - fsize - maximum filesize (KB)
#        - memlock - max locked-in-memory address space (KB)
#        - nofile - max number of open file descriptors
#        - rss - max resident set size (KB)
#        - stack - max stack size (KB)
#        - cpu - max CPU time (MIN)
#        - nproc - max number of processes
#        - as - address space limit (KB)
#        - maxlogins - max number of logins for this user
#        - maxsyslogins - max number of logins on the system
#        - priority - the priority to run user process with
#        - locks - max number of file locks the user can hold
#        - sigpending - max number of pending signals
#        - msgqueue - max memory used by POSIX message queues (bytes)
#        - nice - max nice priority allowed to raise to values: [-20, 19]
#        - rtprio - max realtime priority
#
#<domain>      <type>  <item>         <value>
##*               soft    core            0
#*               hard    rss             10000
#@student        hard    nproc           20
#@faculty        soft    nproc           20
#@faculty        hard    nproc           50
#ftp             hard    nproc           0
#@student        -       maxlogins       4# End of file
#OracleBegin
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 134217728
oracle soft memlock 134217728grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240
grid hard stack 32768
grid soft nproc 2047
grid hard nproc 16384
#OracleEnd##################################################################################### /etc/pam.d/login####################################################################################/etc/pam.d/login :#%PAM-1.0
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
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_loginuid.so
session    optional     pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
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
#OracleBegin
session required pam_limits.so
session required /lib64/security/pam_limits.so
#OracleEnd##################################################################################### /dev/shm####################################################################################/dev/shm :#
# /etc/fstab
# Created by anaconda on Thu May  6 02:11:47 2021
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/rhel-root   /                       xfs     defaults        0 0
UUID=32cd2453-e3e4-4e58-a3c5-d7eb092d7469 /boot                   xfs     defaults        0 0
/dev/mapper/rhel-home   /home                   xfs     defaults        0 0
/dev/mapper/rhel-swap   swap                    swap    defaults        0 0
/swapfile swap swap defaults 0 0
tmpfs /dev/shm tmpfs size=8169304k 0 0##################################################################################### df -hP####################################################################################df -hP :Filesystem             Size  Used Avail Use% Mounted on
devtmpfs               3.9G  4.0K  3.9G   1% /dev
tmpfs                  7.8G     0  7.8G   0% /dev/shm
tmpfs                  3.9G  9.2M  3.9G   1% /run
tmpfs                  3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/mapper/rhel-root   39G  8.5G   30G  23% /
/dev/sda1             1014M  137M  878M  14% /boot
/dev/mapper/rhel-home   19G   33M   19G   1% /home
tmpfs                  798M     0  798M   0% /run/user/0
/dev/sr0               4.3G  4.3G     0 100% /mnt##################################################################################### Oracle Profile####################################################################################Oracle Profile :# .bash_profile# Get the aliases and functions
if [ -f ~/.bashrc ]; then. ~/.bashrc
fi# User specific environment and startup programsPATH=$PATH:$HOME/.local/bin:$HOME/binexport PATH
################OracleBegin#########################
umask 022
export TMP=/tmp
export TMPDIR=$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8 #AL32UTF8,ZHS16GBK
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db
export ORACLE_HOSTNAME=rac11g01
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=rac11g1
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
alias sas='sqlplus / as sysdba'
alias alert='tail -500f $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace/alert_$ORACLE_SID.log|more'
export PS1="[`whoami`@`hostname`:"'$PWD]$ '
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias lsnrctl='rlwrap lsnrctl'
alias asmcmd='rlwrap asmcmd'
alias adrci='rlwrap adrci'
alias ggsci='rlwrap ggsci'
alias dgmgrl='rlwrap dgmgrl'
################OracleEnd################################################################################################################ Grid Profile####################################################################################Grid Profile :# .bash_profile# Get the aliases and functions
if [ -f ~/.bashrc ]; then. ~/.bashrc
fi# User specific environment and startup programsPATH=$PATH:$HOME/.local/bin:$HOME/binexport PATH
################OracleBegin#########################
umask 022
export TMP=/tmp
export TMPDIR=$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8 #AL32UTF8,ZHS16GBK
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`:"'$PWD]$ '
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias lsnrctl='rlwrap lsnrctl'
alias asmcmd='rlwrap asmcmd'
alias adrci='rlwrap adrci'
################OracleEnd################################################################################################################ /soft/grid.rsp####################################################################################/soft/grid.rsp :oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v11_2_0
ORACLE_HOSTNAME=rac11g01
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en
oracle.install.option=CRS_CONFIG
ORACLE_BASE=/u01/app/grid
ORACLE_HOME=/u01/app/11.2.0/grid
oracle.install.asm.OSDBA=asmdba
oracle.install.asm.OSOPER=asmoper
oracle.install.asm.OSASM=asmadmin
oracle.install.crs.config.gpnp.scanName=rac11g-scan
oracle.install.crs.config.gpnp.scanPort=1521
oracle.install.crs.config.clusterName=rac11g-cluster
oracle.install.crs.config.gpnp.configureGNS=false
oracle.install.crs.config.gpnp.gnsSubDomain=
oracle.install.crs.config.gpnp.gnsVIPAddress=
oracle.install.crs.config.autoConfigureClusterNodeVIP=false
oracle.install.crs.config.clusterNodes=rac11g01:rac11g01-vip,rac11g02:rac11g02-vip
oracle.install.crs.config.networkInterfaceList=eth0:10.211.55.0:1,eth1:10.10.1.0:2
oracle.install.crs.config.storageOption=ASM_STORAGE
oracle.install.crs.config.sharedFileSystemStorage.diskDriveMapping=
oracle.install.crs.config.sharedFileSystemStorage.votingDiskLocations=
oracle.install.crs.config.sharedFileSystemStorage.votingDiskRedundancy=NORMAL
oracle.install.crs.config.sharedFileSystemStorage.ocrLocations=
oracle.install.crs.config.sharedFileSystemStorage.ocrRedundancy=NORMAL
oracle.install.crs.config.useIPMI=false
oracle.install.crs.config.ipmi.bmcUsername=
oracle.install.crs.config.ipmi.bmcPassword=
oracle.install.asm.SYSASMPassword=oracle
oracle.install.asm.diskGroup.name=OCR
oracle.install.asm.diskGroup.redundancy=EXTERNAL
oracle.install.asm.diskGroup.AUSize=1
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.crs.upgrade.clusterNodes=
oracle.install.asm.upgradeASM=false
oracle.installer.autoupdates.option=SKIP_UPDATES
oracle.installer.autoupdates.downloadUpdatesLoc=
AUTOUPDATES_MYORACLESUPPORT_USERNAME=
AUTOUPDATES_MYORACLESUPPORT_PASSWORD=
PROXY_HOST=
PROXY_PORT=0
PROXY_USER=
PROXY_PWD=
PROXY_REALM=##################################################################################### Grid OPatch Version####################################################################################Grid OPatch Version :OPatch Version: 11.2.0.3.4OPatch succeeded.##################################################################################### Grid RDBMS####################################################################################Grid RDBMS :SQL*Plus: Release 11.2.0.4.0 Production##################################################################################### Grid Status####################################################################################Grid Status :--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnrONLINE  ONLINE       rac11g01                                     ONLINE  ONLINE       rac11g02
ora.OCR.dgONLINE  ONLINE       rac11g01                                     ONLINE  ONLINE       rac11g02
ora.asmONLINE  ONLINE       rac11g01                 Started             ONLINE  ONLINE       rac11g02                 Started
ora.gsdOFFLINE OFFLINE      rac11g01                                     OFFLINE OFFLINE      rac11g02
ora.net1.networkONLINE  ONLINE       rac11g01                                     ONLINE  ONLINE       rac11g02
ora.onsONLINE  ONLINE       rac11g01                                     ONLINE  ONLINE       rac11g02
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr1        ONLINE  ONLINE       rac11g01
ora.cvu1        ONLINE  ONLINE       rac11g01
ora.oc4j1        ONLINE  ONLINE       rac11g01
ora.rac11g01.vip1        ONLINE  ONLINE       rac11g01
ora.rac11g02.vip1        ONLINE  ONLINE       rac11g02
ora.scan1.vip1        ONLINE  ONLINE       rac11g01                                     ##################################################################################### OPatch lspatches####################################################################################OPatch lspatches :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 CHECK####################################################################################ASM CHECK :SQL*Plus: Release 11.2.0.4.0 Production on Sun May 9 05:05:08 2021Copyright (c) 1982, 2013, Oracle.  All rights reserved.Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management optionsNAME         TOTAL/G     FREE/G PER_FREE     STATE
-------------------- ---------- ---------- -------------------- --------------------
OCR              45  44.609375 99%          MOUNTED
DATA                 20 19.9052734 100%         MOUNTEDMODE_STATUS        NAME         STATE        PATH
--------------------- -------------------- -------------------- ------------------------------------------------------------
ONLINE            OCR_0001         NORMAL       /dev/asm_ocr_2
ONLINE            OCR_0000         NORMAL       /dev/asm_ocr_1
ONLINE            DATA_0000        NORMAL       /dev/asm_data_1
ONLINE            OCR_0002         NORMAL       /dev/asm_ocr_3
ONLINE            DATA_0001        NORMAL       /dev/asm_data_2Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options##################################################################################### /soft/db.rsp####################################################################################/soft/db.rsp :oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=rac11g01
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en,zh_CN
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db
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=rac11g01,rac11g02
DECLINE_SECURITY_UPDATES=true
oracle.installer.autoupdates.option=SKIP_UPDATES##################################################################################### Oracle RDBMS####################################################################################Oracle RDBMS :SQL*Plus: Release 11.2.0.4.0 Production##################################################################################### Oracle OPatch Version####################################################################################Oracle OPatch Version :OPatch Version: 11.2.0.3.28OPatch succeeded.##################################################################################### OPatch lspatches####################################################################################OPatch lspatches :31537677;Database Patch Set Update : 11.2.0.4.201020 (31537677)
29938455;OCW Patch Set Update : 11.2.0.4.191015 (29938455)OPatch succeeded.##################################################################################### ORACLE Instance####################################################################################ORACLE Instance :LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 09-MAY-2021 05:38:06Copyright (c) 1991, 2013, Oracle.  All rights reserved.Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                09-MAY-2021 04:52:49
Uptime                    0 days 0 hr. 45 min. 17 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File         /u01/app/grid/diag/tnslsnr/rac11g01/listener/alert/log.xml
Listening Endpoints Summary...(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.211.55.100)(PORT=1521)))(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.211.55.102)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).Instance "+ASM1", status READY, has 1 handler(s) for this service...
Service "rac11g" has 1 instance(s).Instance "rac11g1", status READY, has 1 handler(s) for this service...
Service "rac11gXDB" has 1 instance(s).Instance "rac11g1", status READY, has 1 handler(s) for this service...
The command completed successfully##################################################################################### Oracle Implied parameters####################################################################################Oracle Implied parameters :SQL*Plus: Release 11.2.0.4.0 Production on Sun May 9 05:38:07 2021Copyright (c) 1982, 2013, Oracle.  All rights reserved.Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing optionsNAME                     TYPE    VALUE
------------------------------------ ----------- ------------------------------
audit_trail              string  NONENAME                    TYPE    VALUE
------------------------------------ ----------- ------------------------------
deferred_segment_creation        boolean     FALSENAME                   TYPE    VALUE
------------------------------------ ----------- ------------------------------
result_cache_max_size            big integer 0NAME                   VALUE      DESCRIB
---------------------------------------- ---------- ------------------------------------------------------------
_use_adaptive_log_file_sync      TRUE       Adaptively switch between post/wait and polling
_optimizer_cartesian_enabled         FALSE      optimizer cartesian join enabledDisconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

节点二:

[root@rac11g02 soft]# cat oracleAllSilent_20210506025134.log
##################################################################################### Installation Logging######################################################################################################################################################################### OS Version####################################################################################OS Version :linux7##################################################################################### DB Version####################################################################################DB Version :11.2.0.4##################################################################################### HOSTNAME####################################################################################HOSTNAME :rac11g02##################################################################################### RPM Check####################################################################################RPM Check :bc-1.06.95-13.el7.x86_64
binutils-2.27-44.base.el7.x86_64
compat-libcap1-1.10-7.el7.x86_64
package compat-libstdc++-33 is not installed
gcc-4.8.5-44.el7.x86_64
gcc-c++-4.8.5-44.el7.x86_64
elfutils-libelf-0.176-5.el7.x86_64
elfutils-libelf-devel-0.176-5.el7.x86_64
glibc-2.17-317.el7.x86_64
glibc-devel-2.17-317.el7.x86_64
ksh-20120801-142.el7.x86_64
libaio-0.3.109-13.el7.x86_64
libaio-devel-0.3.109-13.el7.x86_64
libgcc-4.8.5-44.el7.x86_64
libstdc++-4.8.5-44.el7.x86_64
libstdc++-devel-4.8.5-44.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
libXtst-1.2.3-1.el7.x86_64
libXrender-0.9.10-1.el7.x86_64
libXrender-devel-0.9.10-1.el7.x86_64
make-3.82-24.el7.x86_64
net-tools-2.0-0.25.20131004git.el7.x86_64
nfs-utils-1.3.0-0.68.el7.x86_64
smartmontools-7.0-2.el7.x86_64
sysstat-10.1.5-19.el7.x86_64
e2fsprogs-1.42.9-19.el7.x86_64
e2fsprogs-libs-1.42.9-19.el7.x86_64
fontconfig-devel-2.13.0-4.3.el7.x86_64
expect-5.45-14.el7_1.x86_64
unzip-6.0-21.el7.x86_64
openssh-clients-7.4p1-21.el7.x86_64
readline-6.2-11.el7.x86_64##################################################################################### /etc/hosts####################################################################################/etc/hosts :127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6##Public IP
10.211.55.100 rac11g01
10.211.55.101 rac11g02##Private IP
10.10.1.1 rac11g01-priv
10.10.1.1 rac11g02-priv##Virtual IP
10.211.55.102 rac11g01-vip
10.211.55.103 rac11g02-vip##Scan IP
10.211.55.105 rac11g-scan##################################################################################### Create user and groups(grid)####################################################################################Create user and groups(grid) :uid=11012(grid) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54330(racdba),54327(asmdba),54328(asmoper),54329(asmadmin)##################################################################################### Create user and groups(oracle)####################################################################################Create user and groups(oracle) :uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba),54327(asmdba)##################################################################################### multipath info:####################################################################################multipath info: :data_2 (2c7a3296d077abc19) dm-7 ROCKET  ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active`- 8:0:0:4 sdf 8:80 active ready running
ocr_3 (26db11f226db16dbc) dm-5 ROCKET  ,IMAGEFILE
size=15G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active`- 8:0:0:2 sdd 8:48 active ready running
data_1 (20726af970fe9d02e) dm-6 ROCKET  ,IMAGEFILE
size=10G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active`- 8:0:0:3 sde 8:64 active ready running
ocr_2 (2a3131d89cdb898cd) dm-4 ROCKET  ,IMAGEFILE
size=15G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active`- 8:0:0:1 sdc 8:32 active ready running
ocr_1 (27dddccfeca91227d) dm-3 ROCKET  ,IMAGEFILE
size=15G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active`- 8:0:0:0 sdb 8:16 active ready running##################################################################################### udev asm info:####################################################################################udev asm info: :/dev/asm_data_1
/dev/asm_data_2
/dev/asm_ocr_1
/dev/asm_ocr_2
/dev/asm_ocr_3##################################################################################### chronyd####################################################################################chronyd :● chronyd.service - NTP client/serverLoaded: loaded (/usr/lib/systemd/system/chronyd.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:chronyd(8)man:chrony.conf(5)May 06 14:23:55 localhost.localdomain systemd[1]: Starting NTP client/server...
May 06 14:23:55 localhost.localdomain chronyd[725]: chronyd version 3.4 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 +DEBUG)
May 06 14:23:55 localhost.localdomain systemd[1]: Started NTP client/server.
May 06 14:52:16 rac11g02 systemd[1]: Stopping NTP client/server...
May 06 14:52:16 rac11g02 chronyd[725]: chronyd exiting
May 06 14:52:16 rac11g02 systemd[1]: Stopped NTP client/server.##################################################################################### Time dependent####################################################################################Time dependent :Thu May  6 14:52:16 CST 2021##################################################################################### avahi-daemon####################################################################################avahi-daemon :##################################################################################### Firewalld####################################################################################Firewalld :● firewalld.service - firewalld - dynamic firewall daemonLoaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:firewalld(1)May 06 14:23:55 localhost.localdomain systemd[1]: Starting firewalld - dynamic firewall daemon...
May 06 14:23:56 localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.
May 06 14:23:56 localhost.localdomain firewalld[753]: WARNING: AllowZoneDrifting is enabled. This is considered an insecure configuration option. It will be removed in a future release. Please consider disabling it now.
May 06 14:52:16 rac11g02 systemd[1]: Stopping firewalld - dynamic firewall daemon...
May 06 14:52:17 rac11g02 systemd[1]: Stopped firewalld - dynamic firewall daemon.##################################################################################### SELINUX####################################################################################SELINUX :Permissive##################################################################################### /etc/default/grub####################################################################################/etc/default/grub :GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="spectre_v2=retpoline rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet transparent_hugepage=never numa=off"
GRUB_DISABLE_RECOVERY="true"##################################################################################### Transparent_hugepages####################################################################################Transparent_hugepages :[always] madvise never##################################################################################### NUMA####################################################################################NUMA :BOOT_IMAGE=/vmlinuz-3.10.0-1160.el7.x86_64 root=/dev/mapper/rhel-root ro spectre_v2=retpoline rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet LANG=en_US.UTF-8##################################################################################### NetworkManager####################################################################################NetworkManager :● NetworkManager.service - Network ManagerLoaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)Active: inactive (dead) since Thu 2021-05-06 14:52:19 CST; 122ms agoDocs: man:NetworkManager(8)Main PID: 774 (code=exited, status=0/SUCCESS)May 06 14:45:41 localhost.localdomain NetworkManager[774]: <info>  [1620283541.8760] device (eth1): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
May 06 14:45:41 localhost.localdomain NetworkManager[774]: <info>  [1620283541.8765] device (eth1): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
May 06 14:45:41 localhost.localdomain NetworkManager[774]: <info>  [1620283541.8786] device (eth1): Activation: successful, device activated.
May 06 14:52:06 rac11g02 NetworkManager[774]: <info>  [1620283926.6518] hostname: hostname changed from "localhost.localdomain" to "rac11g02"
May 06 14:52:06 rac11g02 NetworkManager[774]: <info>  [1620283926.6524] policy: set-hostname: set hostname to 'rac11g02' (from system configuration)
May 06 14:52:19 rac11g02 NetworkManager[774]: <info>  [1620283939.7413] caught SIGTERM, shutting down normally.
May 06 14:52:19 rac11g02 systemd[1]: Stopping Network Manager...
May 06 14:52:19 rac11g02 NetworkManager[774]: <info>  [1620283939.8680] manager: NetworkManager state is now CONNECTED_SITE
May 06 14:52:19 rac11g02 NetworkManager[774]: <info>  [1620283939.8693] exiting (success)
May 06 14:52:19 rac11g02 systemd[1]: Stopped Network Manager.##################################################################################### /etc/sysctl.conf####################################################################################/etc/sysctl.conf :fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 8365367295
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##################################################################################### NOZEROCONF####################################################################################NOZEROCONF :# Created by anaconda
#OracleBegin
NOZEROCONF=yes
#OracleEnd##################################################################################### /etc/security/limits.d/20-nproc.conf####################################################################################/etc/security/limits.d/20-nproc.conf :# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.*          -       nproc     16384
root       soft    nproc     unlimited##################################################################################### /etc/security/limits.conf####################################################################################/etc/security/limits.conf :# /etc/security/limits.conf
#
#This file sets the resource limits for the users logged in via PAM.
#It does not affect resource limits of the system services.
#
#Also note that configuration files in /etc/security/limits.d directory,
#which are read in alphabetical order, override the settings in this
#file in case the domain is the same or more specific.
#That means for example that setting a limit for wildcard domain here
#can be overriden with a wildcard setting in a config file in the
#subdirectory, but a user specific setting here can be overriden only
#with a user specific setting in the subdirectory.
#
#Each line describes a limit for a user in the form:
#
#<domain>        <type>  <item>  <value>
#
#Where:
#<domain> can be:
#        - a user name
#        - a group name, with @group syntax
#        - the wildcard *, for default entry
#        - the wildcard %, can be also used with %group syntax,
#                 for maxlogin limit
#
#<type> can have the two values:
#        - "soft" for enforcing the soft limits
#        - "hard" for enforcing hard limits
#
#<item> can be one of the following:
#        - core - limits the core file size (KB)
#        - data - max data size (KB)
#        - fsize - maximum filesize (KB)
#        - memlock - max locked-in-memory address space (KB)
#        - nofile - max number of open file descriptors
#        - rss - max resident set size (KB)
#        - stack - max stack size (KB)
#        - cpu - max CPU time (MIN)
#        - nproc - max number of processes
#        - as - address space limit (KB)
#        - maxlogins - max number of logins for this user
#        - maxsyslogins - max number of logins on the system
#        - priority - the priority to run user process with
#        - locks - max number of file locks the user can hold
#        - sigpending - max number of pending signals
#        - msgqueue - max memory used by POSIX message queues (bytes)
#        - nice - max nice priority allowed to raise to values: [-20, 19]
#        - rtprio - max realtime priority
#
#<domain>      <type>  <item>         <value>
##*               soft    core            0
#*               hard    rss             10000
#@student        hard    nproc           20
#@faculty        soft    nproc           20
#@faculty        hard    nproc           50
#ftp             hard    nproc           0
#@student        -       maxlogins       4# End of file
#OracleBegin
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 134217728
oracle soft memlock 134217728grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240
grid hard stack 32768
grid soft nproc 2047
grid hard nproc 16384
#OracleEnd##################################################################################### /etc/pam.d/login####################################################################################/etc/pam.d/login :#%PAM-1.0
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
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_loginuid.so
session    optional     pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
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
#OracleBegin
session required pam_limits.so
session required /lib64/security/pam_limits.so
#OracleEnd##################################################################################### /dev/shm####################################################################################/dev/shm :#
# /etc/fstab
# Created by anaconda on Thu May  6 02:12:34 2021
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/rhel-root   /                       xfs     defaults        0 0
UUID=83d7450b-04c8-46e8-9625-a3787297621e /boot                   xfs     defaults        0 0
/dev/mapper/rhel-home   /home                   xfs     defaults        0 0
/dev/mapper/rhel-swap   swap                    swap    defaults        0 0
/swapfile swap swap defaults 0 0
tmpfs /dev/shm tmpfs size=8169304k 0 0##################################################################################### df -hP####################################################################################df -hP :Filesystem             Size  Used Avail Use% Mounted on
devtmpfs               3.9G  4.0K  3.9G   1% /dev
tmpfs                  7.8G     0  7.8G   0% /dev/shm
tmpfs                  3.9G  9.1M  3.9G   1% /run
tmpfs                  3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/mapper/rhel-root   39G  3.6G   35G  10% /
/dev/sda1             1014M  137M  878M  14% /boot
/dev/mapper/rhel-home   19G   33M   19G   1% /home
tmpfs                  798M     0  798M   0% /run/user/0
/dev/sr0               4.3G  4.3G     0 100% /mnt##################################################################################### Oracle Profile####################################################################################Oracle Profile :# .bash_profile# Get the aliases and functions
if [ -f ~/.bashrc ]; then. ~/.bashrc
fi# User specific environment and startup programsPATH=$PATH:$HOME/.local/bin:$HOME/binexport PATH
################OracleBegin#########################
umask 022
export TMP=/tmp
export TMPDIR=$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8 #AL32UTF8,ZHS16GBK
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db
export ORACLE_HOSTNAME=rac11g02
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=rac11g2
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
alias sas='sqlplus / as sysdba'
alias alert='tail -500f $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace/alert_$ORACLE_SID.log|more'
export PS1="[`whoami`@`hostname`:"'$PWD]$ '
################OracleEnd################################################################################################################ Grid Profile####################################################################################Grid Profile :# .bash_profile# Get the aliases and functions
if [ -f ~/.bashrc ]; then. ~/.bashrc
fi# User specific environment and startup programsPATH=$PATH:$HOME/.local/bin:$HOME/binexport PATH
################OracleBegin#########################
umask 022
export TMP=/tmp
export TMPDIR=$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8 #AL32UTF8,ZHS16GBK
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`:"'$PWD]$ '
################OracleEnd###########################

转载至https://blog.csdn.net/m0_50546016/article/details/116549125

1.5小时!一键部署Oracle 11GR2 RAC 集群相关推荐

  1. 1.5小时,一键部署Oracle 11GR2 RAC 集群

    无人值守安装Oracle 11GR2 RAC集群,只需要1.5小时?没错,通过脚本静默安装,只需要1.5小时,包括安装补丁,建库. 脚本下载链接:SHELL脚本进行oracle数据库一键安装,实现真正 ...

  2. oracle集群 节点切换不,Oracle 11gR2 RAC集群单节点关闭开启

    Oracle Product集群因OS需要打patch需要单独关闭节点进行维护,机器为个人测试Oracle 11g R2测试集群 操作步骤 --确认集群的db_unique_name,本初的db_un ...

  3. Oracle 11gR2 RAC集群服务启动与关闭命令汇总

    网上好多帖子都是 启动和关闭相关服务的命令 # su – oracle $ crs_start–all --启动所有的crs服务 $ crs_stop–all --停止所有的crs服务 $ crsct ...

  4. 25分钟!一键部署Oracle 11GR2 HA 单机集群

    无人值守安装Oracle 11GR2单机集群,只需要25分钟?没错,通过脚本静默安装,只需要25分钟,包括安装补丁,建库. 脚本下载链接:SHELL脚本进行oracle数据库一键安装,实现真正的无人值 ...

  5. 《架构系列四:一键部署应用到Tomcat集群中》

    <架构系列四:一键部署应用到Tomcat集群中> 基于前面的<架构系列三:使用Keepalived+Nginx+tomcat实现集群部署>,我们配置了nginx+Tomcat集 ...

  6. ORACLE 11g RAC 集群的管理与维护(3) —— crsctl 命令之(三) :管理 crs

    ORACLE 11g RAC 集群的管理与维护(3) -- crsctl 命令之(三) :管理 crs CRS(Cluster Ready Service,集群就绪服务).CRS 主要完成集群成员管理 ...

  7. oel6mysql_OEL6.5_X86平台部署Oracle 11gR2 RAC并配置ACFS

    ACFS是什么,Oracle官方定义: Oracle AutomaticStorage Management Cluster File System (Oracle ACFS) is a multi- ...

  8. Oracle 19c: RAC 集群技术的坚持与放弃(含PPT下载)

    在 OOW 上发布出来关于 Oracle RAC 集群的几篇文章,可以让我们一睹 Oracle RAC集群技术的发展路线. (关注本公众号,回复 2018OOW 在 RAC 目录下是本文参考的3个PP ...

  9. 在VMware Workstation中一步一步搭建Oracle 21c rac集群环境

    目录 一.rac安装规划 1.1.所需软件介绍 1.2.IP地址规划 1.3.操作系统本地磁盘分区规划 1.4.共享存储与ASM磁盘组规划 二.操作系统配置 2.1.准备OS 2.2.添加网卡 2.3 ...

最新文章

  1. 想法2: 充电性冰袋
  2. android游戏画面抖动,抖音游戏主播是怎么直播手机画面的?
  3. mybatis工具类
  4. 1.18.2.9.查询优化、Blink planner、解释表
  5. html5 coverflow,使用FancyCoverFlow实现3D无限循环切换视图
  6. java中关于length的真确理解~~~~有补充的请跟帖~~~
  7. devops最佳实践_DevOps最佳实践如何改善团队动力
  8. python中用于生成数字序列的函数_Python中的生成器?
  9. 图片尺寸判断等-我们到底能走多远系列(21)
  10. C#高级编程----反射的小结
  11. [解决方案]word文档无法存放过长过大的visio图片
  12. 利用Google快讯和GoogleReader收集信息
  13. 在 Linux 中安装 Firefox
  14. 异常检测——线性模型
  15. 自定义Xshell颜色主题Color Schemes
  16. 重新定义未来的汽车芯片角色 拼算力只是第一步
  17. gardner环 matlab,gardner 算法matlab实现
  18. IP网络控制器架构与关键技术
  19. IDEA中如何快速的阅读源码
  20. electron打包后在win7上打开异常KERNEL32.dll

热门文章

  1. 国产操作系统-中标麒麟
  2. Python重要知识点梳理一
  3. 星域cdn概念股票_星域CDN获工信部牌照 CDN行业步入规范时代
  4. android8.1字体,Android 8.1采用全新字体:圆润舒适
  5. 2019量子计算机股票,2019年中盘点:大战一触即发,PC市场已剑拔弩张
  6. Linux 下五个最佳视频编辑软件
  7. 【MYSQL】MySQL安装配置
  8. office2016资源文件以及安装教程
  9. 铁电存储器FM25L16B
  10. Kotlin Heroes 5: ICPC Round —— Codeforces Contest