当前位置:   article > 正文

使用 VMware 16 RHEL7.7 虚拟机静默安装 Oracle 19c RAC

verifying resolv.conf integrity ...failed (prvg-13159)

作者 | JiekeXu

来源 | JiekeXu DBA之路(ID: JiekeXu_IT)

大家好,我是 JiekeXu,很高兴又和大家见面了,今天和大家一起来看看 使用 VMware 16  RHEL7.7 虚拟机静默安装 Oracle 19c RAC ,欢迎点击上方蓝字关注我,标星或置顶,更多干货第一时间到达!


虚拟机安装以及一些基础配置,前面一篇文章已经写过了,这里不在重复,但有些关键步骤这里再次提一下即可。不管安装 11g、12c、19c、21c RAC,只要仔细认真对待,便可以安装成功。推荐先看前段时间的这篇《一步步安装 Oracle 19c RAC 》。

  1. Linux 64 位 19.12 RUhttps://www.modb.pro/download/137693
  2. Linux 64 位 RAC 安装包:https://www.modb.pro/download/5713

1.新建用户,组,目录 并修改 sshd_config  快速登录

1.1 新建用户和组
  1. groupadd -g 54321 oinstall
  2. groupadd -g 54322 dba
  3. groupadd -g 54323 oper
  4. groupadd -g 54324 backupdba
  5. groupadd -g 54325 dgdba
  6. groupadd -g 54326 kmdba
  7. groupadd -g 54327 asmdba
  8. groupadd -g 54328 asmoper
  9. groupadd -g 54329 asmadmin
  10. groupadd -g 54330 racdba
  11. useradd -g oinstall -G dba,oper,backupdba,dgdba,kmdba,asmdba,racdba -u 10000 oracle
  12. useradd -g oinstall -G dba,asmdba,asmoper,asmadmin,racdba -u 10001 grid
  13. echo "Oracle_19C" | passwd --stdin oracle
  14. echo "Oracle_19C" | passwd --stdin grid
1.2 创建目录
  1. mkdir -p /u01/app/19.0.0/grid
  2. mkdir -p /u01/app/grid
  3. mkdir -p /u01/app/oracle/product/19.0.0/dbhome_1
  4. mkdir -p /home/soft
  5. chown -R grid:oinstall /u01
  6. chown -R oracle:oinstall /u01/app/oracle
  7. chmod -R 775 /u01
  8. chmod -R 775 /home/soft
  9. chown -R oracle:oinstall /home/soft
1.3 环境变量
  1. cat >> /home/oracle/.bash_profile << "EOF"
  2. ################ add ORACLE_PATH #########################
  3. export PS1="`whoami`@`hostname`:"'[$PWD]$'
  4. export HOST=`hostname | cut -f1 -d"."`
  5. export PS1='${HOST}:$PWD(${ORACLE_SID})$ '
  6. export LANG=en_US
  7. umask 022
  8. export TMP=/tmp
  9. export TMPDIR=$TMP
  10. export ORACLE_BASE=/u01/app/oracle
  11. export ORACLE_HOME=$ORACLE_BASE/product/19.0.0/dbhome_1
  12. export ORACLE_HOSTNAME=jiekexu-r1
  13. export TNS_ADMIN=$ORACLE_HOME/network/admin
  14. export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
  15. export ORACLE_SID=JiekeXu1
  16. export PATH=/usr/sbin:$PATH
  17. export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
  18. export NLS_DATE_FORMAT="yyyy-mm-dd HH24:MI:SS"
  19. export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
  20. export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
  21. alias sas='sqlplus / as sysdba'
  22. EOF
  1. --配置LoginGraceTime参数为0, 将timeout wait设置为无限制
  2. cp /etc/ssh/sshd_config /etc/ssh/sshd_config_`date +"%Y%m%d_%H%M%S"` && sed -i '/#LoginGraceTime 2m/ s/#LoginGraceTime 2m/LoginGraceTime 0/' /etc/ssh/sshd_config && grep LoginGraceTime /etc/ssh/sshd_config
  3. --加快SSH登陆速度,禁用DNS
  4. cp /etc/ssh/sshd_config /etc/ssh/sshd_config_`date +"%Y%m%d_%H%M%S"` && sed -i '/#UseDNS yes/ s/#UseDNS yes/UseDNS no/' /etc/ssh/sshd_config && grep UseDNS /etc/ssh/sshd_config

2.修改 hosts 文件并配置网卡

2.1 hosts 配置
  1. cp /etc/hosts /etc/hosts_`date +"%Y%m%d_%H%M%S"`
  2. echo '#public ip
  3. 192.168.75.128 jiekexu-r1
  4. 192.168.75.129 jiekexu-r2
  5. #private ip
  6. 10.10.10.128 jiekexu-r1-priv
  7. 10.10.10.129 jiekexu-r2-priv
  8. #vip
  9. 192.168.75.130 jiekexu-r1-vip
  10. 192.168.75.131 jiekexu-r2-vip
  11. #scanip
  12. 192.168.75.132 jiekexu-racscan'>> /etc/hosts
2.2 public IP 和 private 私网配置
  1. [root@jiekexu-r1 network-scripts]# more ifcfg-ens32
  2. TYPE="Ethernet"
  3. PROXY_METHOD="none"
  4. BROWSER_ONLY="no"
  5. BOOTPROTO="dhcp"
  6. DEFROUTE="yes"
  7. IPV4_FAILURE_FATAL="yes"
  8. IPV6INIT="yes"
  9. IPV6_AUTOCONF="yes"
  10. IPV6_DEFROUTE="yes"
  11. IPV6_FAILURE_FATAL="no"
  12. IPV6_ADDR_GEN_MODE="stable-privacy"
  13. NAME="ens32"
  14. UUID="e8332396-7724-410f-9887-1fc0e27fc818"
  15. DEVICE="ens32"
  16. ONBOOT="yes"
  17. GATEWAY="192.168.75.2"
  18. IPADDR="192.168.75.128"
  19. PREFIX="24"
  20. IPV6_PRIVACY="no"
  21. [root@jiekexu-r1 network-scripts]# more ifcfg-ens33
  22. TYPE=Ethernet
  23. PROXY_METHOD=none
  24. BROWSER_ONLY=no
  25. BOOTPROTO=static
  26. DEFROUTE=yes
  27. IPV4_FAILURE_FATAL=no
  28. IPV6INIT=yes
  29. IPV6_AUTOCONF=yes
  30. IPV6_DEFROUTE=yes
  31. IPV6_FAILURE_FATAL=no
  32. IPV6_ADDR_GEN_MODE=stable-privacy
  33. NAME=ens33
  34. DEVICE=ens33
  35. HWADDR="00:0C:29:2C:79:D8"
  36. uuid="c96bc909-188e-ec64-3a96-6a90982b08ad"
  37. ONBOOT=yes
  38. GATEWAY="10.10.10.1"
  39. IPADDR="10.10.10.128"
  40. PREFIX="24"

3.共享存储配置

3.1 命令行新建存储文件

这里暂且规划 3 块 3G OCR 盘,两块 10G DATA 数据盘,一块 10G  ARCH 归档盘。

  1. vmware-vdiskmanager.exe -c -s 3GB -a lsilogic -t 2 "D:\VMware_File\Sharedisk19C\share-ocr01.vmdk"
  2. vmware-vdiskmanager.exe -c -s 3GB -a lsilogic -t 2 "D:\VMware_File\Sharedisk19C\share-ocr02.vmdk"
  3. vmware-vdiskmanager.exe -c -s 3GB -a lsilogic -t 2 "D:\VMware_File\Sharedisk19C\share-ocr03.vmdk"
  4. vmware-vdiskmanager.exe -c -s 10GB -a lsilogic -t 2 "D:\VMware_File\Sharedisk19C\share-data01.vmdk"
  5. vmware-vdiskmanager.exe -c -s 10GB -a lsilogic -t 2 "D:\VMware_File\Sharedisk19C\share-data02.vmdk"
  6. vmware-vdiskmanager.exe -c -s 10GB -a lsilogic -t 2 "D:\VMware_File\Sharedisk19C\share-arch01.vmdk"

以管理员运行 cmd 命令行进入到 VM ware 安装目录下执行以上命令

C:\WINDOWS\system32>cd C:\Program Files (x86)\VMware\VMware Workstation

3.2关闭两台虚拟机,编辑两台主机的相关 vmx 配置文件

分别将以下配置添加至两台主机的 vmx 配置文件

  1. #shared disks configure
  2. diskLib.dataCacheMaxSize=0        
  3. diskLib.dataCacheMaxReadAheadSize=0
  4. diskLib.dataCacheMinReadAheadSize=0
  5. diskLib.dataCachePageSize=4096    
  6. diskLib.maxUnsyncedWrites = "0"
  7. disk.locking = "FALSE"
  8. scsi1.sharedBus = "virtual"
  9. scsi1.present = "TRUE"
  10. scsi1.virtualDev = "lsilogic"
  11. scsi1:0.mode = "independent-persistent"
  12. scsi1:0.deviceType = "disk"
  13. scsi1:0.present = "TRUE"
  14. scsi1:0.fileName = "D:\VMware_File\Sharedisk19C\share-ocr01.vmdk"  
  15. scsi1:0.redo = ""
  16. scsi1:1.mode = "independent-persistent"
  17. scsi1:1.deviceType = "disk"
  18. scsi1:1.present = "TRUE"
  19. scsi1:1.fileName = "D:\VMware_File\Sharedisk19C\share-ocr02.vmdk"
  20. scsi1:1.redo = ""
  21. scsi1:2.mode = "independent-persistent"
  22. scsi1:2.deviceType = "disk"
  23. scsi1:2.present = "TRUE"
  24. scsi1:2.fileName = "D:\VMware_File\Sharedisk19C\share-ocr03.vmdk"
  25. scsi1:2.redo = ""
  26. scsi1:3.mode = "independent-persistent"
  27. scsi1:3.deviceType = "disk"
  28. scsi1:3.present = "TRUE"
  29. scsi1:3.fileName = "D:\VMware_File\Sharedisk19C\share-data01.vmdk"
  30. scsi1:3.redo = ""
  31. scsi1:4.mode = "independent-persistent"
  32. scsi1:4.deviceType = "disk"
  33. scsi1:4.present = "TRUE"
  34. scsi1:4.fileName = "D:\VMware_File\Sharedisk19C\share-data02.vmdk"
  35. scsi1:4.redo = ""
  36. scsi1:5.mode = "independent-persistent"
  37. scsi1:5.deviceType = "disk"
  38. scsi1:5.present = "TRUE"
  39. scsi1:5.fileName = "D:\VMware_File\Sharedisk19C\share-arch01.vmdk"
  40. scsi1:5.redo =file ""
fileName 指定虚拟机共享存储的位置及文件名。"D:\VMware_File\Sharedisk19C\share-arch01.vmdk"
3.3开启虚拟机

3.4 使用 multipath+udev 配置存储

参考前面的文章配置即可

  1. [root@jiekexu-r1 network-scripts]# lsblk
  2. NAME                       MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  3. sda                           8:0   0   60G 0 disk
  4. +-sda1                       8:1   0   1G 0 part /boot
  5. +-sda2                       8:2   0   59G 0 part
  6. +-rhel_jiekexu--test-root 253:0   0 35.6G 0 lvm /
  7. +-rhel_jiekexu--test-swap 253:1   0   6G 0 lvm [SWAP]
  8. +-rhel_jiekexu--test-home 253:2   0 17.4G 0 lvm /home
  9. sdb                           8:16   0   3G 0 disk
  10. sdc                           8:32   0   3G 0 disk
  11. sdd                           8:48   0   3G 0 disk
  12. sde                           8:64   0   10G 0 disk
  13. sdf                           8:80   0   10G 0 disk
  14. sdg                           8:96   0   10G 0 disk
  15. sr0                         11:0   1 4.2G 0 rom

4.操作系统配置

4.1挂载光盘镜像配置 yum 源
  1. mkdir /mnt/dvd
  2. mount /dev/sr0 /mnt/dvd
  3. [root@jiekexu-r1 network-scripts]# ls -lh /mnt/dvd
  4. total 974K
  5. dr-xr-xr-x 4 root root 2.0K Jul 23 2019 addons
  6. dr-xr-xr-x 3 root root 2.0K Jul 23 2019 EFI
  7. -r--r--r-- 1 root root 8.1K Jul 23 2019 EULA
  8. -r--r--r-- 1 root root 1.5K Jul 23 2019 extra_files.json
  9. -r--r--r-- 1 root root 18K Jul 23 2019 GPL
  10. dr-xr-xr-x 3 root root 2.0K Jul 23 2019 images
  11. dr-xr-xr-x 2 root root 2.0K Jul 23 2019 isolinux
  12. dr-xr-xr-x 2 root root 2.0K Jul 23 2019 LiveOS
  13. -r--r--r-- 1 root root 114 Jul 23 2019 media.repo
  14. dr-xr-xr-x 2 root root 924K Jul 23 2019 Packages
  15. dr-xr-xr-x 2 root root 2.0K Jul 23 2019 repodata
  16. -r--r--r-- 1 root root 3.3K Jul 3 2019 RPM-GPG-KEY-redhat-beta
  17. -r--r--r-- 1 root root 3.2K Jul 3 2019 RPM-GPG-KEY-redhat-release
  18. -r--r--r-- 1 root root 1.8K Jul 23 2019 TRANS.TBL

/mnt/dvd/  则是配置 yum 仓库要用到的路径

  1. cd /etc/yum.repos.d/
  2. cat << EOF >> /etc/yum.repos.d/redhat.repo
  3. [rhel7]name=jiekexu repobaseurl=file:///mnt/dvd/gpgcheck=0
  4. EOF
  5. yum clean all
  6. yum list | grep zsh

4.2 配置多路径

##安装multipath

yum install -y device-mapper*

#生成配置文件

mpathconf --enable --with_multipathd y

  1. [root@jiekexu-r1 ~]# lsblk
  2. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  3. sda 8:0 0 60G 0 disk
  4. +-sda1 8:1 0 1G 0 part /boot
  5. +-sda2 8:2 0 59G 0 part
  6. +-rhel_jiekexu--test-root 253:0 0 35.6G 0 lvm /
  7. +-rhel_jiekexu--test-swap 253:1 0 6G 0 lvm [SWAP]
  8. +-rhel_jiekexu--test-home 253:2 0 17.4G 0 lvm /home
  9. sdb 8:16 0 3G 0 disk
  10. sdc 8:32 0 3G 0 disk
  11. sdd 8:48 0 3G 0 disk
  12. sde 8:64 0 10G 0 disk
  13. sdf 8:80 0 10G 0 disk
  14. sdg 8:96 0 10G 0 disk
  15. sr0 11:0 1 4.2G 0 rom /mnt/dvd
  16. [root@jiekexu-r1 repodata]# /usr/lib/udev/scsi_id -g -u /dev/sdb
  17. 36000c29714156f014c53bf30fbcc4162
  18. [root@jiekexu-r1 repodata]# /usr/lib/udev/scsi_id -g -u /dev/sdc
  19. 36000c296835807593a81c0c4597f64d6
  20. [root@jiekexu-r1 repodata]# /usr/lib/udev/scsi_id -g -u /dev/sdd
  21. 36000c29760b3f5110218e88d0fe6710c
  22. [root@jiekexu-r1 repodata]# /usr/lib/udev/scsi_id -g -u /dev/sde
  23. 36000c29c671fc199d01bebc6e05e3270
  24. [root@jiekexu-r1 repodata]# /usr/lib/udev/scsi_id -g -u /dev/sdf
  25. 36000c291ffdcc7e2ea852fe4a4e29fcc
  26. [root@jiekexu-r1 repodata]# /usr/lib/udev/scsi_id -g -u /dev/sdg
  27. 36000c29ddf7a88a288da95203aa0a929
  28. ##配置multipath,wwid 的值为上面获取的 scsi_id(multipath -v3 也可以查看到),alias 可自定义,这里配置 3 块 OCR 盘,2块DATA盘,一块 ARCH 盘。
  29. cp /etc/multipath.conf /etc/multipath.conf.bak
  30. 配置文件中有以下内容:
  31. defaults {
  32. user_friendly_names yes
  33. find_multipaths yes
  34. }
  35. blacklist {
  36. }
  37. 如下需要在 blacklist 添加一行 devnode 信息,删除原有的 blacklist
  38. cat <<EOF>> /etc/multipath.conf
  39. blacklist {
  40. devnode "^sda"
  41. }
  42. multipaths {
  43. multipath {
  44. wwid "36000c29714156f014c53bf30fbcc4162"
  45. alias asm_ocr01
  46. }
  47. multipath {
  48. wwid "36000c296835807593a81c0c4597f64d6"
  49. alias asm_ocr02
  50. }
  51. multipath {
  52. wwid "36000c29760b3f5110218e88d0fe6710c"
  53. alias asm_ocr03
  54. }
  55. multipath {
  56. wwid "36000c29c671fc199d01bebc6e05e3270"
  57. alias asm_data01
  58. }
  59. multipath {
  60. wwid "36000c291ffdcc7e2ea852fe4a4e29fcc"
  61. alias asm_data02
  62. }
  63. multipath {
  64. wwid "36000c29ddf7a88a288da95203aa0a929"
  65. alias asm_arch01
  66. }
  67. }
  68. EOF
  69. ##激活multipath多路径:
  70. multipath -F
  71. multipath -v2
  72. multipath -ll

#查看状态

systemctl status multipathd.service

#创建多路径开机自启动服务

systemctl enable multipathd.service

  1. [root@jiekexu-r1 mapper]# multipath -v3 | grep 3600
  2. Aug 22 21:16:59 | sdb: uid = 36000c29714156f014c53bf30fbcc4162 (udev)
  3. Aug 22 21:16:59 | sdc: uid = 36000c296835807593a81c0c4597f64d6 (udev)
  4. Aug 22 21:16:59 | sdd: uid = 36000c29760b3f5110218e88d0fe6710c (udev)
  5. Aug 22 21:16:59 | sde: uid = 36000c29c671fc199d01bebc6e05e3270 (udev)
  6. Aug 22 21:16:59 | sdf: uid = 36000c291ffdcc7e2ea852fe4a4e29fcc (udev)
  7. Aug 22 21:16:59 | sdg: uid = 36000c29ddf7a88a288da95203aa0a929 (udev)
  8. 36000c29714156f014c53bf30fbcc4162 33:0:0:0 sdb 8:16 1 undef undef VMware,
  9. 36000c296835807593a81c0c4597f64d6 33:0:1:0 sdc 8:32 1 undef undef VMware,
  10. 36000c29760b3f5110218e88d0fe6710c 33:0:2:0 sdd 8:48 1 undef undef VMware,
  11. 36000c29c671fc199d01bebc6e05e3270 33:0:3:0 sde 8:64 1 undef undef VMware,
  12. 36000c291ffdcc7e2ea852fe4a4e29fcc 33:0:4:0 sdf 8:80 1 undef undef VMware,
  13. 36000c29ddf7a88a288da95203aa0a929 33:0:5:0 sdg 8:96 1 undef undef VMware,
  14. [root@jiekexu-r1 repodata]#
  15. [root@jiekexu-r1 repodata]# mpathconf
  16. multipath is enabled
  17. find_multipaths is enabled
  18. user_friendly_names is enabled
  19. dm_multipath module is loaded
  20. multipathd is running


4.3 配置 UDEV
  1. cd /dev/mapper
  2. [root@jiekexu-r1 mapper]# ll
  3. total 0
  4. lrwxrwxrwx 1 root root 7 Aug 22 21:15 asm_arch01 -> ../dm-8
  5. lrwxrwxrwx 1 root root 7 Aug 22 21:15 asm_data01 -> ../dm-6
  6. lrwxrwxrwx 1 root root 7 Aug 22 21:15 asm_data02 -> ../dm-7
  7. lrwxrwxrwx 1 root root 7 Aug 22 21:15 asm_ocr01 -> ../dm-3
  8. lrwxrwxrwx 1 root root 7 Aug 22 21:15 asm_ocr02 -> ../dm-4
  9. lrwxrwxrwx 1 root root 7 Aug 22 21:15 asm_ocr03 -> ../dm-5
  10. crw------- 1 root root 10, 236 Aug 22 19:44 control
  11. lrwxrwxrwx 1 root root 7 Aug 22 19:44 rhel_jiekexu--test-home -> ../dm-2
  12. lrwxrwxrwx 1 root root 7 Aug 22 19:44 rhel_jiekexu--test-root -> ../dm-0
  13. lrwxrwxrwx 1 root root 7 Aug 22 19:44 rhel_jiekexu--test-swap -> ../dm-1
  14. for i in asm_*; do
  15. printf "%s %s\n" "$i" "$(udevadm info --query=all --name=/dev/mapper/"$i" | grep -i dm_uuid)" >>/dev/mapper/udev_info
  16. done
  17. while read -r line; do
  18. dm_uuid=$(echo "$line" | awk -F'=' '{print $2}')
  19. disk_name=$(echo "$line" | awk '{print $1}')
  20. echo "KERNEL==\"dm-*\",ENV{DM_UUID}==\"${dm_uuid}\",SYMLINK+=\"${disk_name}\",OWNER=\"grid\",GROUP=\"asmadmin\",MODE=\"0660\"" >>/etc/udev/rules.d/99-oracle-asmdevices.rules
  21. done < /dev/mapper/udev_info
  22. ##重载udev
  23. udevadm control --reload-rules
  24. udevadm trigger --type=devices
  25. ll /dev/asm*
  26. lrwxrwxrwx 1 root root 4 Aug 22 21:26 /dev/asm_arch01 -> dm-8
  27. lrwxrwxrwx 1 root root 4 Aug 22 21:26 /dev/asm_data01 -> dm-6
  28. lrwxrwxrwx 1 root root 4 Aug 22 21:26 /dev/asm_data02 -> dm-7
  29. lrwxrwxrwx 1 root root 4 Aug 22 21:26 /dev/asm_ocr01 -> dm-3
  30. lrwxrwxrwx 1 root root 4 Aug 22 21:26 /dev/asm_ocr02 -> dm-4
  31. lrwxrwxrwx 1 root root 4 Aug 22 21:26 /dev/asm_ocr03 -> dm-5
  32. [root@jiekexu-r1 mapper]# more /etc/udev/rules.d/99-oracle-asmdevices.rules
  33. KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000c29ddf7a88a288da95203aa0a929",SYMLINK+="asm_arch01",OWNER="grid",GROUP="asmadmin",MODE="0660"
  34. KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000c29c671fc199d01bebc6e05e3270",SYMLINK+="asm_data01",OWNER="grid",GROUP="asmadmin",MODE="0660"
  35. KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000c291ffdcc7e2ea852fe4a4e29fcc",SYMLINK+="asm_data02",OWNER="grid",GROUP="asmadmin",MODE="0660"
  36. KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000c29714156f014c53bf30fbcc4162",SYMLINK+="asm_ocr01",OWNER="grid",GROUP="asmadmin",MODE="0660"
  37. KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000c296835807593a81c0c4597f64d6",SYMLINK+="asm_ocr02",OWNER="grid",GROUP="asmadmin",MODE="0660"
  38. KERNEL=="dm-*",ENV{DM_UUID}=="mpath-36000c29760b3f5110218e88d0fe6710c",SYMLINK+="asm_ocr03",OWNER="grid",GROUP="asmadmin",MODE="0660"
  39. [root@jiekexu-r1 mapper]#
  40. 节点2
  41. [root@jiekexu-r2 dev]# ll /dev/dm*
  42. brw-rw----. 1 root disk 253, 0 Aug 22 21:32 /dev/dm-0
  43. brw-rw----. 1 root disk 253, 1 Aug 22 21:32 /dev/dm-1
  44. brw-rw----. 1 root disk 253, 2 Aug 22 21:32 /dev/dm-2
  45. brw-rw----. 1 grid asmadmin 253, 3 Aug 22 21:32 /dev/dm-3
  46. brw-rw----. 1 grid asmadmin 253, 4 Aug 22 21:32 /dev/dm-4
  47. brw-rw----. 1 grid asmadmin 253, 5 Aug 22 21:32 /dev/dm-5
  48. brw-rw----. 1 grid asmadmin 253, 6 Aug 22 21:32 /dev/dm-6
  49. brw-rw----. 1 grid asmadmin 253, 7 Aug 22 21:32 /dev/dm-7
  50. brw-rw----. 1 grid asmadmin 253, 8 Aug 22 21:32 /dev/dm-8
  51. [root@jiekexu-r2 mapper]# ll
  52. total 4
  53. lrwxrwxrwx. 1 root root 7 Aug 22 21:32 asm_arch01 -> ../dm-8
  54. lrwxrwxrwx. 1 root root 7 Aug 22 21:32 asm_data01 -> ../dm-6
  55. lrwxrwxrwx. 1 root root 7 Aug 22 21:32 asm_data02 -> ../dm-7
  56. lrwxrwxrwx. 1 root root 7 Aug 22 21:32 asm_ocr01 -> ../dm-3
  57. lrwxrwxrwx. 1 root root 7 Aug 22 21:32 asm_ocr02 -> ../dm-4
  58. lrwxrwxrwx. 1 root root 7 Aug 22 21:32 asm_ocr03 -> ../dm-5
  59. crw-------. 1 root root 10, 236 Aug 22 21:32 control
  60. lrwxrwxrwx. 1 root root 7 Aug 22 21:32 rhel_jiekexu--r2-home -> ../dm-2
  61. lrwxrwxrwx. 1 root root 7 Aug 22 21:32 rhel_jiekexu--r2-root -> ../dm-0
  62. lrwxrwxrwx. 1 root root 7 Aug 22 21:32 rhel_jiekexu--r2-swap -> ../dm-1
  63. -rw-r--r--. 1 root root 369 Aug 22 21:28 udev_info

5、操作系统检查

操作系统检查,可参考之前的文章第四章 19cRAC安装准备工作

  1. `[root@jiekexu-r1 ~]# cat /etc/redhat-release
  2. Red Hat Enterprise Linux Server release 7.7 (Maipo)`
  3. [root@jiekexu-r2 ~]# cat /etc/redhat-release
  4. Red Hat Enterprise Linux Server release 7.7 (Maipo)
  5. ##内存
  6. [root@jiekexu-r2 ~]# grep MemTotal /proc/meminfo | awk '{print $2}'
  7. 8154996
  8. [root@jiekexu-r2 ~]#
  9. [root@jiekexu-r2 ~]# dmidecode|grep -A5 "Memory Device"|grep Size|grep -v No |grep -v Range
  10. Size: 8192 MB
  11. ##swap
  12. [root@jiekexu-r1 ~]# free -h
  13. total used free shared buff/cache available
  14. Mem: 7.6G 550M 6.6G 12M 519M 7.0G
  15. Swap: 6.0G 0B 6.0G
  16. [root@jiekexu-r1 ~]# grep SwapTotal /proc/meminfo | awk '{print $2}'
  17. 6291452
  18. [root@jiekexu-r2 ~]# free -h
  19. total used free shared buff/cache available
  20. Mem: 7.8G 627M 6.7G 12M 497M 6.9G
  21. Swap: 7.9G 0B 7.9G
  22. [root@jiekexu-r2 ~]# grep SwapTotal /proc/meminfo | awk '{print $2}'
  23. 8257532
  24. ##时区 主机名
  25. [root@jiekexu-r2 ~]# timedatectl status
  26. Local time: Tue 2021-08-24 09:42:32 CST
  27. Universal time: Tue 2021-08-24 01:42:32 UTC
  28. RTC time: Tue 2021-08-24 01:42:32
  29. Time zone: Asia/Shanghai (CST, +0800)
  30. NTP enabled: no
  31. NTP synchronized: no
  32. RTC in local TZ: no
  33. DST active: n/a
  34. [root@jiekexu-r2 ~]# hostnamectl status
  35. Static hostname: jiekexu-r2
  36. Icon name: computer-vm
  37. Chassis: vm
  38. Machine ID: 445856a0ecb7468cacc9e44b6c0b0130
  39. Boot ID: a6fb4d7304c34687bdb8ab1986fc992d
  40. Virtualization: vmware
  41. Operating System: Red Hat Enterprise Linux Server 7.7 (Maipo)
  42. CPE OS Name: cpe:/o:redhat:enterprise_linux:7.7:GA:server
  43. Kernel: Linux 3.10.0-1062.el7.x86_64
  44.       Architecture: x86-64
  1. --安装所需的 rmp 包
  2. yum install -y bc* ntp* binutils* compat-libcap1* compat-libstdc++* dtrace-modules* dtrace-modules-headers* dtrace-modules-provider-headers* dtrace-utils* elfutils-libelf* elfutils-libelf-devel* fontconfig-devel* glibc* glibc-devel* ksh* libaio* libaio-devel* libdtrace-ctf-devel* libXrender* libXrender-devel* libX11* libXau* libXi* libXtst* libgcc* librdmacm-devel* libstdc++* libstdc++-devel* libxcb* make* net-tools* nfs-utils* python* python-configshell* python-rtslib* python-six* targetcli* smartmontools* sysstat* gcc* nscd* unixODBC* unzip readline tigervnc*
  3. ---检查
  4. rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' \
  5. bc \
  6. binutils \
  7. compat-libcap1 \
  8. compat-libstdc++-33 \
  9. elfutils-libelf \
  10. elfutils-libelf-devel \
  11. fontconfig-devel \
  12. glibc \
  13. gcc \
  14. gcc-c++ \
  15. glibc \
  16. glibc-devel \
  17. ksh \
  18. libstdc++ \
  19. libstdc++-devel \
  20. libaio \
  21. libaio-devel \
  22. libXrender \
  23. libXrender-devel \
  24. libxcb \
  25. libX11 \
  26. libXau \
  27. libXi \
  28. libXtst \
  29. libgcc \
  30. libstdc++-devel \
  31. make \
  32. sysstat \
  33. unzip \
  34. readline \
  35. smartmontools | grep 'not installed' |column -t
  36. --需单独安装此包
  37. rpm -ivh compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm

核心参数设置

/etc/sysctl.d/97-oracle-database-sysctl.conf

  1. --在 Linux 7之前,内核参数文件是修改 /etc/sysctl.conf 文件,
  2. --但在 Linux 7.x 之后发生了变化(/etc/sysctl.d/97-oracle-database-sysctl.conf):
  3. --但仍然可以修改这个文件,没有什么不一样,官方文档中 19c 使用 97-oracle-database-sysctl.conf。
  4. --生效方式:/sbin/sysctl --system
  5. SHMMAX:单个共享内存段最大值(字节)
  6. SHMMIN:单个共享内存段最小值(字节)
  7. SHMMNI:系统共享内存段数量
  8. SHMALL:可用共享内存的总数量(字节或者页面),以字节为单位,与 SHMMAX 一样,以页为单位,大小为 seil(SHMMAX/PAGE_SIZE)。一般 Linux 的 page 页为 4096.
  9. SHMSEQ:每进程最大共享内存段数量
  10. 主要核心参数手工计算如下:
  11. MEM=$(expr $(grep MemTotal /proc/meminfo|awk '{print $2}') \* 1024)
  12. SHMALL=$(expr $MEM / $(getconf PAGE_SIZE))
  13. SHMMAX=$(expr $MEM \* 3 / 5) # 这里配置为3/5 RAM大小
  14. echo $MEM
  15. echo $SHMALL
  16. echo $SHMMAX
  17. --min_free_kbytes=$(expr sqrt($MEM \* 16))
  18. min_free_kbytes = sqrt(lowmem_kbytes * 16) = 4 * sqrt(lowmem_kbytes)(注:lowmem_kbytes即可认为是系统内存大小)
  19. vm.nr_hugepages =(内存M/3+ASM内存大小4096M)/Hugepagesize M
  20. #操作系统内存的1/3加上ASM实例内存4G。
  21. #x86平台 Hugepagesize =2048即2M,linuxone平台Hugepagesize=1024 即1M
  22. # 例x86平台64G内存 (64G*1024/3+4096M)/2M=12971
  23. 例x86平台32G内存 (32G*1024/3+4096M)/2M=7509
  24. 例x86平台16G内存 (16G*1024/3+4096M)/2M=4778
  25. #linuxone平台 64G内存 (64G*1024/3+4096M)/1M=25942
  26. memTotal=$(grep MemTotal /proc/meminfo | awk '{print $2}')
  27. totalMemory=$((memTotal / 2048))
  28. shmall=$((memTotal / 4))
  29. if [ $shmall -lt 2097152 ]; then
  30. shmall=2097152
  31. fi
  32. shmmax=$((memTotal * 1024 - 1))
  33. if [ "$shmmax" -lt 4294967295 ]; then
  34. shmmax=4294967295
  35. fi
  36. cat <<EOF>> /etc/sysctl.d/97-oracle-database-sysctl.conf
  37. fs.aio-max-nr = 1048576
  38. fs.file-max = 6815744
  39. kernel.shmall = $shmall
  40. kernel.shmmax = $shmmax
  41. kernel.shmmni = 4096
  42. kernel.sem = 250 32000 100 128
  43. net.ipv4.ip_local_port_range = 9000 65500
  44. net.core.rmem_default = 16777216
  45. net.core.rmem_max = 16777216
  46. net.core.wmem_max = 16777216
  47. net.core.wmem_default = 16777216
  48. fs.aio-max-nr = 6194304
  49. vm.min_free_kbytes=524288
  50. vm.dirty_ratio=20
  51. vm.dirty_background_ratio=3
  52. vm.dirty_writeback_centisecs=100
  53. vm.dirty_expire_centisecs=500
  54. vm.swappiness=10
  55. net.core.netdev_max_backlog = 30000
  56. net.core.netdev_budget = 600
  57. #vm.nr_hugepages =
  58. net.ipv4.conf.all.rp_filter = 2
  59. net.ipv4.conf.default.rp_filter = 2
  60. net.ipv4.ipfrag_time = 60
  61. net.ipv4.ipfrag_low_thresh=6291456
  62. net.ipv4.ipfrag_high_thresh = 8388608
  63. EOF
  64. [root@jiekexu-r1 ~]# /sbin/sysctl --system
  65. * Applying /usr/lib/sysctl.d/00-system.conf ...
  66. * Applying /usr/lib/sysctl.d/10-default-yama-scope.conf ...
  67. kernel.yama.ptrace_scope = 0
  68. * Applying /usr/lib/sysctl.d/50-default.conf ...
  69. kernel.sysrq = 16
  70. kernel.core_uses_pid = 1
  71. net.ipv4.conf.default.rp_filter = 1
  72. net.ipv4.conf.all.rp_filter = 1
  73. net.ipv4.conf.default.accept_source_route = 0
  74. net.ipv4.conf.all.accept_source_route = 0
  75. net.ipv4.conf.default.promote_secondaries = 1
  76. net.ipv4.conf.all.promote_secondaries = 1
  77. fs.protected_hardlinks = 1
  78. fs.protected_symlinks = 1
  79. * Applying /usr/lib/sysctl.d/60-libvirtd.conf ...
  80. fs.aio-max-nr = 1048576
  81. * Applying /etc/sysctl.d/97-oracle-database-sysctl.conf ...
  82. fs.aio-max-nr = 1048576
  83. fs.file-max = 6815744
  84. kernel.shmall = 2097152
  85. kernel.shmmax = 8181903359
  86. kernel.shmmni = 4096
  87. kernel.sem = 250 32000 100 128
  88. net.ipv4.ip_local_port_range = 9000 65500
  89. net.core.rmem_default = 16777216
  90. net.core.rmem_max = 16777216
  91. net.core.wmem_max = 16777216
  92. net.core.wmem_default = 16777216
  93. fs.aio-max-nr = 6194304
  94. vm.min_free_kbytes = 524288
  95. vm.dirty_ratio = 20
  96. vm.dirty_background_ratio = 3
  97. vm.dirty_writeback_centisecs = 100
  98. vm.dirty_expire_centisecs = 500
  99. vm.swappiness = 10
  100. net.core.netdev_max_backlog = 30000
  101. net.core.netdev_budget = 600
  102. net.ipv4.conf.all.rp_filter = 2
  103. net.ipv4.conf.default.rp_filter = 2
  104. net.ipv4.ipfrag_time = 60
  105. net.ipv4.ipfrag_low_thresh = 6291456
  106. net.ipv4.ipfrag_high_thresh = 8388608
  107. * Applying /etc/sysctl.d/99-sysctl.conf ...
  108. * Applying /etc/sysctl.conf ...

6、静默安装 GI

6.1 安装操作系统包 cvuqdisk

如果没有 cvuqdisk,群集验证实用程序(CVU)将无法找到共享磁盘,并且在运行群集验证实用程序时将收到 “Package cvuqdisk not installed” 错误。对于您的硬件(例如,x86_64或i386),请使用 cvuqdisk RPM。

  1. [root@jiekexu-r1 ~]# cd /u01/app/19.0.0/grid/cv/rpm
  2. [root@jiekexu-r1 rpm]# ll
  3. total 12
  4. -rw-r--r-- 1 grid oinstall 11412 Mar 13 2019 cvuqdisk-1.0.10-1.rpm
  5. [root@jiekexu-r1 rpm]# export CVUQDISK_GRP=oinstall
  6. [root@jiekexu-r1 rpm]# rpm -ivh cvuqdisk-1.0.10-1.rpm
  7. Preparing... ################################# [100%]
  8. Updating / installing...
  9. 1:cvuqdisk-1.0.10-1 ################################# [100%]
  10. [root@jiekexu-r1 rpm]# scp /u01/app/19.0.0/grid/cv/rpm/cvuqdisk-1.0.10-1.rpm jiekexu-r2:/home/soft/
  11. The authenticity of host 'jiekexu-r2 (192.168.75.129)' can't be established.
  12. ECDSA key fingerprint is SHA256:FQQR4hFlkEWUNpTyB7nYfdCMPGN2PulHJW/P/I4n4f0.
  13. ECDSA key fingerprint is MD5:30:c3:28:3a:44:f2:5b:cf:cf:72:79:33:2e:cf:ee:81.
  14. Are you sure you want to continue connecting (yes/no)? yes
  15. Warning: Permanently added 'jiekexu-r2,192.168.75.129' (ECDSA) to the list of known hosts.
  16. root@jiekexu-r2's password:
  17. cvuqdisk-1.0.10-1.rpm 100% 11KB 3.3MB/s 00:00
  18. [root@jiekexu-r1 rpm]# systemctl stop avahi-daemon.socket
  19. [root@jiekexu-r2 rpm]# systemctl stop avahi-daemon.socket

6.2 互信

分别使用grid和oracle用户调用sshUserSetup.sh脚本配置SSH connectivity,根据提示输入密码 Oracle_19C。

  1. $ cd $ORACLE_HOME/oui/prov/resources/scripts
  2. <grid>$ ./sshUserSetup.sh -user grid -hosts "jiekexu-r1 jiekexu-r2" -advanced -confirm -noPromptPassphrase
  3. cd /u01/app/19.0.0/grid/oui/prov/resources/scripts
  4. <oracle>$ ./sshUserSetup.sh -user oracle -hosts "jiekexu-r1 jiekexu-r2" -advanced -confirm -noPromptPassphrase
  5. 分别使用grid和oracle用户验证SSH connectivity:
  6. <grid>for h in jiekexu-r1 jiekexu-r1-priv jiekexu-r2 jiekexu-r2-priv;do
  7. ssh -l grid -o StrictHostKeyChecking=no $h date;
  8. done
  9. <oracle>for h in jiekexu-r1 jiekexu-r1-priv jiekexu-r2 jiekexu-r2-priv;do
  10. ssh -l oracle -o StrictHostKeyChecking=no $h date;
  11. done

6.3 GI配置预检查

在配置GRID前,使用grid用户执行runcluvf.sh脚本检查环境,修复不满足安装需求的项。

  1. su - grid
  2. /u01/app/19.0.0/grid/runcluvfy.sh stage -pre crsinst -n jiekexu-r1,jiekexu-r2 -fixup -verbose
  3. $/u01/app/19.0.0/grid/runcluvfy.sh stage -pre crsinst -n jiekexu-r1,jiekexu-r2 -method root
  4. Enter "ROOT" password:

6.3.1 增加Swap分区

1.创建交换分区的文件:增加2G大小的交换分区,则命令写法如下,其中的 count 等于想要的块大小。

#dd if=/dev/zero of=/home/swapfile bs=1M count=2048

2.设置交换分区文件:

# mkswap /home/swapfile #建立swap的文件系统

3.立即启用交换分区文件:

# swapon /home/swapfile  #启用swap文件

4.使系统开机时自启用,在文件/etc/fstab中添加一行:

echo  '/home/swapfile swap swap defaults 0 0'  >> /etc/fstab

5.完成

  1. [grid@jiekexu-r1:/u01/app/19.0.0/grid]$ /u01/app/19.0.0/grid/runcluvfy.sh stage -pre crsinst -n jiekexu-r1,jiekexu-r2 -fixup -verbose
  2. Verifying Physical Memory ...
  3. Node Name Available Required Status
  4. ------------ ------------------------ ------------------------ ----------
  5. jiekexu-r2 7.7772GB (8155004.0KB) 8GB (8388608.0KB) passed
  6. jiekexu-r1 7.62GB (7990132.0KB) 8GB (8388608.0KB) passed
  7. Verifying Physical Memory ...PASSED
  8. Verifying Available Physical Memory ...
  9. Node Name Available Required Status
  10. ------------ ------------------------ ------------------------ ----------
  11. jiekexu-r2 6.953GB (7290788.0KB) 50MB (51200.0KB) passed
  12. jiekexu-r1 6.5808GB (6900520.0KB) 50MB (51200.0KB) passed
  13. Verifying Available Physical Memory ...PASSED
  14. Verifying Swap Size ...
  15. Node Name Available Required Status
  16. ------------ ------------------------ ------------------------ ----------
  17. jiekexu-r2 7.875GB (8257532.0KB) 7.7772GB (8155004.0KB) passed
  18. jiekexu-r1 8GB (8388600.0KB) 7.62GB (7990132.0KB) passed
  19. Verifying Swap Size ...PASSED
  20. Verifying Free Space: jiekexu-r2:/usr,jiekexu-r2:/var,jiekexu-r2:/etc,jiekexu-r2:/sbin,jiekexu-r2:/tmp ...
  21. Path Node Name Mount point Available Required Status
  22. ---------------- ------------ ------------ ------------ ------------ ------------
  23. /usr jiekexu-r2 / 47.5273GB 25MB passed
  24. /var jiekexu-r2 / 47.5273GB 5MB passed
  25. /etc jiekexu-r2 / 47.5273GB 25MB passed
  26. /sbin jiekexu-r2 / 47.5273GB 10MB passed
  27. /tmp jiekexu-r2 / 47.5273GB 1GB passed
  28. Verifying Free Space: jiekexu-r2:/usr,jiekexu-r2:/var,jiekexu-r2:/etc,jiekexu-r2:/sbin,jiekexu-r2:/tmp ...PASSED
  29. Verifying Free Space: jiekexu-r1:/usr,jiekexu-r1:/var,jiekexu-r1:/etc,jiekexu-r1:/sbin,jiekexu-r1:/tmp ...
  30. Path Node Name Mount point Available Required Status
  31. ---------------- ------------ ------------ ------------ ------------ ------------
  32. /usr jiekexu-r1 / 8.8099GB 25MB passed
  33. /var jiekexu-r1 / 8.8099GB 5MB passed
  34. /etc jiekexu-r1 / 8.8099GB 25MB passed
  35. /sbin jiekexu-r1 / 8.8099GB 10MB passed
  36. /tmp jiekexu-r1 / 8.8099GB 1GB passed
  37. Verifying Free Space: jiekexu-r1:/usr,jiekexu-r1:/var,jiekexu-r1:/etc,jiekexu-r1:/sbin,jiekexu-r1:/tmp ...PASSED
  38. Verifying User Existence: grid ...
  39. Node Name Status Comment
  40. ------------ ------------------------ ------------------------
  41. jiekexu-r2 passed exists(10001)
  42. jiekexu-r1 passed exists(10001)
  43. Verifying Users With Same UID: 10001 ...PASSED
  44. Verifying User Existence: grid ...PASSED
  45. Verifying Group Existence: asmadmin ...
  46. Node Name Status Comment
  47. ------------ ------------------------ ------------------------
  48. jiekexu-r2 passed exists
  49. jiekexu-r1 passed exists
  50. Verifying Group Existence: asmadmin ...PASSED
  51. Verifying Group Existence: asmdba ...
  52. Node Name Status Comment
  53. ------------ ------------------------ ------------------------
  54. jiekexu-r2 passed exists
  55. jiekexu-r1 passed exists
  56. Verifying Group Existence: asmdba ...PASSED
  57. Verifying Group Existence: oinstall ...
  58. Node Name Status Comment
  59. ------------ ------------------------ ------------------------
  60. jiekexu-r2 passed exists
  61. jiekexu-r1 passed exists
  62. Verifying Group Existence: oinstall ...PASSED
  63. Verifying Group Membership: asmdba ...
  64. Node Name User Exists Group Exists User in Group Status
  65. ---------------- ------------ ------------ ------------ ----------------
  66. jiekexu-r2 yes yes yes passed
  67. jiekexu-r1 yes yes yes passed
  68. Verifying Group Membership: asmdba ...PASSED
  69. Verifying Group Membership: asmadmin ...
  70. Node Name User Exists Group Exists User in Group Status
  71. ---------------- ------------ ------------ ------------ ----------------
  72. jiekexu-r2 yes yes yes passed
  73. jiekexu-r1 yes yes yes passed
  74. Verifying Group Membership: asmadmin ...PASSED
  75. Verifying Group Membership: oinstall(Primary) ...
  76. Node Name User Exists Group Exists User in Group Primary Status
  77. ---------------- ------------ ------------ ------------ ------------ ------------
  78. jiekexu-r2 yes yes yes yes passed
  79. jiekexu-r1 yes yes yes yes passed
  80. Verifying Group Membership: oinstall(Primary) ...PASSED
  81. Verifying Run Level ...
  82. Node Name run level Required Status
  83. ------------ ------------------------ ------------------------ ----------
  84. jiekexu-r2 5 3,5 passed
  85. jiekexu-r1 5 3,5 passed
  86. Verifying Run Level ...PASSED
  87. Verifying Hard Limit: maximum open file descriptors ...
  88. Node Name Type Available Required Status
  89. ---------------- ------------ ------------ ------------ ----------------
  90. jiekexu-r2 hard 65536 65536 passed
  91. jiekexu-r1 hard 65536 65536 passed
  92. Verifying Hard Limit: maximum open file descriptors ...PASSED
  93. Verifying Soft Limit: maximum open file descriptors ...
  94. Node Name Type Available Required Status
  95. ---------------- ------------ ------------ ------------ ----------------
  96. jiekexu-r2 soft 1024 1024 passed
  97. jiekexu-r1 soft 1024 1024 passed
  98. Verifying Soft Limit: maximum open file descriptors ...PASSED
  99. Verifying Hard Limit: maximum user processes ...
  100. Node Name Type Available Required Status
  101. ---------------- ------------ ------------ ------------ ----------------
  102. jiekexu-r2 hard 16384 16384 passed
  103. jiekexu-r1 hard 16384 16384 passed
  104. Verifying Hard Limit: maximum user processes ...PASSED
  105. Verifying Soft Limit: maximum user processes ...
  106. Node Name Type Available Required Status
  107. ---------------- ------------ ------------ ------------ ----------------
  108. jiekexu-r2 soft 2047 2047 passed
  109. jiekexu-r1 soft 2047 2047 passed
  110. Verifying Soft Limit: maximum user processes ...PASSED
  111. Verifying Soft Limit: maximum stack size ...
  112. Node Name Type Available Required Status
  113. ---------------- ------------ ------------ ------------ ----------------
  114. jiekexu-r2 soft 10240 10240 passed
  115. jiekexu-r1 soft 10240 10240 passed
  116. Verifying Soft Limit: maximum stack size ...PASSED
  117. Verifying Architecture ...
  118. Node Name Available Required Status
  119. ------------ ------------------------ ------------------------ ----------
  120. jiekexu-r2 x86_64 x86_64 passed
  121. jiekexu-r1 x86_64 x86_64 passed
  122. Verifying Architecture ...PASSED
  123. Verifying OS Kernel Version ...
  124. Node Name Available Required Status
  125. ------------ ------------------------ ------------------------ ----------
  126. jiekexu-r2 3.10.0-1062.el7.x86_64 3.10.0 passed
  127. jiekexu-r1 3.10.0-1062.el7.x86_64 3.10.0 passed
  128. Verifying OS Kernel Version ...PASSED
  129. Verifying OS Kernel Parameter: semmsl ...
  130. Node Name Current Configured Required Status Comment
  131. ---------------- ------------ ------------ ------------ ------------ ------------
  132. jiekexu-r1 250 250 250 passed
  133. jiekexu-r2 250 250 250 passed
  134. Verifying OS Kernel Parameter: semmsl ...PASSED
  135. Verifying OS Kernel Parameter: semmns ...
  136. Node Name Current Configured Required Status Comment
  137. ---------------- ------------ ------------ ------------ ------------ ------------
  138. jiekexu-r1 32000 32000 32000 passed
  139. jiekexu-r2 32000 32000 32000 passed
  140. Verifying OS Kernel Parameter: semmns ...PASSED
  141. Verifying OS Kernel Parameter: semopm ...
  142. Node Name Current Configured Required Status Comment
  143. ---------------- ------------ ------------ ------------ ------------ ------------
  144. jiekexu-r1 100 100 100 passed
  145. jiekexu-r2 100 100 100 passed
  146. Verifying OS Kernel Parameter: semopm ...PASSED
  147. Verifying OS Kernel Parameter: semmni ...
  148. Node Name Current Configured Required Status Comment
  149. ---------------- ------------ ------------ ------------ ------------ ------------
  150. jiekexu-r1 128 128 128 passed
  151. jiekexu-r2 128 128 128 passed
  152. Verifying OS Kernel Parameter: semmni ...PASSED
  153. Verifying OS Kernel Parameter: shmmax ...
  154. Node Name Current Configured Required Status Comment
  155. ---------------- ------------ ------------ ------------ ------------ ------------
  156. jiekexu-r1 8181903359 8181903359 4090947584 passed
  157. jiekexu-r2 8350715903 8350715903 4175362048 passed
  158. Verifying OS Kernel Parameter: shmmax ...PASSED
  159. Verifying OS Kernel Parameter: shmmni ...
  160. Node Name Current Configured Required Status Comment
  161. ---------------- ------------ ------------ ------------ ------------ ------------
  162. jiekexu-r1 4096 4096 4096 passed
  163. jiekexu-r2 4096 4096 4096 passed
  164. Verifying OS Kernel Parameter: shmmni ...PASSED
  165. Verifying OS Kernel Parameter: shmall ...
  166. Node Name Current Configured Required Status Comment
  167. ---------------- ------------ ------------ ------------ ------------ ------------
  168. jiekexu-r1 2097152 2097152 1997534 passed
  169. jiekexu-r2 2097152 2097152 2038748 passed
  170. Verifying OS Kernel Parameter: shmall ...PASSED
  171. Verifying OS Kernel Parameter: file-max ...
  172. Node Name Current Configured Required Status Comment
  173. ---------------- ------------ ------------ ------------ ------------ ------------
  174. jiekexu-r1 6815744 6815744 6815744 passed
  175. jiekexu-r2 6815744 6815744 6815744 passed
  176. Verifying OS Kernel Parameter: file-max ...PASSED
  177. Verifying OS Kernel Parameter: ip_local_port_range ...
  178. Node Name Current Configured Required Status Comment
  179. ---------------- ------------ ------------ ------------ ------------ ------------
  180. jiekexu-r1 between 9000 & 65500 between 9000 & 65500 between 9000 & 65535 passed
  181. jiekexu-r2 between 9000 & 65500 between 9000 & 65500 between 9000 & 65535 passed
  182. Verifying OS Kernel Parameter: ip_local_port_range ...PASSED
  183. Verifying OS Kernel Parameter: rmem_default ...
  184. Node Name Current Configured Required Status Comment
  185. ---------------- ------------ ------------ ------------ ------------ ------------
  186. jiekexu-r1 16777216 16777216 262144 passed
  187. jiekexu-r2 16777216 16777216 262144 passed
  188. Verifying OS Kernel Parameter: rmem_default ...PASSED
  189. Verifying OS Kernel Parameter: rmem_max ...
  190. Node Name Current Configured Required Status Comment
  191. ---------------- ------------ ------------ ------------ ------------ ------------
  192. jiekexu-r1 16777216 16777216 4194304 passed
  193. jiekexu-r2 16777216 16777216 4194304 passed
  194. Verifying OS Kernel Parameter: rmem_max ...PASSED
  195. Verifying OS Kernel Parameter: wmem_default ...
  196. Node Name Current Configured Required Status Comment
  197. ---------------- ------------ ------------ ------------ ------------ ------------
  198. jiekexu-r1 16777216 16777216 262144 passed
  199. jiekexu-r2 16777216 16777216 262144 passed
  200. Verifying OS Kernel Parameter: wmem_default ...PASSED
  201. Verifying OS Kernel Parameter: wmem_max ...
  202. Node Name Current Configured Required Status Comment
  203. ---------------- ------------ ------------ ------------ ------------ ------------
  204. jiekexu-r1 16777216 16777216 1048576 passed
  205. jiekexu-r2 16777216 16777216 1048576 passed
  206. Verifying OS Kernel Parameter: wmem_max ...PASSED
  207. Verifying OS Kernel Parameter: aio-max-nr ...
  208. Node Name Current Configured Required Status Comment
  209. ---------------- ------------ ------------ ------------ ------------ ------------
  210. jiekexu-r1 6194304 6194304 1048576 passed
  211. jiekexu-r2 6194304 6194304 1048576 passed
  212. Verifying OS Kernel Parameter: aio-max-nr ...PASSED
  213. Verifying Package: kmod-20-21 (x86_64) ...
  214. Node Name Available Required Status
  215. ------------ ------------------------ ------------------------ ----------
  216. jiekexu-r2 kmod(x86_64)-20-25.el7 kmod(x86_64)-20-21 passed
  217. jiekexu-r1 kmod(x86_64)-20-25.el7 kmod(x86_64)-20-21 passed
  218. Verifying Package: kmod-20-21 (x86_64) ...PASSED
  219. Verifying Package: kmod-libs-20-21 (x86_64) ...
  220. Node Name Available Required Status
  221. ------------ ------------------------ ------------------------ ----------
  222. jiekexu-r2 kmod-libs(x86_64)-20-25.el7 kmod-libs(x86_64)-20-21 passed
  223. jiekexu-r1 kmod-libs(x86_64)-20-25.el7 kmod-libs(x86_64)-20-21 passed
  224. Verifying Package: kmod-libs-20-21 (x86_64) ...PASSED
  225. Verifying Package: binutils-2.23.52.0.1 ...
  226. Node Name Available Required Status
  227. ------------ ------------------------ ------------------------ ----------
  228. jiekexu-r2 binutils-2.27-41.base.el7 binutils-2.23.52.0.1 passed
  229. jiekexu-r1 binutils-2.27-41.base.el7 binutils-2.23.52.0.1 passed
  230. Verifying Package: binutils-2.23.52.0.1 ...PASSED
  231. Verifying Package: compat-libcap1-1.10 ...
  232. Node Name Available Required Status
  233. ------------ ------------------------ ------------------------ ----------
  234. jiekexu-r2 compat-libcap1-1.10-7.el7 compat-libcap1-1.10 passed
  235. jiekexu-r1 compat-libcap1-1.10-7.el7 compat-libcap1-1.10 passed
  236. Verifying Package: compat-libcap1-1.10 ...PASSED
  237. Verifying Package: libgcc-4.8.2 (x86_64) ...
  238. Node Name Available Required Status
  239. ------------ ------------------------ ------------------------ ----------
  240. jiekexu-r2 libgcc(x86_64)-4.8.5-39.el7 libgcc(x86_64)-4.8.2 passed
  241. jiekexu-r1 libgcc(x86_64)-4.8.5-39.el7 libgcc(x86_64)-4.8.2 passed
  242. Verifying Package: libgcc-4.8.2 (x86_64) ...PASSED
  243. Verifying Package: libstdc++-4.8.2 (x86_64) ...
  244. Node Name Available Required Status
  245. ------------ ------------------------ ------------------------ ----------
  246. jiekexu-r2 libstdc++(x86_64)-4.8.5-39.el7 libstdc++(x86_64)-4.8.2 passed
  247. jiekexu-r1 libstdc++(x86_64)-4.8.5-39.el7 libstdc++(x86_64)-4.8.2 passed
  248. Verifying Package: libstdc++-4.8.2 (x86_64) ...PASSED
  249. Verifying Package: libstdc++-devel-4.8.2 (x86_64) ...
  250. Node Name Available Required Status
  251. ------------ ------------------------ ------------------------ ----------
  252. jiekexu-r2 libstdc++-devel(x86_64)-4.8.5-39.el7 libstdc++-devel(x86_64)-4.8.2 passed
  253. jiekexu-r1 libstdc++-devel(x86_64)-4.8.5-39.el7 libstdc++-devel(x86_64)-4.8.2 passed
  254. Verifying Package: libstdc++-devel-4.8.2 (x86_64) ...PASSED
  255. Verifying Package: sysstat-10.1.5 ...
  256. Node Name Available Required Status
  257. ------------ ------------------------ ------------------------ ----------
  258. jiekexu-r2 sysstat-10.1.5-18.el7 sysstat-10.1.5 passed
  259. jiekexu-r1 sysstat-10.1.5-18.el7 sysstat-10.1.5 passed
  260. Verifying Package: sysstat-10.1.5 ...PASSED
  261. Verifying Package: gcc-c++-4.8.2 ...
  262. Node Name Available Required Status
  263. ------------ ------------------------ ------------------------ ----------
  264. jiekexu-r2 gcc-c++-4.8.5-39.el7 gcc-c++-4.8.2 passed
  265. jiekexu-r1 gcc-c++-4.8.5-39.el7 gcc-c++-4.8.2 passed
  266. Verifying Package: gcc-c++-4.8.2 ...PASSED
  267. Verifying Package: ksh ...
  268. Node Name Available Required Status
  269. ------------ ------------------------ ------------------------ ----------
  270. jiekexu-r2 ksh ksh passed
  271. jiekexu-r1 ksh ksh passed
  272. Verifying Package: ksh ...PASSED
  273. Verifying Package: make-3.82 ...
  274. Node Name Available Required Status
  275. ------------ ------------------------ ------------------------ ----------
  276. jiekexu-r2 make-3.82-24.el7 make-3.82 passed
  277. jiekexu-r1 make-3.82-24.el7 make-3.82 passed
  278. Verifying Package: make-3.82 ...PASSED
  279. Verifying Package: glibc-2.17 (x86_64) ...
  280. Node Name Available Required Status
  281. ------------ ------------------------ ------------------------ ----------
  282. jiekexu-r2 glibc(x86_64)-2.17-292.el7 glibc(x86_64)-2.17 passed
  283. jiekexu-r1 glibc(x86_64)-2.17-292.el7 glibc(x86_64)-2.17 passed
  284. Verifying Package: glibc-2.17 (x86_64) ...PASSED
  285. Verifying Package: glibc-devel-2.17 (x86_64) ...
  286. Node Name Available Required Status
  287. ------------ ------------------------ ------------------------ ----------
  288. jiekexu-r2 glibc-devel(x86_64)-2.17-292.el7 glibc-devel(x86_64)-2.17 passed
  289. jiekexu-r1 glibc-devel(x86_64)-2.17-292.el7 glibc-devel(x86_64)-2.17 passed
  290. Verifying Package: glibc-devel-2.17 (x86_64) ...PASSED
  291. Verifying Package: libaio-0.3.109 (x86_64) ...
  292. Node Name Available Required Status
  293. ------------ ------------------------ ------------------------ ----------
  294. jiekexu-r2 libaio(x86_64)-0.3.109-13.el7 libaio(x86_64)-0.3.109 passed
  295. jiekexu-r1 libaio(x86_64)-0.3.109-13.el7 libaio(x86_64)-0.3.109 passed
  296. Verifying Package: libaio-0.3.109 (x86_64) ...PASSED
  297. Verifying Package: libaio-devel-0.3.109 (x86_64) ...
  298. Node Name Available Required Status
  299. ------------ ------------------------ ------------------------ ----------
  300. jiekexu-r2 libaio-devel(x86_64)-0.3.109-13.el7 libaio-devel(x86_64)-0.3.109 passed
  301. jiekexu-r1 libaio-devel(x86_64)-0.3.109-13.el7 libaio-devel(x86_64)-0.3.109 passed
  302. Verifying Package: libaio-devel-0.3.109 (x86_64) ...PASSED
  303. Verifying Package: nfs-utils-1.2.3-15 ...
  304. Node Name Available Required Status
  305. ------------ ------------------------ ------------------------ ----------
  306. jiekexu-r2 nfs-utils-1.3.0-0.65.el7 nfs-utils-1.2.3-15 passed
  307. jiekexu-r1 nfs-utils-1.3.0-0.65.el7 nfs-utils-1.2.3-15 passed
  308. Verifying Package: nfs-utils-1.2.3-15 ...PASSED
  309. Verifying Package: smartmontools-6.2-4 ...
  310. Node Name Available Required Status
  311. ------------ ------------------------ ------------------------ ----------
  312. jiekexu-r2 smartmontools-7.0-1.el7 smartmontools-6.2-4 passed
  313. jiekexu-r1 smartmontools-7.0-1.el7 smartmontools-6.2-4 passed
  314. Verifying Package: smartmontools-6.2-4 ...PASSED
  315. Verifying Package: net-tools-2.0-0.17 ...
  316. Node Name Available Required Status
  317. ------------ ------------------------ ------------------------ ----------
  318. jiekexu-r2 net-tools-2.0-0.25.20131004git.el7 net-tools-2.0-0.17 passed
  319. jiekexu-r1 net-tools-2.0-0.25.20131004git.el7 net-tools-2.0-0.17 passed
  320. Verifying Package: net-tools-2.0-0.17 ...PASSED
  321. Verifying Package: compat-libstdc++-33-3.2.3 (x86_64) ...
  322. Node Name Available Required Status
  323. ------------ ------------------------ ------------------------ ----------
  324. jiekexu-r2 compat-libstdc++-33(x86_64)-3.2.3-72.el7 compat-libstdc++-33(x86_64)-3.2.3 passed
  325. jiekexu-r1 compat-libstdc++-33(x86_64)-3.2.3-72.el7 compat-libstdc++-33(x86_64)-3.2.3 passed
  326. Verifying Package: compat-libstdc++-33-3.2.3 (x86_64) ...PASSED
  327. Verifying Package: libxcb-1.11 (x86_64) ...
  328. Node Name Available Required Status
  329. ------------ ------------------------ ------------------------ ----------
  330. jiekexu-r2 libxcb(x86_64)-1.13-1.el7 libxcb(x86_64)-1.11 passed
  331. jiekexu-r1 libxcb(x86_64)-1.13-1.el7 libxcb(x86_64)-1.11 passed
  332. Verifying Package: libxcb-1.11 (x86_64) ...PASSED
  333. Verifying Package: libX11-1.6.3 (x86_64) ...
  334. Node Name Available Required Status
  335. ------------ ------------------------ ------------------------ ----------
  336. jiekexu-r2 libX11(x86_64)-1.6.7-2.el7 libX11(x86_64)-1.6.3 passed
  337. jiekexu-r1 libX11(x86_64)-1.6.7-2.el7 libX11(x86_64)-1.6.3 passed
  338. Verifying Package: libX11-1.6.3 (x86_64) ...PASSED
  339. Verifying Package: libXau-1.0.8 (x86_64) ...
  340. Node Name Available Required Status
  341. ------------ ------------------------ ------------------------ ----------
  342. jiekexu-r2 libXau(x86_64)-1.0.8-2.1.el7 libXau(x86_64)-1.0.8 passed
  343. jiekexu-r1 libXau(x86_64)-1.0.8-2.1.el7 libXau(x86_64)-1.0.8 passed
  344. Verifying Package: libXau-1.0.8 (x86_64) ...PASSED
  345. Verifying Package: libXi-1.7.4 (x86_64) ...
  346. Node Name Available Required Status
  347. ------------ ------------------------ ------------------------ ----------
  348. jiekexu-r2 libXi(x86_64)-1.7.9-1.el7 libXi(x86_64)-1.7.4 passed
  349. jiekexu-r1 libXi(x86_64)-1.7.9-1.el7 libXi(x86_64)-1.7.4 passed
  350. Verifying Package: libXi-1.7.4 (x86_64) ...PASSED
  351. Verifying Package: libXtst-1.2.2 (x86_64) ...
  352. Node Name Available Required Status
  353. ------------ ------------------------ ------------------------ ----------
  354. jiekexu-r2 libXtst(x86_64)-1.2.3-1.el7 libXtst(x86_64)-1.2.2 passed
  355. jiekexu-r1 libXtst(x86_64)-1.2.3-1.el7 libXtst(x86_64)-1.2.2 passed
  356. Verifying Package: libXtst-1.2.2 (x86_64) ...PASSED
  357. Verifying Port Availability for component "Oracle Notification Service (ONS)" ...
  358. Node Name Port Number Protocol Available Status
  359. ---------------- ------------ ------------ ------------ ----------------
  360. jiekexu-r2 6200 TCP yes successful
  361. jiekexu-r1 6200 TCP yes successful
  362. jiekexu-r2 6100 TCP yes successful
  363. jiekexu-r1 6100 TCP yes successful
  364. Verifying Port Availability for component "Oracle Notification Service (ONS)" ...PASSED
  365. Verifying Port Availability for component "Oracle Cluster Synchronization Services (CSSD)" ...
  366. Node Name Port Number Protocol Available Status
  367. ---------------- ------------ ------------ ------------ ----------------
  368. jiekexu-r2 42424 TCP yes successful
  369. jiekexu-r1 42424 TCP yes successful
  370. Verifying Port Availability for component "Oracle Cluster Synchronization Services (CSSD)" ...PASSED
  371. Verifying Users With Same UID: 0 ...PASSED
  372. Verifying Current Group ID ...PASSED
  373. Verifying Root user consistency ...
  374. Node Name Status
  375. ------------------------------------ ------------------------
  376. jiekexu-r2 passed
  377. jiekexu-r1 passed
  378. Verifying Root user consistency ...PASSED
  379. Verifying Package: cvuqdisk-1.0.10-1 ...
  380. Node Name Available Required Status
  381. ------------ ------------------------ ------------------------ ----------
  382. jiekexu-r2 cvuqdisk-1.0.10-1 cvuqdisk-1.0.10-1 passed
  383. jiekexu-r1 cvuqdisk-1.0.10-1 cvuqdisk-1.0.10-1 passed
  384. Verifying Package: cvuqdisk-1.0.10-1 ...PASSED
  385. Verifying Host name ...PASSED
  386. Verifying Node Connectivity ...
  387. Verifying Hosts File ...
  388. Node Name Status
  389. ------------------------------------ ------------------------
  390. jiekexu-r1 passed
  391. jiekexu-r2 passed
  392. Verifying Hosts File ...PASSED
  393. Interface information for node "jiekexu-r2"
  394. Name IP Address Subnet Gateway Def. Gateway HW Address MTU
  395. ------ --------------- --------------- --------------- --------------- ----------------- ------
  396. ens32 192.168.75.30 192.168.75.0 0.0.0.0 10.10.10.1 00:0C:29:E4:CE:69 1500
  397. ens32 192.168.75.129 192.168.75.0 0.0.0.0 10.10.10.1 00:0C:29:E4:CE:69 1500
  398. ens33 10.10.10.129 10.0.0.0 0.0.0.0 10.10.10.1 00:0C:29:E4:CE:73 1500
  399. Interface information for node "jiekexu-r1"
  400. Name IP Address Subnet Gateway Def. Gateway HW Address MTU
  401. ------ --------------- --------------- --------------- --------------- ----------------- ------
  402. ens32 192.168.75.28 192.168.75.0 0.0.0.0 10.10.10.1 00:0C:29:2C:79:CE 1500
  403. ens32 192.168.75.128 192.168.75.0 0.0.0.0 10.10.10.1 00:0C:29:2C:79:CE 1500
  404. ens33 10.10.10.128 10.0.0.0 0.0.0.0 10.10.10.1 00:0C:29:2C:79:D8 1500
  405. Check: MTU consistency of the subnet "192.168.75.0".
  406. Node Name IP Address Subnet MTU
  407. ---------------- ------------ ------------ ------------ ----------------
  408. jiekexu-r2 ens32 192.168.75.30 192.168.75.0 1500
  409. jiekexu-r2 ens32 192.168.75.129 192.168.75.0 1500
  410. jiekexu-r1 ens32 192.168.75.28 192.168.75.0 1500
  411. jiekexu-r1 ens32 192.168.75.128 192.168.75.0 1500
  412. Check: MTU consistency of the subnet "10.0.0.0".
  413. Node Name IP Address Subnet MTU
  414. ---------------- ------------ ------------ ------------ ----------------
  415. jiekexu-r2 ens33 10.10.10.129 10.0.0.0 1500
  416. jiekexu-r1 ens33 10.10.10.128 10.0.0.0 1500
  417. Verifying Check that maximum (MTU) size packet goes through subnet ...PASSED
  418. Source Destination Connected?
  419. ------------------------------ ------------------------------ ----------------
  420. jiekexu-r1[ens32:192.168.75.28] jiekexu-r2[ens32:192.168.75.129] yes
  421. jiekexu-r1[ens32:192.168.75.28] jiekexu-r2[ens32:192.168.75.30] yes
  422. jiekexu-r1[ens32:192.168.75.28] jiekexu-r1[ens32:192.168.75.128] yes
  423. jiekexu-r2[ens32:192.168.75.129] jiekexu-r2[ens32:192.168.75.30] yes
  424. jiekexu-r2[ens32:192.168.75.129] jiekexu-r1[ens32:192.168.75.128] yes
  425. jiekexu-r2[ens32:192.168.75.30] jiekexu-r1[ens32:192.168.75.128] yes
  426. Source Destination Connected?
  427. ------------------------------ ------------------------------ ----------------
  428. jiekexu-r1[ens33:10.10.10.128] jiekexu-r2[ens33:10.10.10.129] yes
  429. Verifying subnet mask consistency for subnet "192.168.75.0" ...PASSED
  430. Verifying subnet mask consistency for subnet "10.0.0.0" ...PASSED
  431. Verifying Node Connectivity ...PASSED
  432. Verifying Multicast or broadcast check ...
  433. Checking subnet "192.168.75.0" for multicast communication with multicast group "224.0.0.251"
  434. Verifying Multicast or broadcast check ...PASSED
  435. Verifying Network Time Protocol (NTP) ...PASSED
  436. Verifying Same core file name pattern ...PASSED
  437. Verifying User Mask ...
  438. Node Name Available Required Comment
  439. ------------ ------------------------ ------------------------ ----------
  440. jiekexu-r2 0022 0022 passed
  441. jiekexu-r1 0022 0022 passed
  442. Verifying User Mask ...PASSED
  443. Verifying User Not In Group "root": grid ...
  444. Node Name Status Comment
  445. ------------ ------------------------ ------------------------
  446. jiekexu-r2 passed does not exist
  447. jiekexu-r1 passed does not exist
  448. Verifying User Not In Group "root": grid ...PASSED
  449. Verifying Time zone consistency ...PASSED
  450. Verifying Time offset between nodes ...PASSED
  451. Verifying resolv.conf Integrity ...
  452. Node Name Status
  453. ------------------------------------ ------------------------
  454. jiekexu-r1 failed
  455. jiekexu-r2 failed
  456. checking response for name "jiekexu-r2" from each of the name servers specified
  457. in "/etc/resolv.conf"
  458. Node Name Source Comment Status
  459. ------------ ------------------------ ------------------------ ----------
  460. jiekexu-r2 192.168.75.2 IPv4 failed
  461. checking response for name "jiekexu-r1" from each of the name servers specified
  462. in "/etc/resolv.conf"
  463. Node Name Source Comment Status
  464. ------------ ------------------------ ------------------------ ----------
  465. jiekexu-r1 192.168.75.2 IPv4 failed
  466. Verifying resolv.conf Integrity ...FAILED (PRVF-5636, PRVG-10048)
  467. Verifying DNS/NIS name service ...PASSED
  468. Verifying Domain Sockets ...PASSED
  469. Verifying /boot mount ...PASSED
  470. Verifying Daemon "avahi-daemon" not configured and running ...
  471. Node Name Configured Status
  472. ------------ ------------------------ ------------------------
  473. jiekexu-r2 no passed
  474. jiekexu-r1 no passed
  475. Node Name Running? Status
  476. ------------ ------------------------ ------------------------
  477. jiekexu-r2 no passed
  478. jiekexu-r1 no passed
  479. Verifying Daemon "avahi-daemon" not configured and running ...PASSED
  480. Verifying Daemon "proxyt" not configured and running ...
  481. Node Name Configured Status
  482. ------------ ------------------------ ------------------------
  483. jiekexu-r2 no passed
  484. jiekexu-r1 no passed
  485. Node Name Running? Status
  486. ------------ ------------------------ ------------------------
  487. jiekexu-r2 no passed
  488. jiekexu-r1 no passed
  489. Verifying Daemon "proxyt" not configured and running ...PASSED
  490. Verifying User Equivalence ...PASSED
  491. Verifying RPM Package Manager database ...INFORMATION (PRVG-11250)
  492. Verifying /dev/shm mounted as temporary file system ...PASSED
  493. Verifying File system mount options for path /var ...PASSED
  494. Verifying DefaultTasksMax parameter ...PASSED
  495. Verifying zeroconf check ...PASSED
  496. Verifying ASM Filter Driver configuration ...PASSED
  497. Pre-check for cluster services setup was unsuccessful on all the nodes.
  498. Failures were encountered during execution of CVU verification request "stage -pre crsinst".
  499. Verifying resolv.conf Integrity ...FAILED
  500. jiekexu-r2: PRVF-5636 : The DNS response time for an unreachable node exceeded
  501. "15000" ms on following nodes: jiekexu-r1,jiekexu-r2
  502. jiekexu-r2: PRVG-10048 : Name "jiekexu-r2" was not resolved to an address of
  503. the specified type by name servers "192.168.75.2".
  504. jiekexu-r1: PRVF-5636 : The DNS response time for an unreachable node exceeded
  505. "15000" ms on following nodes: jiekexu-r1,jiekexu-r2
  506. jiekexu-r1: PRVG-10048 : Name "jiekexu-r1" was not resolved to an address of
  507. the specified type by name servers "192.168.75.2".
  508. Verifying RPM Package Manager database ...INFORMATION
  509. PRVG-11250 : The check "RPM Package Manager database" was not performed because
  510. it needs 'root' user privileges.
  511. CVU operation performed: stage -pre crsinst
  512. Date: Aug 25, 2021 8:41:59 PM
  513. CVU home: /u01/app/19.0.0/grid/
  514. User: grid
  515. [grid@jiekexu-r1:/home/grid]$ /u01/app/19.0.0/grid/runcluvfy.sh stage -pre crsinst -n jiekexu-r1,jiekexu-r2 -method root
  516. Enter "ROOT" password:
  517. Verifying Physical Memory ...PASSED
  518. Verifying Available Physical Memory ...PASSED
  519. Verifying Swap Size ...PASSED
  520. Verifying Free Space: jiekexu-r2:/usr,jiekexu-r2:/var,jiekexu-r2:/etc,jiekexu-r2:/sbin,jiekexu-r2:/tmp ...PASSED
  521. Verifying Free Space: jiekexu-r1:/usr,jiekexu-r1:/var,jiekexu-r1:/etc,jiekexu-r1:/sbin,jiekexu-r1:/tmp ...PASSED
  522. Verifying User Existence: grid ...
  523. Verifying Users With Same UID: 10001 ...PASSED
  524. Verifying User Existence: grid ...PASSED
  525. Verifying Group Existence: asmadmin ...PASSED
  526. Verifying Group Existence: asmdba ...PASSED
  527. Verifying Group Existence: oinstall ...PASSED
  528. Verifying Group Membership: asmdba ...PASSED
  529. Verifying Group Membership: asmadmin ...PASSED
  530. Verifying Group Membership: oinstall(Primary) ...PASSED
  531. Verifying Run Level ...PASSED
  532. Verifying Hard Limit: maximum open file descriptors ...PASSED
  533. Verifying Soft Limit: maximum open file descriptors ...PASSED
  534. Verifying Hard Limit: maximum user processes ...PASSED
  535. Verifying Soft Limit: maximum user processes ...PASSED
  536. Verifying Soft Limit: maximum stack size ...PASSED
  537. Verifying Architecture ...PASSED
  538. Verifying OS Kernel Version ...PASSED
  539. Verifying OS Kernel Parameter: semmsl ...PASSED
  540. Verifying OS Kernel Parameter: semmns ...PASSED
  541. Verifying OS Kernel Parameter: semopm ...PASSED
  542. Verifying OS Kernel Parameter: semmni ...PASSED
  543. Verifying OS Kernel Parameter: shmmax ...PASSED
  544. Verifying OS Kernel Parameter: shmmni ...PASSED
  545. Verifying OS Kernel Parameter: shmall ...PASSED
  546. Verifying OS Kernel Parameter: file-max ...PASSED
  547. Verifying OS Kernel Parameter: ip_local_port_range ...PASSED
  548. Verifying OS Kernel Parameter: rmem_default ...PASSED
  549. Verifying OS Kernel Parameter: rmem_max ...PASSED
  550. Verifying OS Kernel Parameter: wmem_default ...PASSED
  551. Verifying OS Kernel Parameter: wmem_max ...PASSED
  552. Verifying OS Kernel Parameter: aio-max-nr ...PASSED
  553. Verifying Package: kmod-20-21 (x86_64) ...PASSED
  554. Verifying Package: kmod-libs-20-21 (x86_64) ...PASSED
  555. Verifying Package: binutils-2.23.52.0.1 ...PASSED
  556. Verifying Package: compat-libcap1-1.10 ...PASSED
  557. Verifying Package: libgcc-4.8.2 (x86_64) ...PASSED
  558. Verifying Package: libstdc++-4.8.2 (x86_64) ...PASSED
  559. Verifying Package: libstdc++-devel-4.8.2 (x86_64) ...PASSED
  560. Verifying Package: sysstat-10.1.5 ...PASSED
  561. Verifying Package: gcc-c++-4.8.2 ...PASSED
  562. Verifying Package: ksh ...PASSED
  563. Verifying Package: make-3.82 ...PASSED
  564. Verifying Package: glibc-2.17 (x86_64) ...PASSED
  565. Verifying Package: glibc-devel-2.17 (x86_64) ...PASSED
  566. Verifying Package: libaio-0.3.109 (x86_64) ...PASSED
  567. Verifying Package: libaio-devel-0.3.109 (x86_64) ...PASSED
  568. Verifying Package: nfs-utils-1.2.3-15 ...PASSED
  569. Verifying Package: smartmontools-6.2-4 ...PASSED
  570. Verifying Package: net-tools-2.0-0.17 ...PASSED
  571. Verifying Package: compat-libstdc++-33-3.2.3 (x86_64) ...PASSED
  572. Verifying Package: libxcb-1.11 (x86_64) ...PASSED
  573. Verifying Package: libX11-1.6.3 (x86_64) ...PASSED
  574. Verifying Package: libXau-1.0.8 (x86_64) ...PASSED
  575. Verifying Package: libXi-1.7.4 (x86_64) ...PASSED
  576. Verifying Package: libXtst-1.2.2 (x86_64) ...PASSED
  577. Verifying Port Availability for component "Oracle Notification Service (ONS)" ...PASSED
  578. Verifying Port Availability for component "Oracle Cluster Synchronization Services (CSSD)" ...PASSED
  579. Verifying Users With Same UID: 0 ...PASSED
  580. Verifying Current Group ID ...PASSED
  581. Verifying Root user consistency ...PASSED
  582. Verifying Package: cvuqdisk-1.0.10-1 ...PASSED
  583. Verifying Host name ...PASSED
  584. Verifying Node Connectivity ...
  585. Verifying Hosts File ...PASSED
  586. Verifying Check that maximum (MTU) size packet goes through subnet ...PASSED
  587. Verifying subnet mask consistency for subnet "192.168.75.0" ...PASSED
  588. Verifying subnet mask consistency for subnet "10.0.0.0" ...PASSED
  589. Verifying Node Connectivity ...PASSED
  590. Verifying Multicast or broadcast check ...PASSED
  591. Verifying Network Time Protocol (NTP) ...PASSED
  592. Verifying Same core file name pattern ...PASSED
  593. Verifying User Mask ...PASSED
  594. Verifying User Not In Group "root": grid ...PASSED
  595. Verifying Time zone consistency ...PASSED
  596. Verifying Time offset between nodes ...PASSED
  597. Verifying resolv.conf Integrity ...FAILED (PRVG-13159)
  598. Verifying DNS/NIS name service ...PASSED
  599. Verifying Domain Sockets ...PASSED
  600. Verifying /boot mount ...PASSED
  601. Verifying Daemon "avahi-daemon" not configured and running ...PASSED
  602. Verifying Daemon "proxyt" not configured and running ...PASSED
  603. Verifying User Equivalence ...PASSED
  604. Verifying RPM Package Manager database ...PASSED
  605. Verifying /dev/shm mounted as temporary file system ...PASSED
  606. Verifying File system mount options for path /var ...PASSED
  607. Verifying DefaultTasksMax parameter ...PASSED
  608. Verifying zeroconf check ...PASSED
  609. Verifying ASM Filter Driver configuration ...PASSED
  610. Pre-check for cluster services setup was unsuccessful on all the nodes.
  611. Failures were encountered during execution of CVU verification request "stage -pre crsinst".
  612. Verifying resolv.conf Integrity ...FAILED
  613. jiekexu-r2: PRVG-13159 : On node "jiekexu-r2" the file "/etc/resolv.conf" could
  614. not be parsed because the file is empty.
  615. jiekexu-r1: PRVG-13159 : On node "jiekexu-r1" the file "/etc/resolv.conf" could
  616. not be parsed because the file is empty.
  617. CVU operation performed: stage -pre crsinst
  618. Date: Aug 30, 2021 7:49:20 PM
  619. CVU home: /u01/app/19.0.0/grid/
  620. User: grid

6.4 查看静默安装文件

  1. [root@jiekexu-r2 soft]# lvmdiskscan
  2. /dev/sda1 [ 1.00 GiB]
  3. /dev/sda2 [ <99.00 GiB] LVM physical volume
  4. /dev/asm_data01 [ 10.00 GiB]
  5. /dev/asm_ocr02 [ 3.00 GiB]
  6. /dev/asm_ocr01 [ 3.00 GiB]
  7. /dev/asm_data02 [ 10.00 GiB]
  8. /dev/asm_arch01 [ 10.00 GiB]
  9. /dev/asm_ocr03 [ 3.00 GiB]
  10. 0 disks
  11. 7 partitions
  12. 0 LVM physical volume whole disks
  13. 1 LVM physical volume

响应文件位置

/u01/app/19.0.0/grid/install/response

${ORACLE_HOME}/install/response/gridsetup.rsp

参数说明:

oracle.install.crs.config.clusterNodes=网卡名:公网IP地址段:1,私网网卡名:私网IP地址段:5

这里的 1 代表 PUBLIC,5 代表 ASM & PRIVATE

  1. #############################################################################
  2. oracle.install.crs.config.clusterNodes=
  3. #############################################################################
  4. The value should be a comma separated strings where each string is as shown below
  5. InterfaceName:SubnetAddress:InterfaceType
  6. where InterfaceType can be either "1", "2", "3", "4", or "5"
  7. InterfaceType stand for the following values
  8. 1 : PUBLIC
  9. 2 : PRIVATE
  10. 3 : DO NOT USE
  11. 4 : ASM
  12. 5 : ASM & PRIVATE
  13. #
  14. For example: eth0:140.87.24.0:1,eth1:10.2.1.0:2,eth2:140.87.52.0:3
  15. #############################################################################
  16. 12.2:Post upgrade steps for Grid infrastructure reports INS-32601 error (Doc ID 2380863.1)

6.5 执行补丁和 GI 安装

jiekexu-r1:/home/grid(+ASM1)$ $ORACLE_HOME/gridSetup.sh --helpUsage: gridSetup.sh [<flag>] [<option>]Following are the possible flags: -help - 显示帮助。 -silent - 在无提示模式下运行。输入内容可以是一个响应文件, 也可以是命令行变量值对的列表。 [-ignorePrereqFailure - 忽略所有先决条件检查失败。] [-lenientInstallMode - 通过自动忽略输入参数中的无效数据, 执行“最佳效果”安装。] -responseFile - 指定要使用的响应文件的完整路径。 -logLevel - 根据此参数所提供的优先级启用消息日志。有效选项包括: 严重, 警告, 信息, 配置, 详细, 较为详细, 非常详细。 -executePrereqs | -executeConfigTools | -createGoldImage | -switchGridHome | -downgrade | -dryRunForUpgrade -executePrereqs - 仅执行先决条件检查。 -executeConfigTools - 对安装的主目录执行配置工具。 [-skipStackCheck - 跳过堆栈状态检查。] -createGoldImage - 从当前 Oracle 主目录创建 Gold Image。 -destinationLocation - 指定将存放所创建 Gold Image 的位置的完整路径。 [-exclFiles - 指定要从新 Gold Image 中排除的文件的完整路径。] -switchGridHome - 更改 Oracle Grid Infrastructure 主目录路径。 -downgrade - 将网格基础结构降级回旧主目录 (仅在升级不完整的情况下使用)。 -silent - 在无提示模式下运行。输入内容可以是一个响应文件, 也可以是命令行变量值对的列表。 [-ignorePrereqFailure - 忽略所有先决条件检查失败。] [-lenientInstallMode - 通过自动忽略输入参数中的无效数据, 执行“最佳效果”安装。] [-configmethod - 指定以授权用户身份执行脚本的方法。如果未指定, 则系统将指示用户以授权用户身份登录来运行脚本。有效选项为: root,sudo。] [-sudopath - 指定 sudo 程序的完整路径。这是可选参数。在为 configmethod 指定了 'sudo' 并且默认路径中没有 'sudo' 程序时, 需要此项。] [-sudousername - 指定 sudoer 的名称。] -dryRunForUpgrade - 执行网格基础结构升级过程的预演。 -debug - 在调试模式下运行。 -printdiskusage - 记录有关磁盘使用情况的调试信息。 -printmemory - 记录有关内存使用情况的调试信息。 -printtime - 记录有关时间使用情况的调试信息。 -waitForCompletion - 等待安装完成, 而不是衍生安装程序并返回控制台提示符。 -noconfig - 不执行配置工具。 -noconsole - 禁止在控制台中显示消息。不分配控制台。 -ignoreInternalDriverError - 忽略任何内部驱动程序错误。 -noCopy - 执行配置, 但不将软件复制到远程节点。 -applyRU - 将发行版更新应用于 Oracle 主目录。        -applyOneOffs - 将一次性补丁程序应用于 Oracle 主目录。多个一次性补丁程序可以采用逗号分隔的位置列表格式传递。

  1. $ORACLE_HOME/gridSetup.sh -silent -applyRU /home/soft/32900083/32895426 -force -noconfig -ignorePrereq -waitforcompletion \
  2. -responseFile ${ORACLE_HOME}/install/response/gridsetup.rsp \
  3. INVENTORY_LOCATION=/u01/app/oraInventory \
  4. ORACLE_BASE=/u01/app/grid \
  5. ORACLE_HOME=/u01/app/19.0.0/grid \
  6. oracle.install.asm.OSDBA=asmdba \
  7. oracle.install.asm.OSOPER=asmoper \
  8. oracle.install.asm.OSASM=asmadmin \
  9. oracle.install.crs.config.storageOption=ASM \
  10. oracle.install.crs.config.useIPMI=false \
  11. oracle.install.asm.diskGroup.name=OCR \
  12. oracle.install.asm.diskGroup.AUSize=4 \
  13. oracle.install.asm.diskGroup.redundancy=NORMAL \
  14. oracle.install.crs.config.ClusterConfiguration=STANDALONE \
  15. oracle.install.crs.config.configureAsExtendedCluster=false \
  16. oracle.install.crs.config.gpnp.scanPort=1521 \
  17. oracle.install.crs.config.gpnp.configureGNS=false \
  18. oracle.install.option=CRS_CONFIG \
  19. oracle.install.asm.SYSASMPassword=Oracle19C \
  20. oracle.install.asm.monitorPassword=Oracle19C \
  21. oracle.install.asm.diskGroup.diskDiscoveryString=/dev/asm_* \
  22. oracle.install.asm.diskGroup.disks=/dev/asm_ocr01,/dev/asm_ocr02,/dev/asm_ocr03 \
  23. oracle.install.crs.config.gpnp.scanName=jiekexu-racscan \
  24. oracle.install.crs.config.clusterName=jiekexu-racscan \
  25. oracle.install.crs.config.autoConfigureClusterNodeVIP=false \
  26. oracle.install.crs.config.clusterNodes=jiekexu-r1:jiekexu-r1-vip,jiekexu-r2:jiekexu-r2-vip \
  27. oracle.install.crs.config.networkInterfaceList=ens32:192.168.75.0:1,ens33:10.10.10.0:5 \
  28. oracle.install.asm.configureGIMRDataDG=false \
  29. oracle.install.crs.configureRHPS=false \
  30. oracle.install.crs.config.ignoreDownNodes=false \
  31. oracle.install.config.managementOption=NONE \
  32. oracle.install.config.omsPort=0 \
  33. oracle.install.crs.rootconfig.executeRootScript=false 

--注:这里尝试配置 root 自动执行 root.sh 脚本时,需要输入密码,但很快就过去了,根本来不及输入密码。无奈则取消掉 oracle.install.crs.rootconfig.configMethod=ROOT 这行,将 oracle.install.crs.rootconfig.executeRootScript=true  改为 oracle.install.crs.rootconfig.executeRootScript=false

  1. [grid@jiekexu-r2:/home/grid]$ cd /u01/app/19.0.0/grid
  2. [grid@jiekexu-r2:/u01/app/19.0.0/grid]$ ls
  3. addnode clone dbs gpnp inventory lib opatchautocfg ord plsql rdbms root.sh.old.2 sqlpatch usm xdk
  4. assistants crs deinstall gridSetup.sh javavm md OPatch.bak0826 ords precomp relnotes root.sh.old.3 sqlplus utl
  5. bin css demo has jdbc network opmn oss pylib rhp rootupgrade.sh srvm welcome.html
  6. cfgtoollogs ctx diagnostics hs jdk nls oracore oui QOpatch root.sh runcluvfy.sh suptools wlm
  7. cha cv env.ora install jlib olap oradiag_grid owm qos root.sh.old sdk tomcat wwg
  8. client dbjava evm instantclient ldap OPatch oraInst.loc perl racg root.sh.old.1 slax ucp xag
  9. [grid@jiekexu-r2:/u01/app/19.0.0/grid]$ opatch version
  10. OPatch Version: 12.2.0.1.25
  11. OPatch succeeded.
  12. [grid@jiekexu-r2:/u01/app/19.0.0/grid]$ opatch lspatches
  13. 32918050;TOMCAT RELEASE UPDATE 19.0.0.0.0 (32918050)
  14. 32916816;OCW RELEASE UPDATE 19.12.0.0.0 (32916816)
  15. 32915586;ACFS RELEASE UPDATE 19.12.0.0.0 (32915586)
  16. 32904851;Database Release Update : 19.12.0.0.210720 (32904851)
  17. 32585572;DBWLM RELEASE UPDATE 19.0.0.0.0 (32585572)
  18. OPatch succeeded.

  1. You can find the log of this install session at:
  2. /u01/app/oraInventory/logs/GridSetupActions2021-08-30_08-16-41PM/gridSetupActions2021-08-30_08-16-41PM.log
  3. As a root user, execute the following script(s):
  4. 1. /u01/app/19.0.0/grid/root.sh
  5. Execute /u01/app/19.0.0/grid/root.sh on the following nodes:
  6. [jiekexu-r1, jiekexu-r2]
  7. Run the script on the local node first. After successful completion, you can start the script in parallel on all other nodes.
  8. Successfully Setup Software with warning(s).
  9. As install user, execute the following command to complete the configuration.
  10. /u01/app/19.0.0/grid/gridSetup.sh -executeConfigTools -responseFile /u01/app/19.0.0/grid/install/response/gridsetup.rsp [-silent]

6.5.1 root 脚本执行

/u01/app/oraInventory/orainstRoot.sh

/u01/app/19.0.0/grid/root.sh

  1. [root@jiekexu-r1 ~]# /u01/app/19.0.0/grid/root.sh
  2. Check /u01/app/19.0.0/grid/install/root_jiekexu-r1_2021-08-28_19-52-00-806173517.log for the output of root script
  3. [root@jiekexu-r1 ~]#

执行脚本遇到如下错误ORA-39511,这个问题前面一篇文章已经说了,可点此查看

  1. ORA-39511: Start of CRS resource for instance '215' failed with error:[CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'jiekexu-r1'
  2. oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-39511: Start of CRS resource for instance '215' failed with error:[CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'jiekexu-r1'

6.5.2 卸载 GI

如果脚本执行错误,重复执行也无法修复时,则需要使用 deinstall 卸载重新安装。

  1. cd $ORACLE_HOME/deinstall
  2. ./deinstall
  3. 根据提示输入和执行脚本
  4. n n y 另开会话执行脚本 ./rootcrs.sh -force -deconfig -paramfile ……,等待十几分钟
  5. rm -rf /opt/ORCLfmap
  6. rm -rf /etc/oraInst.loc
  7. 检查所有节点的配置文件/etc/oraInst.loc、/etc/oratab是否存在相关配置,若有,则删除之。
  8. 使用 root 用户登录所有节点,执行:
  9. # rm -rf /etc/oracle /tmp/.oracle /var/tmp/.oracle /u01/app/oraInventory /u01/app/grid/* /tmp/GridSetupActions*
  10. 卸载后新建 mkdir -p /u01/app/19.0.0/grid
  11. chown -R grid:oinstall /u01
  12. chmod -R 775 /u01
  13. chown -R oracle:oinstall /u01/app/oracle
  14. 另一节点如果还没执行 root.sh 则直接 /u01/app/19.0.0/grid :
  15. cd $ORACLE_HOME
  16. rm -rf * rm -rf .opatchauto_storage rm -rf .patch_storage
  17. cd /u01/app/grid
  18. rm -rf *
  19. rm -rf /u01/app/oraInventory

6.6 重新解压 GI 安装包继续安装

  1. unzip LINUX.X64_193000_grid_home.zip -d $ORACLE_HOME
  2. cd $ORACLE_HOME/OPatch
  3. mv OPatch/ OPatch.bak
  4. cp -r /home/soft/OPatch/ ./

两节点均需配置,使用ifconfigip link show查看mac地址。修改文件/etc/udev/rules.d/70-persistent-ipoib.rules

  1. cat > /etc/udev/rules.d/70-persistent-ipoib.rules <<"EOF"
  2. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:e4:ce:69", ATTR{type}=="1", KERNEL=="eth*", NAME="ens32"
  3. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:e4:ce:73", ATTR{type}=="1", KERNEL=="eth*", NAME="ens33"
  4. EOF
  1. [root@jiekexu-r1 ~]# ip link show
  2. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
  3. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  4. 2: ens32: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
  5. link/ether 00:0c:29:e4:ce:69 brd ff:ff:ff:ff:ff:ff
  6. 3: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
  7. link/ether 00:0c:29:e4:ce:73 brd ff:ff:ff:ff:ff:ff
  8. cat > /etc/sysconfig/network-scripts/ifcfg-ens32 <<"EOF"
  9. DEVICE=ens32
  10. NAME=ens32
  11. IPADDR=192.168.75.128
  12. NETMASK=255.255.255.0
  13. GATEWAY=192.168.75.2
  14. ONBOOT=yes
  15. USERCTL=no
  16. BOOTPROTO=static
  17. HWADDR=00:0c:29:e4:ce:69
  18. TYPE=Ethernet
  19. IPV6INIT=no
  20. DNS1=114.114.114.114
  21. DNS2=8.8.8.8
  22. NM_CONTROLLED=no
  23. EOF

注意第二块网卡不配置网关,否则系统默认网关就变成了第二块网卡的网关,从而导致系统不能上外网。

  1. cat > /etc/sysconfig/network-scripts/ifcfg-ens33 <<"EOF"
  2. DEVICE=ens33
  3. NAME=ens33
  4. IPADDR=10.10.10.128
  5. NETMASK=255.255.255.0
  6. ONBOOT=yes
  7. USERCTL=no
  8. BOOTPROTO=static
  9. HWADDR=00:0c:29:e4:ce:73
  10. TYPE=Ethernet
  11. IPV6INIT=no
  12. DNS1=114.114.114.114
  13. DNS2=8.8.8.8
  14. NM_CONTROLLED=no
  15. EOF

重跑 root.sh

  1. [root@jiekexu-r1 network-scripts]# cat /u01/app/19.0.0/grid/install/root_jiekexu-r1_2021-08-31_18-14-46-714402688.log
  2. Performing root user operation.
  3. The following environment variables are set as:
  4. ORACLE_OWNER= grid
  5. ORACLE_HOME= /u01/app/19.0.0/grid
  6. Copying dbhome to /usr/local/bin ...
  7. Copying oraenv to /usr/local/bin ...
  8. Copying coraenv to /usr/local/bin ...
  9. Entries will be added to the /etc/oratab file as needed by
  10. Database Configuration Assistant when a database is created
  11. Finished running generic part of root script.
  12. Now product-specific root actions will be performed.
  13. Relinking oracle with rac_on option
  14. Using configuration parameter file: /u01/app/19.0.0/grid/crs/install/crsconfig_params
  15. The log of current session can be found at:
  16. /u01/app/grid/crsdata/jiekexu-r1/crsconfig/rootcrs_jiekexu-r1_2021-08-31_06-14-47PM.log
  17. 2021/08/31 18:14:50 CLSRSC-594: Executing installation step 1 of 19: 'SetupTFA'.
  18. 2021/08/31 18:14:50 CLSRSC-594: Executing installation step 2 of 19: 'ValidateEnv'.
  19. 2021/08/31 18:14:50 CLSRSC-363: User ignored prerequisites during installation
  20. 2021/08/31 18:14:50 CLSRSC-594: Executing installation step 3 of 19: 'CheckFirstNode'.
  21. 2021/08/31 18:14:52 CLSRSC-594: Executing installation step 4 of 19: 'GenSiteGUIDs'.
  22. 2021/08/31 18:14:53 CLSRSC-594: Executing installation step 5 of 19: 'SetupOSD'.
  23. 2021/08/31 18:14:53 CLSRSC-594: Executing installation step 6 of 19: 'CheckCRSConfig'.
  24. 2021/08/31 18:14:53 CLSRSC-594: Executing installation step 7 of 19: 'SetupLocalGPNP'.
  25. 2021/08/31 18:14:54 CLSRSC-594: Executing installation step 8 of 19: 'CreateRootCert'.
  26. 2021/08/31 18:14:57 CLSRSC-594: Executing installation step 9 of 19: 'ConfigOLR'.
  27. 2021/08/31 18:14:57 CLSRSC-594: Executing installation step 10 of 19: 'ConfigCHMOS'.
  28. 2021/08/31 18:14:57 CLSRSC-594: Executing installation step 11 of 19: 'CreateOHASD'.
  29. 2021/08/31 18:14:58 CLSRSC-594: Executing installation step 12 of 19: 'ConfigOHASD'.
  30. 2021/08/31 18:15:00 CLSRSC-594: Executing installation step 13 of 19: 'InstallAFD'.
  31. 2021/08/31 18:15:00 CLSRSC-594: Executing installation step 14 of 19: 'InstallACFS'.
  32. 2021/08/31 18:15:01 CLSRSC-594: Executing installation step 15 of 19: 'InstallKA'.
  33. 2021/08/31 18:15:04 CLSRSC-594: Executing installation step 16 of 19: 'InitConfig'.
  34. 2021/08/31 18:15:22 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.
  35. ASM has been created and started successfully.
  36. [DBT-30001] Disk groups created successfully. Check /u01/app/grid/cfgtoollogs/asmca/asmca-210831PM061542.log for details.
  37. 2021/08/31 18:16:34 CLSRSC-482: Running command: '/u01/app/19.0.0/grid/bin/ocrconfig -upgrade grid oinstall'
  38. CRS-4256: Updating the profile
  39. Successful addition of voting disk 14ed0aa13ffd4f89bfe2d79061f96fbc.
  40. Successful addition of voting disk 27cc8fbc135f4fd3bf574b4d2e62531e.
  41. Successful addition of voting disk c5c806e3a2414f74bf1c70f2add4a821.
  42. Successfully replaced voting disk group with +OCR.
  43. CRS-4256: Updating the profile
  44. CRS-4266: Voting file(s) successfully replaced
  45. STATE File Universal Id File Name Disk group
  46. -- ----- ----------------- --------- ---------
  47. 1. ONLINE 14ed0aa13ffd4f89bfe2d79061f96fbc (/dev/asm_ocr03) [OCR]
  48. 2. ONLINE 27cc8fbc135f4fd3bf574b4d2e62531e (/dev/asm_ocr01) [OCR]
  49. 3. ONLINE c5c806e3a2414f74bf1c70f2add4a821 (/dev/asm_ocr02) [OCR]
  50. Located 3 voting disk(s).
  51. 2021/08/31 18:17:29 CLSRSC-594: Executing installation step 17 of 19: 'StartCluster'.
  52. 2021/08/31 18:18:28 CLSRSC-343: Successfully started Oracle Clusterware stack
  53. 2021/08/31 18:18:28 CLSRSC-594: Executing installation step 18 of 19: 'ConfigNode'.
  54. 2021/08/31 18:20:11 CLSRSC-594: Executing installation step 19 of 19: 'PostConfig'.
  55. 2021/08/31 18:20:38 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded

节点 2 执行 root.sh 也成功了,兴奋中……

  1. [grid@jiekexu-r2:/home/grid]$ tail -30f /u01/app/19.0.0/grid/install/root_jiekexu-r2_2021-08-31_18-25-18-796337893.log
  2. Performing root user operation.
  3. The following environment variables are set as:
  4. ORACLE_OWNER= grid
  5. ORACLE_HOME= /u01/app/19.0.0/grid
  6. Copying dbhome to /usr/local/bin ...
  7. Copying oraenv to /usr/local/bin ...
  8. Copying coraenv to /usr/local/bin ...
  9. Entries will be added to the /etc/oratab file as needed by
  10. Database Configuration Assistant when a database is created
  11. Finished running generic part of root script.
  12. Now product-specific root actions will be performed.
  13. Relinking oracle with rac_on option
  14. Using configuration parameter file: /u01/app/19.0.0/grid/crs/install/crsconfig_params
  15. The log of current session can be found at:
  16. /u01/app/grid/crsdata/jiekexu-r2/crsconfig/rootcrs_jiekexu-r2_2021-08-31_06-25-49PM.log
  17. 2021/08/31 18:25:53 CLSRSC-594: Executing installation step 1 of 19: 'SetupTFA'.
  18. 2021/08/31 18:25:53 CLSRSC-594: Executing installation step 2 of 19: 'ValidateEnv'.
  19. 2021/08/31 18:25:53 CLSRSC-363: User ignored prerequisites during installation
  20. 2021/08/31 18:25:53 CLSRSC-594: Executing installation step 3 of 19: 'CheckFirstNode'.
  21. 2021/08/31 18:25:55 CLSRSC-594: Executing installation step 4 of 19: 'GenSiteGUIDs'.
  22. 2021/08/31 18:25:55 CLSRSC-594: Executing installation step 5 of 19: 'SetupOSD'.
  23. Redirecting to /bin/systemctl restart rsyslog.service
  24. 2021/08/31 18:25:56 CLSRSC-594: Executing installation step 6 of 19: 'CheckCRSConfig'.
  25. 2021/08/31 18:25:58 CLSRSC-594: Executing installation step 7 of 19: 'SetupLocalGPNP'.
  26. 2021/08/31 18:26:02 CLSRSC-594: Executing installation step 8 of 19: 'CreateRootCert'.
  27. 2021/08/31 18:26:02 CLSRSC-594: Executing installation step 9 of 19: 'ConfigOLR'.
  28. 2021/08/31 18:26:16 CLSRSC-594: Executing installation step 10 of 19: 'ConfigCHMOS'.
  29. 2021/08/31 18:26:16 CLSRSC-594: Executing installation step 11 of 19: 'CreateOHASD'.
  30. 2021/08/31 18:26:20 CLSRSC-594: Executing installation step 12 of 19: 'ConfigOHASD'.
  31. 2021/08/31 18:26:20 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
  32. 2021/08/31 18:26:43 CLSRSC-594: Executing installation step 13 of 19: 'InstallAFD'.
  33. 2021/08/31 18:26:43 CLSRSC-594: Executing installation step 14 of 19: 'InstallACFS'.
  34. 2021/08/31 18:27:30 CLSRSC-594: Executing installation step 15 of 19: 'InstallKA'.
  35. 2021/08/31 18:27:33 CLSRSC-594: Executing installation step 16 of 19: 'InitConfig'.
  36. 2021/08/31 18:27:42 CLSRSC-594: Executing installation step 17 of 19: 'StartCluster'.
  37. 2021/08/31 18:27:56 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.
  38. 2021/08/31 18:28:28 CLSRSC-343: Successfully started Oracle Clusterware stack
  39. 2021/08/31 18:28:29 CLSRSC-594: Executing installation step 18 of 19: 'ConfigNode'.
  40. 2021/08/31 18:29:13 CLSRSC-594: Executing installation step 19 of 19: 'PostConfig'.
  41. 2021/08/31 18:29:19 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded

  1. [root@jiekexu-r1 ~]# systemctl status oracle-ohasd.service
  2. ? oracle-ohasd.service - Oracle High Availability Services
  3. Loaded: loaded (/etc/systemd/system/oracle-ohasd.service; enabled; vendor preset: disabled)
  4. Drop-In: /etc/systemd/system/oracle-ohasd.service.d
  5. +-00_oracle-ohasd.conf
  6. Active: active (running) since Thu 2021-09-02 10:55:47 CST; 37min ago
  7. Main PID: 1638 (init.ohasd)
  8. CGroup: /system.slice/oracle-ohasd.service
  9. +- 1638 /bin/sh /etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null
  10. …………省略更多输出…………
  11. Sep 02 11:29:49 jiekexu-r1 CLSD[4579]: The clock on host jiekexu-r1 has been updated by the Cluster Time Synchronization Service to be synchronous with the mean cluster time.
  12. Sep 02 11:31:58 jiekexu-r1 oracle_26819_+a[26819]: Oracle Audit[26819]: LENGTH : '247' ACTION :[7] 'CONNECT' DATABASE USER:[1] '/' PRIVILEGE :[6] 'SYSDBA' CLIENT USER:[4] 'gri...R:[3] '100'
  13. Hint: Some lines were ellipsized, use -l to show in full.

6.9 配置集群

根据 6.5.1 节前的内容,执行完 root.sh 脚本,执行 executeConfigTools 配置,更新节点信息。

  1. /u01/app/19.0.0/grid/gridSetup.sh -silent -executeConfigTools -waitforcompletion \
  2. -responseFile /u01/app/19.0.0/grid/install/response/gridsetup.rsp \
  3. INVENTORY_LOCATION=/u01/app/oraInventory \
  4. ORACLE_BASE=/u01/app/grid \
  5. ORACLE_HOME=/u01/app/19.0.0/grid \
  6. oracle.install.asm.OSDBA=asmdba \
  7. oracle.install.asm.OSOPER=asmoper \
  8. oracle.install.asm.OSASM=asmadmin \
  9. oracle.install.crs.config.storageOption=ASM \
  10. oracle.install.crs.config.useIPMI=false \
  11. oracle.install.asm.diskGroup.name=OCR \
  12. oracle.install.asm.diskGroup.AUSize=4 \
  13. oracle.install.asm.diskGroup.redundancy=NORMAL \
  14. oracle.install.crs.config.ClusterConfiguration=STANDALONE \
  15. oracle.install.crs.config.configureAsExtendedCluster=false \
  16. oracle.install.crs.config.gpnp.scanPort=1521 \
  17. oracle.install.crs.config.gpnp.configureGNS=false \
  18. oracle.install.option=CRS_CONFIG \
  19. oracle.install.asm.SYSASMPassword=Oracle19C \
  20. oracle.install.asm.monitorPassword=Oracle19C \
  21. oracle.install.asm.diskGroup.diskDiscoveryString=/dev/asm_* \
  22. oracle.install.asm.diskGroup.disks=/dev/asm_ocr01,/dev/asm_ocr02,/dev/asm_ocr03 \
  23. oracle.install.crs.config.gpnp.scanName=jiekexu-racscan \
  24. oracle.install.crs.config.clusterName=jiekexu-racscan \
  25. oracle.install.crs.config.autoConfigureClusterNodeVIP=false \
  26. oracle.install.crs.config.clusterNodes=jiekexu-r1:jiekexu-r1-vip,jiekexu-r2:jiekexu-r2-vip \
  27. oracle.install.crs.config.networkInterfaceList=ens32:192.168.75.0:1,ens33:10.10.10.0:5 \
  28. oracle.install.asm.configureGIMRDataDG=false \
  29. oracle.install.crs.configureRHPS=false \
  30. oracle.install.crs.config.ignoreDownNodes=false \
  31. oracle.install.config.managementOption=NONE \
  32. oracle.install.config.omsPort=0 \
  33. oracle.install.crs.rootconfig.executeRootScript=false
  34. Launching Oracle Grid Infrastructure Setup Wizard...
  35. You can find the logs of this session at:
  36. /u01/app/oraInventory/logs/GridSetupActions2021-08-31_06-44-55PM
  37. You can find the log of this install session at:
  38. /u01/app/oraInventory/logs/UpdateNodeList2021-08-31_06-44-55PM.log
  39. Configuration failed.
  40. [WARNING] [INS-43080] Some of the configuration assistants failed, were cancelled or skipped.
  41. ACTION: Refer to the logs or contact Oracle Support Services.

注意:在 /u01/app/19.0.0/grid/install/response 目录下,新生成了 grid_2021-08-31_02-31-29PM.rsp 响应文件,可以使用新生成的,我这里沿用了前面的配置项也可以。

7.创建磁盘组

创建磁盘组可使用图形化 asmca 创建,也可以使用 asmca -silent 静默创建,更可以使用 SQL 语句创建。

在这里创建3个磁盘组:

OCR: 存放OCR voting 文件。AU size 4MB  ,redundance NORMAL。

DATA : 存放数据文件等。AU size 4MB  ,redundance EXTERNAL 。

ARCH : 存放归档日志和镜像的 ONLINE LOGFILE。redundance EXTERNAL 。

#创建 DATA 磁盘组

  1. asmca -silent -createDiskGroup -sysAsmPassword Oracle_19c -asmsnmpPassword Oracle_19c -oui_internal -diskString '/dev/asm_\*\' -diskGroupName DATA -diskList /dev/asm_data01,/dev/asm_data02 -redundancy EXTERNAL -au_size 4 -compatible.asm 19.0.0.0.0
  2. [INFO] [DBT-30001] Disk groups created successfully. Check /u01/app/grid/cfgtoollogs/asmca/asmca-210902AM105901.log for details.

查看创建日志发现执行了以下的创建 SQL 语句,并且两节点均已挂载。

  1. ALTER SYSTEM SET asm_diskstring='/dev/asm_' SID='';
  2. select name from v$parameter where isdefault='FALSE'union select name from v$system_parameter where ismodified='MODIFIED';
  3. CREATE DISKGROUP DATA EXTERNAL REDUNDANCY DISK '/dev/asm_data01' SIZE 10240M DISK '/dev/asm_data02' SIZE 10240M ATTRIBUTE 'compatible.asm'='19.0.0.0.0','compatible.advm'='19.0.0.0','au_size'='4M';

#创建 ARCH 磁盘组

asmca -silent -createDiskGroup -sysAsmPassword Oracle_19c -asmsnmpPassword Oracle_19c -oui_internal  -diskString '/dev/asm_*' -diskGroupName ARCH -diskList /dev/asm_arch01 -redundancy EXTERNAL -au_size 4 -compatible.asm 19.0.0.0.0

以下是官方文档 SQL 创建磁盘组示例:

  1. Example
  2. Creating the FRA disk groupCREATE DISKGROUP fra NORMAL REDUNDANCY DISK '/devices/diskc*';
  3. CREATE DISKGROUP data external REDUNDANCY DISK '/dev/asmdisks/asm-data' ATTRIBUTE 'au_size'='4M', 'compatible.asm' = '19.0', 'compatible.rdbms' = '19.0', 'compatible.advm' = '19.0';
  4. CREATE DISKGROUP fra external REDUNDANCY DISK '/dev/asmdisks/asm-fra' ATTRIBUTE 'au_size'='4M', 'compatible.asm' = '19.0', 'compatible.rdbms' = '19.0', 'compatible.advm' = '19.0';

图形化创建比较简单就不演示了;创建完磁盘组后,检查磁盘组 DATA 兼容性.

  1. su - grid 
  2. sqlplus / as sysasm
  3. select GROUP_NUMBER,name,value from v$asm_attribute where GROUP_NUMBER=2 and name like 'compatible%';
  4. GROUP_NUMBER NAME VALUE
  5. ------------ ------------------ ------------------------------
  6. 2 compatible.asm 19.0.0.0.0
  7. 2 compatible.rdbms 10.1.0.0.0
  8. 2 compatible.advm 19.0.0.0.0
  9. 修改兼容性
  10. ALTER DISKGROUP DATA SET ATTRIBUTE 'compatible.rdbms' = '19.0.0.0.0';

8.安装 DB 软件

8.1 修改软件包权限并解压
  1. [root@jiekexu-r1 soft]# chown oracle:oinstall LINUX.X64_193000_db_home.zip
  2. [root@jiekexu-r1 soft]# chown -R oracle:oinstall OPatch
  3. $ unzip LINUX.X64_193000_db_home.zip -d $ORACLE_HOME

8.2 替换 OPatch

  1. mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch.bak
  2. cp -r OPatch $ORACLE_HOME
  3. $ opatch version OPatch Version: 12.2.0.1.25
  4. OPatch succeeded.

8.3 使用 RU 静默安装 DB 软件

  1. ${ORACLE_HOME}/runInstaller -h
  2. Usage: runInstaller [<flag>] [<option>]
  3. Following are the possible flags:
  4. -help - 显示帮助。
  5. -silent - 在无提示模式下运行。输入内容可以是一个响应文件, 也可以是命令行变量值对的列表。
  6. [-ignorePrereqFailure - 忽略所有先决条件检查失败。]
  7. -responseFile - 指定要使用的响应文件的完整路径。
  8. -logLevel - 根据此参数所提供的优先级启用消息日志。有效选项包括: 严重, 警告, 信息, 配置, 详细, 较为详细, 非常详细。
  9. -executePrereqs | -executeConfigTools | -createGoldImage
  10. -executePrereqs - 仅执行先决条件检查。
  11. -executeConfigTools - 对安装的主目录执行配置工具。
  12. -createGoldImage - 从当前 Oracle 主目录创建 Gold Image。
  13. -destinationLocation - 指定将存放所创建 Gold Image 的位置的完整路径。
  14. [-exclFiles - 指定要从新 Gold Image 中排除的文件的完整路径。]
  15. -debug - 在调试模式下运行。
  16. -printdiskusage - 记录有关磁盘使用情况的调试信息。
  17. -printmemory - 记录有关内存使用情况的调试信息。
  18. -printtime - 记录有关时间使用情况的调试信息。
  19. -waitForCompletion - 等待安装完成, 而不是衍生安装程序并返回控制台提示符。
  20. -noconfig - 不执行配置工具。
  21. -noconsole - 禁止在控制台中显示消息。不分配控制台。
  22. -ignoreInternalDriverError - 忽略任何内部驱动程序错误。
  23. -noCopy - 执行配置, 但不将软件复制到远程节点。
  24. -applyRU - 将发行版更新应用于 Oracle 主目录。
  25. -applyOneOffs - 将一次性补丁程序应用于 Oracle 主目录。多个一次性补丁程序可以采用逗号分隔的位置列表格式传递。
  26. db 响应文件位置 $ORACLE_HOME/install/response/db_install.rsp
  1. $ORACLE_HOME/runInstaller -ignorePrereq -waitforcompletion -silent -applyRU /home/soft/32900083/32895426 \
  2. -responseFile $ORACLE_HOME/install/response/db_install.rsp \
  3. oracle.install.option=INSTALL_DB_SWONLY \
  4. ORACLE_HOSTNAME=/u01/app/oraInventory \
  5. UNIX_GROUP_NAME=oinstall \
  6. INVENTORY_LOCATION=/u01/app/oraInventory \
  7. ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1 \
  8. ORACLE_BASE=/u01/app/oracle \
  9. oracle.install.db.InstallEdition=EE \
  10. oracle.install.db.OSDBA_GROUP=dba \
  11. oracle.install.db.OSOPER_GROUP=oper \
  12. oracle.install.db.OSBACKUPDBA_GROUP=backupdba \
  13. oracle.install.db.OSDGDBA_GROUP=dgdba \
  14. oracle.install.db.OSKMDBA_GROUP=kmdba \
  15. oracle.install.db.OSRACDBA_GROUP=racdba \
  16. oracle.install.db.CLUSTER_NODES=jiekexu-r1,jiekexu-r2

8.3.1 卸载 DB 软件

卸载 DB 软件很简单 $ORACLE_HOME/deinstall/deinstall  根据提示先回车 然后 y 继续,等待一会儿则卸载完毕,dbhome 清理完成。再次安装时需要新建,然后解压软件。

  1. mkdir -p /u01/app/oracle/product/19.0.0/dbhome_1
  2. unzip LINUX.X64_193000_db_home.zip -d $ORACLE_HOME

8.4 静默创建实例

字符集为 32UTF8

DBCA 建库

非容器数据库创建方法:

  1. dbca -silent -createDatabase \
  2. -templateName General_Purpose.dbc \
  3. -gdbname JiekeXu -responseFile NO_VALUE \
  4. -characterSet AL32UTF8 \
  5. -sysPassword Oracle19c \
  6. -systemPassword Oracle19c \
  7. -createAsContainerDatabase false \
  8. -databaseType MULTIPURPOSE \
  9. -automaticMemoryManagement false \
  10. -totalMemory 8192 \
  11. -redoLogFileSize 1024 \
  12. -emConfiguration NONE \
  13. -ignorePreReqs \
  14. -nodelist jiekexu-r1,jiekexu-r2 \
  15. -storageType ASM \
  16. -diskGroupName +DATA \
  17. -asmsnmpPassword Oracle19c \
  18. -recoveryAreaDestination NONE

PDB容器数据库创建方法:

  1. dbca -silent -createDatabase \
  2. -templateName General_Purpose.dbc \
  3. -gdbname JiekeXu -responseFile NO_VALUE \
  4. -characterSet AL32UTF8 \
  5. -sysPassword Oracle_19C \
  6. -systemPassword Oracle_19C \
  7. -createAsContainerDatabase true \
  8. -numberOfPDBs 1 \
  9. -pdbName JiekeXupdb1 \
  10. -pdbAdminPassword Oracle_19C \
  11. -databaseType MULTIPURPOSE \
  12. -automaticMemoryManagement false \
  13. -totalMemory 1500 \
  14. -redoLogFileSize 200 \
  15. -emConfiguration NONE \
  16. -ignorePreReqs \
  17. -nodelist jiekexu-r1,jiekexu-r2 \
  18. -storageType ASM \
  19. -diskGroupName +DATA \
  20. -asmsnmpPassword Oracle_19C \
  21. -recoveryAreaDestination NONE

本次创建容器数据库。

  1. [root@jiekexu-r1 ~]# tail -f /u01/app/oracle/cfgtoollogs/dbca/JiekeXu/JiekeXu.log
  2. [ 2021-09-02 16:26:50.800 CST ] Prepare for db operation
  3. DBCA_PROGRESS : 7%
  4. [ 2021-09-02 16:27:27.683 CST ] Copying database files
  5. DBCA_PROGRESS : 27%
  6. [ 2021-09-02 16:30:53.347 CST ] Creating and starting Oracle instance
  7. DBCA_PROGRESS : 28%
  8. DBCA_PROGRESS : 31%
  9. DBCA_PROGRESS : 35%
  10. DBCA_PROGRESS : 37%
  11. DBCA_PROGRESS : 40%
  12. [ 2021-09-02 17:10:05.458 CST ] Creating cluster database views
  13. DBCA_PROGRESS : 41%
  14. DBCA_PROGRESS : 53%
  15. [ 2021-09-02 17:11:35.673 CST ] Completing Database Creation
  16. DBCA_PROGRESS : 57%
  17. DBCA_PROGRESS : 59%
  18. DBCA_PROGRESS : 60%
  19. [ 2021-09-02 17:21:42.870 CST ] Creating Pluggable Databases
  20. DBCA_PROGRESS : 64%
  21. DBCA_PROGRESS : 80%
  22. [ 2021-09-02 17:22:41.957 CST ] Executing Post Configuration Actions
  23. DBCA_PROGRESS : 100%
  24. [ 2021-09-02 17:22:41.971 CST ] Database creation complete. For details check the logfiles at:
  25. /u01/app/oracle/cfgtoollogs/dbca/JiekeXu.
  26. Database Information:
  27. Global Database Name:JiekeXu
  28. System Identifier(SID) Prefix:JiekeXu

到达 31% 则比较慢,半小时多没有反应,关闭微信、浏览器等其他软件后总共花费 56 分钟完成。

8.4.1 静默删除实例

静默删除数据库实例

dbca -silent -deleteDatabase -sourceDB JiekeXu -sysDBAUserName SYS -sysDBAPassword Oracle19c

8.5 数据库状态检查

8.5.1集群状态查看
  1. jiekexu-r1:/home/grid(+ASM1)$ crsctl status res -t
  2. Name Target State Server State details
  3. Local Resources
  4. ora.LISTENER.lsnr
  5. ONLINE ONLINE jiekexu-r1 STABLE
  6. ONLINE ONLINE jiekexu-r2 STABLE
  7. ora.chad
  8. ONLINE ONLINE jiekexu-r1 STABLE
  9. ONLINE ONLINE jiekexu-r2 STABLE
  10. ora.net1.network
  11. ONLINE ONLINE jiekexu-r1 STABLE
  12. ONLINE ONLINE jiekexu-r2 STABLE
  13. ora.ons
  14. ONLINE ONLINE jiekexu-r1 STABLE
  15. ONLINE ONLINE jiekexu-r2 STABLE
  16. Cluster Resources
  17. ora.ARCH.dg(ora.asmgroup)
  18. 1 ONLINE ONLINE jiekexu-r1 STABLE
  19. 2 ONLINE ONLINE jiekexu-r2 STABLE
  20. ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
  21. 1 ONLINE ONLINE jiekexu-r1 STABLE
  22. 2 ONLINE ONLINE jiekexu-r2 STABLE
  23. ora.DATA.dg(ora.asmgroup)
  24. 1 ONLINE ONLINE jiekexu-r1 STABLE
  25. 2 ONLINE ONLINE jiekexu-r2 STABLE
  26. ora.LISTENER_SCAN1.lsnr
  27. 1 ONLINE ONLINE jiekexu-r2 STABLE
  28. ora.OCR.dg(ora.asmgroup)
  29. 1 ONLINE ONLINE jiekexu-r1 STABLE
  30. 2 ONLINE ONLINE jiekexu-r2 STABLE
  31. ora.asm(ora.asmgroup)
  32. 1 ONLINE ONLINE jiekexu-r1 Started,STABLE
  33. 2 ONLINE ONLINE jiekexu-r2 Started,STABLE
  34. ora.asmnet1.asmnetwork(ora.asmgroup)
  35. 1 ONLINE ONLINE jiekexu-r1 STABLE
  36. 2 ONLINE ONLINE jiekexu-r2 STABLE
  37. ora.cvu
  38. 1 ONLINE ONLINE jiekexu-r2 STABLE
  39. ora.jiekexu-r1.vip
  40. 1 ONLINE ONLINE jiekexu-r1 STABLE
  41. ora.jiekexu-r2.vip
  42. 1 ONLINE ONLINE jiekexu-r2 STABLE
  43. ora.jiekexu.db
  44. 1 ONLINE ONLINE jiekexu-r1 Open,HOME=/u01/app/o
  45. racle/product/19.0.0
  46. /dbhome_1,STABLE
  47. 2 ONLINE ONLINE jiekexu-r2 Open,HOME=/u01/app/o
  48. racle/product/19.0.0
  49. /dbhome_1,STABLE
  50. ora.qosmserver
  51. 1 ONLINE ONLINE jiekexu-r2 STABLE
  52. ora.scan1.vip
  53. 1 ONLINE ONLINE jiekexu-r2 STABLE
  54. jiekexu-r1:/home/grid(+ASM1)$

8.5.2 监听状态查看

8.5.3 数据库信息查看
  1. jiekexu-r1:/home/oracle(JiekeXu1)$ sqlplus / as sysdba
  2. SQL*Plus: Release 19.0.0.0.0 - Production on Thu Sep 2 18:05:30 2021
  3. Version 19.12.0.0.0
  4. Copyright (c) 1982, 2021, Oracle. All rights reserved.
  5. Connected to:
  6. Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
  7. Version 19.12.0.0.0
  8. SQL> set line 240
  9. col HOST_NAME for a30 SQL> SQL>
  10. select INSTANCE_NAME,HOST_NAME,VERSION,STARTUP_TIME,STATUS from gv$instance;
  11. SQL>
  12. INSTANCE_NAME HOST_NAME VERSION STARTUP_TIME STATUS
  13. ---------------- ------------------------------ ----------------- ------------------- ------------
  14. JiekeXu1 jiekexu-r1 19.0.0.0.0 2021-09-02 17:20:52 OPEN
  15. JiekeXu2 jiekexu-r2 19.0.0.0.0 2021-09-02 17:20:57 OPEN
  16. Elapsed: 00:00:00.02
  17. SQL> col status for a10
  18. SQL> col action for a10
  19. SQL> col action_time for a30
  20. SQL> col description for a60
  21. SQL> select patch_id,patch_type,action,status,action_time,description from dba_registry_sqlpatch;
  22. PATCH_ID PATCH_TYPE ACTION STATUS ACTION_TIME DESCRIPTION
  23. ---------- ---------- ---------- ---------- ------------------------------ ------------------------------------------------------------
  24. 32904851 RU APPLY SUCCESS 02-SEP-21 05.05.15.051185 PM Database Release Update : 19.12.0.0.210720 (32904851)
  25. SQL> SQL> show pdbs
  26. CON_ID CON_NAME OPEN MODE RESTRICTED
  27. ---------- ------------------------------ ---------- ----------
  28. 2 PDB$SEED READ ONLY NO
  29. 3 JIEKEXUPDB1 READ WRITE NO
  30. SQL> col version for a25
  31. SQL> col comments for a80
  32. SQL> select ACTION_TIME,VERSION,COMMENTS from dba_registry_history;
  33. ACTION_TIME VERSION COMMENTS
  34. ------------------------------ ------------------------- --------------------------------------------------------------------------------
  35. 19 RDBMS_19.12.0.0.0DBRU_LINUX.X64_210715
  36. 02-SEP-21 05.02.53.625968 PM 19.0.0.0.0 Patch applied from 19.3.0.0.0 to 19.12.0.0.0: Release_Update - 210716141810

8.5.4 连接测试

  1. SQL> col File_Name for a88
  2. col Con_Name for a16
  3. set pages 345
  4. with Containers as (select PDB_ID Con_ID, PDB_Name Con_Name from DBA_PDBs
  5. union
  6. select 1 Con_ID, 'CDB$ROOT' Con_Name from Dual)
  7. select Con_ID,Con_Name "Con_Name",Tablespace_Name "T'space_Name",File_Name "File_Name"
  8. from CDB_Data_Files inner join Containers using (Con_ID)
  9. union
  10. select Con_ID,Con_Name "Con_Name",Tablespace_Name "T'space_Name",File_Name "File_Name"
  11. from CDB_Temp_Files inner join Containers using (Con_ID)
  12. order by 1, 3;
  13. CON_ID Con_Name T'space_Name File_Name
  14. ---------- ---------------- ------------------------------ ----------------------------------------------------------------------------------------
  15. 1 CDB$ROOT SYSAUX +DATA/JIEKEXU/DATAFILE/sysaux.258.1082219405
  16. 1 CDB$ROOT SYSTEM +DATA/JIEKEXU/DATAFILE/system.257.1082219301
  17. 1 CDB$ROOT TEMP +DATA/JIEKEXU/TEMPFILE/temp.264.1082219523
  18. 1 CDB$ROOT UNDOTBS1 +DATA/JIEKEXU/DATAFILE/undotbs1.259.1082219451
  19. 1 CDB$ROOT UNDOTBS2 +DATA/JIEKEXU/DATAFILE/undotbs2.269.1082221805
  20. 1 CDB$ROOT USERS +DATA/JIEKEXU/DATAFILE/users.260.1082219453
  21. 3 JIEKEXUPDB1 SYSAUX +DATA/JIEKEXU/CB00B60A29FFA77AE053814BA8C06D60/DATAFILE/sysaux.275.1082222507
  22. 3 JIEKEXUPDB1 SYSTEM +DATA/JIEKEXU/CB00B60A29FFA77AE053814BA8C06D60/DATAFILE/system.274.1082222507
  23. 3 JIEKEXUPDB1 TEMP +DATA/JIEKEXU/CB00B60A29FFA77AE053814BA8C06D60/TEMPFILE/temp.276.1082222513
  24. 3 JIEKEXUPDB1 UNDOTBS1 +DATA/JIEKEXU/CB00B60A29FFA77AE053814BA8C06D60/DATAFILE/undotbs1.273.1082222507
  25. 3 JIEKEXUPDB1 UNDO_2 +DATA/JIEKEXU/CB00B60A29FFA77AE053814BA8C06D60/DATAFILE/undo_2.277.1082222553
  26. 3 JIEKEXUPDB1 USERS +DATA/JIEKEXU/CB00B60A29FFA77AE053814BA8C06D60/DATAFILE/users.278.1082222557
  27. 12 rows selected.

8.6 SQL 连接提示符修改

  1. cd $ORACLE_HOME/sqlplus/admin
  2. vi glogin.sql
  3. set linesize 250
  4. set pagesize 9999
  5. col Name format a80
  6. col owner format a30
  7. col file_name for a88
  8. set termout off
  9. ALTER SESSION SET nls_date_format = 'yyyy-mm-dd HH24:MI:SS';
  10. set termout on
  11. set serveroutput on size 1000000
  12. set long 2000
  13. set time on
  14. set timing on
  15. define _editor=vi
  16. set sqlprompt "_user'@'_connect_identifier> "

8.7 安装 rlwrap

*安装 rlwrap 包实现 sqlplus 历史命令上下翻转回退等操作。*

先使用 yum 安装 readline(一定要安装成功) 然后编译安装 rlwrap

  1. 下载 https://github.com/hanslub42/rlwrap/releases
  2. # yum install -y readline*
  3. # tar -zxvf  rlwrap-0.45.2.tar.gz
  4. # cd rlwrap-0.45.2
  5. # ./configure && make && make install
  6. 添加 oracle 用户环境变量
  7. # su - oracle 
  8. cat <<EOF>>/home/oracle/.bash_profile
  9. alias sqlplus='rlwrap sqlplus'
  10. alias rman='rlwrap rman'
  11. alias lsnrctl='rlwrap lsnrctl'
  12. alias asmcmd='rlwrap asmcmd'
  13. alias adrci='rlwrap adrci'
  14. alias ggsci='rlwrap ggsci'
  15. alias sas=’sqlplus / as sysdba’
  16. EOF
  17. $ . .bash_profile --生效

Linux 64 位 19.12 RU :https://www.modb.pro/download/137693

Linux 64 位 RAC 安装包:https://www.modb.pro/download/5713

吐血整理,实属不易,原作者更加辛苦,如认真阅读,此文一定对您有帮助,欢迎点赞、在看与转发,写作不易,坚持写作更不易,您的点赞、转发,举手之劳,便是对作者最大的支持,也能让更多的人受益,感谢!

——————————————————————--—--————

公众号:JiekeXu DBA之路
墨天轮:https://www.modb.pro/u/4347
CSDN :https://blog.csdn.net/JiekeXu
腾讯云:https://cloud.tencent.com/developer/user/5645107

————————————————————————----———

2021年7月国产数据库排行榜:openGauss高歌猛进,GBase持续下跌

Oracle 12c 及以上版本补丁更新说明及下载方法(收藏版)

Oracle 19c 19.10DBRU 最新补丁升级看这一篇就够了

Redhat 7.7 安装最新版 MongoDB 5.0.1 手册

ASM 管理的内部工具:KFED、KFOD、AMDU

性能优化|关于数据库历史性能问题的一道面试题

一线运维 DBA 五年经验常用 SQL 大全(二)

ORA-00349|激活 ADG 备库时遇到的问题

Oracle 轻量级实时监控工具 oratop

MySQL OCP 认证考试你知道吗?

Oracle 19C RAC 安装遇到的坑

国产数据库|TiDB 5.0 快速体验

Oracle 19C MAA 搭建指南

Oracle 每日一题系列合集

百花齐放的国产数据库


声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/72086
推荐阅读
相关标签
  

闽ICP备14008679号