Linux平台 Oracle 12cR2 RAC安装Part2:GI配置

三、GI(Grid Infrastructure)安装

Linux平台 Oracle 12cR2 RAC安装指导:

Part1:Linux平台 Oracle 12cR2 RAC安装Part1:准备工作

Part2:Linux平台 Oracle 12cR2 RAC安装Part2:GI配置

Part3:Linux平台 Oracle 12cR2 RAC安装Part3:DB安装

本文安装环境:RHEL 6.5 + Oracle 12.2.0.1 GI & RAC

三、GI(Grid Infrastructure)安装

3.1 解压GI的安装包

su - grid
解压 GRID 到 GRID用户的$ORACLE_HOME下

  1. [grid@jydb1 grid]$ pwd
  2. /u01/app/12.2.0/grid
  3. [grid@jydb1 grid]$ unzip /u01/media/linuxx64_12201_grid_home.zip

3.2 安装配置Xmanager软件

在自己的Windows系统上成功安装Xmanager Enterprise之后,运行Xstart.exe可执行程序,
配置如下

Session:jydb1

Host:192.168.1.90

Protocol:SSH

User Name:grid

Execution Command:/usr/bin/xterm -ls -display $DISPLAY

点击RUN,输入grid用户的密码可以正常弹出命令窗口界面,即配置成功。

3.3 共享存储LUN的赋权

vi /etc/udev/rules.d/12-dm-permissions.rules

  1. # MULTIPATH DEVICES
  2. #
  3. # Set permissions for all multipath devices
  4. ENV{DM_UUID}=="mpath-?*", OWNER:="grid", GROUP:="asmadmin", MODE:="660"

配置生效:

  1. udevadm trigger

3.4 使用Xmanager图形化界面配置GI

Xmanager通过grid用户登录,进入$ORACLE_HOME目录,运行gridSetup配置GI

  1. $ cd $ORACLE_HOME
  2. $ ./gridSetup.sh

12cGI的配置跟之前有一些变化,下面来看下GI配置的整个图形化安装的过程截图:











注:这里public网卡暂时用的eth0,暂没有和eth1做bonding,是为了后续做后续的网卡绑定实验做准备。如果是生产新的安装,建议直接在安装前绑定好,免去后续修改的麻烦。另外可以看到12c多了一个ASM的网络,可以和私有网络共用一个地址。







注:这里跟之前区别不大,我依然是选择3块1G的盘,Normal冗余作为OCR和voting disk。



注:这里有一个新的存储GIMR的,我这里选择是外部冗余的一个40G大小的盘,这是12c新引入的概念。

















注:这里检查出来的问题都需要认真核对,确认确实可以忽略才可以点击“Ignore All”,如果这里检测出缺少某些RPM包,需要使用yum安装好,假设检测到缺少gcc-c++的包,那么修正:需要使用yum安装:

  1. yum install gcc-c++





注:执行root脚本,确保先在一节点执行完毕后,再在其他节点执行。

第一个节点root执行脚本:

  1. [root@jydb1 tmp]# /u01/app/oraInventory/orainstRoot.sh
  2. Changing permissions of /u01/app/oraInventory.
  3. Adding read,write permissions for group.
  4. Removing read,write,execute permissions for world.
  5. Changing groupname of /u01/app/oraInventory to oinstall.
  6. The execution of the script is complete.
  7. [root@jydb1 tmp]# /u01/app/12.2.0/grid/root.sh
  8. Performing root user operation.
  9. The following environment variables are set as:
  10. ORACLE_OWNER= grid
  11. ORACLE_HOME= /u01/app/12.2.0/grid
  12. Enter the full pathname of the local bin directory: [/usr/local/bin]:
  13. Copying dbhome to /usr/local/bin ...
  14. Copying oraenv to /usr/local/bin ...
  15. Copying coraenv to /usr/local/bin ...
  16. Creating /etc/oratab file...
  17. Entries will be added to the /etc/oratab file as needed by
  18. Database Configuration Assistant when a database is created
  19. Finished running generic part of root script.
  20. Now product-specific root actions will be performed.
  21. Relinking oracle with rac_on option
  22. Using configuration parameter file: /u01/app/12.2.0/grid/crs/install/crsconfig_params
  23. The log of current session can be found at:
  24. /u01/app/grid/crsdata/jydb1/crsconfig/rootcrs_jydb1_2017-09-08_03-13-19PM.log
  25. 2017/09/08 15:13:35 CLSRSC-594: Executing installation step 1 of 19: 'SetupTFA'.
  26. 2017/09/08 15:13:35 CLSRSC-4001: Installing Oracle Trace File Analyzer (TFA) Collector.
  27. 2017/09/08 15:14:05 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.
  28. 2017/09/08 15:14:05 CLSRSC-594: Executing installation step 2 of 19: 'ValidateEnv'.
  29. 2017/09/08 15:14:11 CLSRSC-363: User ignored prerequisites during installation
  30. 2017/09/08 15:14:11 CLSRSC-594: Executing installation step 3 of 19: 'CheckFirstNode'.
  31. 2017/09/08 15:14:14 CLSRSC-594: Executing installation step 4 of 19: 'GenSiteGUIDs'.
  32. 2017/09/08 15:14:15 CLSRSC-594: Executing installation step 5 of 19: 'SaveParamFile'.
  33. 2017/09/08 15:14:22 CLSRSC-594: Executing installation step 6 of 19: 'SetupOSD'.
  34. 2017/09/08 15:14:23 CLSRSC-594: Executing installation step 7 of 19: 'CheckCRSConfig'.
  35. 2017/09/08 15:14:24 CLSRSC-594: Executing installation step 8 of 19: 'SetupLocalGPNP'.
  36. 2017/09/08 15:14:55 CLSRSC-594: Executing installation step 9 of 19: 'ConfigOLR'.
  37. 2017/09/08 15:15:04 CLSRSC-594: Executing installation step 10 of 19: 'ConfigCHMOS'.
  38. 2017/09/08 15:15:05 CLSRSC-594: Executing installation step 11 of 19: 'CreateOHASD'.
  39. 2017/09/08 15:15:10 CLSRSC-594: Executing installation step 12 of 19: 'ConfigOHASD'.
  40. 2017/09/08 15:15:26 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.conf'
  41. 2017/09/08 15:15:59 CLSRSC-594: Executing installation step 13 of 19: 'InstallAFD'.
  42. 2017/09/08 15:16:43 CLSRSC-594: Executing installation step 14 of 19: 'InstallACFS'.
  43. CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jydb1'
  44. CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jydb1' has completed
  45. CRS-4133: Oracle High Availability Services has been stopped.
  46. CRS-4123: Oracle High Availability Services has been started.
  47. 2017/09/08 15:17:15 CLSRSC-594: Executing installation step 15 of 19: 'InstallKA'.
  48. 2017/09/08 15:17:21 CLSRSC-594: Executing installation step 16 of 19: 'InitConfig'.
  49. CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jydb1'
  50. CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jydb1' has completed
  51. CRS-4133: Oracle High Availability Services has been stopped.
  52. CRS-4123: Oracle High Availability Services has been started.
  53. CRS-2672: Attempting to start 'ora.driver.afd' on 'jydb1'
  54. CRS-2672: Attempting to start 'ora.evmd' on 'jydb1'
  55. CRS-2672: Attempting to start 'ora.mdnsd' on 'jydb1'
  56. CRS-2676: Start of 'ora.driver.afd' on 'jydb1' succeeded
  57. CRS-2672: Attempting to start 'ora.cssdmonitor' on 'jydb1'
  58. CRS-2676: Start of 'ora.cssdmonitor' on 'jydb1' succeeded
  59. CRS-2676: Start of 'ora.evmd' on 'jydb1' succeeded
  60. CRS-2676: Start of 'ora.mdnsd' on 'jydb1' succeeded
  61. CRS-2672: Attempting to start 'ora.gpnpd' on 'jydb1'
  62. CRS-2676: Start of 'ora.gpnpd' on 'jydb1' succeeded
  63. CRS-2672: Attempting to start 'ora.gipcd' on 'jydb1'
  64. CRS-2676: Start of 'ora.gipcd' on 'jydb1' succeeded
  65. CRS-2672: Attempting to start 'ora.cssd' on 'jydb1'
  66. CRS-2672: Attempting to start 'ora.diskmon' on 'jydb1'
  67. CRS-2676: Start of 'ora.diskmon' on 'jydb1' succeeded
  68. CRS-2676: Start of 'ora.cssd' on 'jydb1' succeeded
  69. Disk label(s) created successfully. Check /u01/app/grid/cfgtoollogs/asmca/asmca-170908PM031804.log for details.
  70. Disk groups created successfully. Check /u01/app/grid/cfgtoollogs/asmca/asmca-170908PM031804.log for details.
  71. 2017/09/08 15:19:33 CLSRSC-482: Running command: '/u01/app/12.2.0/grid/bin/ocrconfig -upgrade grid oinstall'
  72. CRS-2672: Attempting to start 'ora.crf' on 'jydb1'
  73. CRS-2672: Attempting to start 'ora.storage' on 'jydb1'
  74. CRS-2676: Start of 'ora.storage' on 'jydb1' succeeded
  75. CRS-2676: Start of 'ora.crf' on 'jydb1' succeeded
  76. CRS-2672: Attempting to start 'ora.crsd' on 'jydb1'
  77. CRS-2676: Start of 'ora.crsd' on 'jydb1' succeeded
  78. CRS-4256: Updating the profile
  79. Successful addition of voting disk e78463b659004fbbbfb3cdc4ee62fced.
  80. Successful addition of voting disk 4375f93825644f62bf1c1a3eedc539b5.
  81. Successful addition of voting disk 3b2ec2e16ccf4f05bf433fe83b30d6a6.
  82. Successfully replaced voting disk group with +OCR.
  83. CRS-4256: Updating the profile
  84. CRS-4266: Voting file(s) successfully replaced
  85. ## STATE File Universal Id File Name Disk group
  86. -- ----- ----------------- --------- ---------
  87. 1. ONLINE e78463b659004fbbbfb3cdc4ee62fced (AFD:OCR1) [OCR]
  88. 2. ONLINE 4375f93825644f62bf1c1a3eedc539b5 (AFD:OCR2) [OCR]
  89. 3. ONLINE 3b2ec2e16ccf4f05bf433fe83b30d6a6 (AFD:OCR3) [OCR]
  90. Located 3 voting disk(s).
  91. CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jydb1'
  92. CRS-2673: Attempting to stop 'ora.crsd' on 'jydb1'
  93. CRS-2677: Stop of 'ora.crsd' on 'jydb1' succeeded
  94. CRS-2673: Attempting to stop 'ora.storage' on 'jydb1'
  95. CRS-2673: Attempting to stop 'ora.crf' on 'jydb1'
  96. CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'jydb1'
  97. CRS-2673: Attempting to stop 'ora.gpnpd' on 'jydb1'
  98. CRS-2673: Attempting to stop 'ora.mdnsd' on 'jydb1'
  99. CRS-2677: Stop of 'ora.drivers.acfs' on 'jydb1' succeeded
  100. CRS-2677: Stop of 'ora.gpnpd' on 'jydb1' succeeded
  101. CRS-2677: Stop of 'ora.crf' on 'jydb1' succeeded
  102. CRS-2677: Stop of 'ora.storage' on 'jydb1' succeeded
  103. CRS-2673: Attempting to stop 'ora.asm' on 'jydb1'
  104. CRS-2677: Stop of 'ora.mdnsd' on 'jydb1' succeeded
  105. CRS-2677: Stop of 'ora.asm' on 'jydb1' succeeded
  106. CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'jydb1'
  107. CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'jydb1' succeeded
  108. CRS-2673: Attempting to stop 'ora.ctssd' on 'jydb1'
  109. CRS-2673: Attempting to stop 'ora.evmd' on 'jydb1'
  110. CRS-2677: Stop of 'ora.ctssd' on 'jydb1' succeeded
  111. CRS-2677: Stop of 'ora.evmd' on 'jydb1' succeeded
  112. CRS-2673: Attempting to stop 'ora.cssd' on 'jydb1'
  113. CRS-2677: Stop of 'ora.cssd' on 'jydb1' succeeded
  114. CRS-2673: Attempting to stop 'ora.driver.afd' on 'jydb1'
  115. CRS-2673: Attempting to stop 'ora.gipcd' on 'jydb1'
  116. CRS-2677: Stop of 'ora.driver.afd' on 'jydb1' succeeded
  117. CRS-2677: Stop of 'ora.gipcd' on 'jydb1' succeeded
  118. CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jydb1' has completed
  119. CRS-4133: Oracle High Availability Services has been stopped.
  120. 2017/09/08 15:20:55 CLSRSC-594: Executing installation step 17 of 19: 'StartCluster'.
  121. CRS-4123: Starting Oracle High Availability Services-managed resources
  122. CRS-2672: Attempting to start 'ora.mdnsd' on 'jydb1'
  123. CRS-2672: Attempting to start 'ora.evmd' on 'jydb1'
  124. CRS-2676: Start of 'ora.evmd' on 'jydb1' succeeded
  125. CRS-2676: Start of 'ora.mdnsd' on 'jydb1' succeeded
  126. CRS-2672: Attempting to start 'ora.gpnpd' on 'jydb1'
  127. CRS-2676: Start of 'ora.gpnpd' on 'jydb1' succeeded
  128. CRS-2672: Attempting to start 'ora.gipcd' on 'jydb1'
  129. CRS-2676: Start of 'ora.gipcd' on 'jydb1' succeeded
  130. CRS-2672: Attempting to start 'ora.cssdmonitor' on 'jydb1'
  131. CRS-2676: Start of 'ora.cssdmonitor' on 'jydb1' succeeded
  132. CRS-2672: Attempting to start 'ora.cssd' on 'jydb1'
  133. CRS-2672: Attempting to start 'ora.diskmon' on 'jydb1'
  134. CRS-2676: Start of 'ora.diskmon' on 'jydb1' succeeded
  135. CRS-2676: Start of 'ora.cssd' on 'jydb1' succeeded
  136. CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'jydb1'
  137. CRS-2672: Attempting to start 'ora.ctssd' on 'jydb1'
  138. CRS-2676: Start of 'ora.ctssd' on 'jydb1' succeeded
  139. CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'jydb1' succeeded
  140. CRS-2672: Attempting to start 'ora.asm' on 'jydb1'
  141. CRS-2676: Start of 'ora.asm' on 'jydb1' succeeded
  142. CRS-2672: Attempting to start 'ora.storage' on 'jydb1'
  143. CRS-2676: Start of 'ora.storage' on 'jydb1' succeeded
  144. CRS-2672: Attempting to start 'ora.crf' on 'jydb1'
  145. CRS-2676: Start of 'ora.crf' on 'jydb1' succeeded
  146. CRS-2672: Attempting to start 'ora.crsd' on 'jydb1'
  147. CRS-2676: Start of 'ora.crsd' on 'jydb1' succeeded
  148. CRS-6023: Starting Oracle Cluster Ready Services-managed resources
  149. CRS-6017: Processing resource auto-start for servers: jydb1
  150. CRS-6016: Resource auto-start has completed for server jydb1
  151. CRS-6024: Completed start of Oracle Cluster Ready Services-managed resources
  152. CRS-4123: Oracle High Availability Services has been started.
  153. 2017/09/08 15:23:51 CLSRSC-343: Successfully started Oracle Clusterware stack
  154. 2017/09/08 15:23:51 CLSRSC-594: Executing installation step 18 of 19: 'ConfigNode'.
  155. CRS-2672: Attempting to start 'ora.ASMNET1LSNR_ASM.lsnr' on 'jydb1'
  156. CRS-2676: Start of 'ora.ASMNET1LSNR_ASM.lsnr' on 'jydb1' succeeded
  157. CRS-2672: Attempting to start 'ora.asm' on 'jydb1'
  158. CRS-2676: Start of 'ora.asm' on 'jydb1' succeeded
  159. CRS-2672: Attempting to start 'ora.OCR.dg' on 'jydb1'
  160. CRS-2676: Start of 'ora.OCR.dg' on 'jydb1' succeeded
  161. 2017/09/08 15:26:20 CLSRSC-594: Executing installation step 19 of 19: 'PostConfig'.
  162. Disk label(s) created successfully. Check /u01/app/grid/cfgtoollogs/asmca/asmca-170908PM032630.log for details.
  163. 2017/09/08 15:27:38 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded
  164. [root@jydb1 tmp]#

执行成功后,在第二个节点root执行脚本:

  1. [root@jydb2 ~]# /u01/app/oraInventory/orainstRoot.sh
  2. Changing permissions of /u01/app/oraInventory.
  3. Adding read,write permissions for group.
  4. Removing read,write,execute permissions for world.
  5. Changing groupname of /u01/app/oraInventory to oinstall.
  6. The execution of the script is complete.
  7. [root@jydb2 ~]# /u01/app/12.2.0/grid/root.sh
  8. Performing root user operation.
  9. The following environment variables are set as:
  10. ORACLE_OWNER= grid
  11. ORACLE_HOME= /u01/app/12.2.0/grid
  12. Enter the full pathname of the local bin directory: [/usr/local/bin]:
  13. Copying dbhome to /usr/local/bin ...
  14. Copying oraenv to /usr/local/bin ...
  15. Copying coraenv to /usr/local/bin ...
  16. Creating /etc/oratab file...
  17. Entries will be added to the /etc/oratab file as needed by
  18. Database Configuration Assistant when a database is created
  19. Finished running generic part of root script.
  20. Now product-specific root actions will be performed.
  21. Relinking oracle with rac_on option
  22. Using configuration parameter file: /u01/app/12.2.0/grid/crs/install/crsconfig_params
  23. The log of current session can be found at:
  24. /u01/app/grid/crsdata/jydb2/crsconfig/rootcrs_jydb2_2017-09-08_04-06-21PM.log
  25. 2017/09/08 16:06:37 CLSRSC-594: Executing installation step 1 of 19: 'SetupTFA'.
  26. 2017/09/08 16:06:37 CLSRSC-4001: Installing Oracle Trace File Analyzer (TFA) Collector.
  27. 2017/09/08 16:07:14 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.
  28. 2017/09/08 16:07:14 CLSRSC-594: Executing installation step 2 of 19: 'ValidateEnv'.
  29. 2017/09/08 16:07:15 CLSRSC-363: User ignored prerequisites during installation
  30. 2017/09/08 16:07:15 CLSRSC-594: Executing installation step 3 of 19: 'CheckFirstNode'.
  31. 2017/09/08 16:07:17 CLSRSC-594: Executing installation step 4 of 19: 'GenSiteGUIDs'.
  32. 2017/09/08 16:07:17 CLSRSC-594: Executing installation step 5 of 19: 'SaveParamFile'.
  33. 2017/09/08 16:07:21 CLSRSC-594: Executing installation step 6 of 19: 'SetupOSD'.
  34. 2017/09/08 16:07:22 CLSRSC-594: Executing installation step 7 of 19: 'CheckCRSConfig'.
  35. 2017/09/08 16:07:22 CLSRSC-594: Executing installation step 8 of 19: 'SetupLocalGPNP'.
  36. 2017/09/08 16:07:25 CLSRSC-594: Executing installation step 9 of 19: 'ConfigOLR'.
  37. 2017/09/08 16:07:28 CLSRSC-594: Executing installation step 10 of 19: 'ConfigCHMOS'.
  38. 2017/09/08 16:07:28 CLSRSC-594: Executing installation step 11 of 19: 'CreateOHASD'.
  39. 2017/09/08 16:07:30 CLSRSC-594: Executing installation step 12 of 19: 'ConfigOHASD'.
  40. 2017/09/08 16:07:45 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.conf'
  41. 2017/09/08 16:08:15 CLSRSC-594: Executing installation step 13 of 19: 'InstallAFD'.
  42. 2017/09/08 16:08:54 CLSRSC-594: Executing installation step 14 of 19: 'InstallACFS'.
  43. CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jydb2'
  44. CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jydb2' has completed
  45. CRS-4133: Oracle High Availability Services has been stopped.
  46. CRS-4123: Oracle High Availability Services has been started.
  47. 2017/09/08 16:09:33 CLSRSC-594: Executing installation step 15 of 19: 'InstallKA'.
  48. 2017/09/08 16:09:34 CLSRSC-594: Executing installation step 16 of 19: 'InitConfig'.
  49. CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jydb2'
  50. CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jydb2' has completed
  51. CRS-4133: Oracle High Availability Services has been stopped.
  52. CRS-4123: Oracle High Availability Services has been started.
  53. CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jydb2'
  54. CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'jydb2'
  55. CRS-2677: Stop of 'ora.drivers.acfs' on 'jydb2' succeeded
  56. CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jydb2' has completed
  57. CRS-4133: Oracle High Availability Services has been stopped.
  58. 2017/09/08 16:09:50 CLSRSC-594: Executing installation step 17 of 19: 'StartCluster'.
  59. CRS-4123: Starting Oracle High Availability Services-managed resources
  60. CRS-2672: Attempting to start 'ora.mdnsd' on 'jydb2'
  61. CRS-2672: Attempting to start 'ora.evmd' on 'jydb2'
  62. CRS-2676: Start of 'ora.mdnsd' on 'jydb2' succeeded
  63. CRS-2676: Start of 'ora.evmd' on 'jydb2' succeeded
  64. CRS-2672: Attempting to start 'ora.gpnpd' on 'jydb2'
  65. CRS-2676: Start of 'ora.gpnpd' on 'jydb2' succeeded
  66. CRS-2672: Attempting to start 'ora.gipcd' on 'jydb2'
  67. CRS-2676: Start of 'ora.gipcd' on 'jydb2' succeeded
  68. CRS-2672: Attempting to start 'ora.cssdmonitor' on 'jydb2'
  69. CRS-2676: Start of 'ora.cssdmonitor' on 'jydb2' succeeded
  70. CRS-2672: Attempting to start 'ora.cssd' on 'jydb2'
  71. CRS-2672: Attempting to start 'ora.diskmon' on 'jydb2'
  72. CRS-2676: Start of 'ora.diskmon' on 'jydb2' succeeded
  73. CRS-2676: Start of 'ora.cssd' on 'jydb2' succeeded
  74. CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'jydb2'
  75. CRS-2672: Attempting to start 'ora.ctssd' on 'jydb2'
  76. CRS-2676: Start of 'ora.ctssd' on 'jydb2' succeeded
  77. CRS-2672: Attempting to start 'ora.crf' on 'jydb2'
  78. CRS-2676: Start of 'ora.crf' on 'jydb2' succeeded
  79. CRS-2672: Attempting to start 'ora.crsd' on 'jydb2'
  80. CRS-2676: Start of 'ora.crsd' on 'jydb2' succeeded
  81. CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'jydb2' succeeded
  82. CRS-2672: Attempting to start 'ora.asm' on 'jydb2'
  83. CRS-2676: Start of 'ora.asm' on 'jydb2' succeeded
  84. CRS-6017: Processing resource auto-start for servers: jydb2
  85. CRS-2672: Attempting to start 'ora.ASMNET1LSNR_ASM.lsnr' on 'jydb2'
  86. CRS-2672: Attempting to start 'ora.net1.network' on 'jydb2'
  87. CRS-2676: Start of 'ora.net1.network' on 'jydb2' succeeded
  88. CRS-2672: Attempting to start 'ora.ons' on 'jydb2'
  89. CRS-2676: Start of 'ora.ons' on 'jydb2' succeeded
  90. CRS-2676: Start of 'ora.ASMNET1LSNR_ASM.lsnr' on 'jydb2' succeeded
  91. CRS-2672: Attempting to start 'ora.asm' on 'jydb2'
  92. CRS-2676: Start of 'ora.asm' on 'jydb2' succeeded
  93. CRS-6016: Resource auto-start has completed for server jydb2
  94. CRS-6024: Completed start of Oracle Cluster Ready Services-managed resources
  95. CRS-4123: Oracle High Availability Services has been started.
  96. 2017/09/08 16:13:34 CLSRSC-343: Successfully started Oracle Clusterware stack
  97. 2017/09/08 16:13:34 CLSRSC-594: Executing installation step 18 of 19: 'ConfigNode'.
  98. 2017/09/08 16:13:55 CLSRSC-594: Executing installation step 19 of 19: 'PostConfig'.
  99. 2017/09/08 16:14:22 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded
  100. [root@jydb2 ~]#

继续安装,这段时间也很长,我这里测试环境大概要半个小时+,





注:最后这个报错提示,查看日志发现是因为使用了一个scan ip的提示,可以忽略。



至此GI配置完成。

3.5 验证crsctl的状态

crsctl stat res -t

  1. [grid@jydb1 ~]$ crsctl stat res -t
  2. --------------------------------------------------------------------------------
  3. Name Target State Server State details
  4. --------------------------------------------------------------------------------
  5. Local Resources
  6. --------------------------------------------------------------------------------
  7. ora.ASMNET1LSNR_ASM.lsnr
  8. ONLINE ONLINE jydb1 STABLE
  9. ONLINE ONLINE jydb2 STABLE
  10. ora.LISTENER.lsnr
  11. ONLINE ONLINE jydb1 STABLE
  12. ONLINE ONLINE jydb2 STABLE
  13. ora.MGMT.dg
  14. ONLINE ONLINE jydb1 STABLE
  15. ONLINE ONLINE jydb2 STABLE
  16. ora.OCR.dg
  17. ONLINE ONLINE jydb1 STABLE
  18. ONLINE ONLINE jydb2 STABLE
  19. ora.chad
  20. ONLINE ONLINE jydb1 STABLE
  21. ONLINE ONLINE jydb2 STABLE
  22. ora.net1.network
  23. ONLINE ONLINE jydb1 STABLE
  24. ONLINE ONLINE jydb2 STABLE
  25. ora.ons
  26. ONLINE ONLINE jydb1 STABLE
  27. ONLINE ONLINE jydb2 STABLE
  28. ora.proxy_advm
  29. OFFLINE OFFLINE jydb1 STABLE
  30. OFFLINE OFFLINE jydb2 STABLE
  31. --------------------------------------------------------------------------------
  32. Cluster Resources
  33. --------------------------------------------------------------------------------
  34. ora.LISTENER_SCAN1.lsnr
  35. 1 ONLINE ONLINE jydb1 STABLE
  36. ora.MGMTLSNR
  37. 1 ONLINE ONLINE jydb1 169.254.105.255 10.1
  38. 0.1.90 10.10.2.90,ST
  39. ABLE
  40. ora.asm
  41. 1 ONLINE ONLINE jydb1 Started,STABLE
  42. 2 ONLINE ONLINE jydb2 Started,STABLE
  43. 3 OFFLINE OFFLINE STABLE
  44. ora.cvu
  45. 1 ONLINE ONLINE jydb1 STABLE
  46. ora.jydb1.vip
  47. 1 ONLINE ONLINE jydb1 STABLE
  48. ora.jydb2.vip
  49. 1 ONLINE ONLINE jydb2 STABLE
  50. ora.mgmtdb
  51. 1 ONLINE ONLINE jydb1 Open,STABLE
  52. ora.qosmserver
  53. 1 ONLINE ONLINE jydb1 STABLE
  54. ora.scan1.vip
  55. 1 ONLINE ONLINE jydb1 STABLE
  56. --------------------------------------------------------------------------------

crsctl stat res -t -init

  1. [grid@jydb1 ~]$ crsctl stat res -t -init
  2. --------------------------------------------------------------------------------
  3. Name Target State Server State details
  4. --------------------------------------------------------------------------------
  5. Cluster Resources
  6. --------------------------------------------------------------------------------
  7. ora.asm
  8. 1 ONLINE ONLINE jydb1 Started,STABLE
  9. ora.cluster_interconnect.haip
  10. 1 ONLINE ONLINE jydb1 STABLE
  11. ora.crf
  12. 1 ONLINE ONLINE jydb1 STABLE
  13. ora.crsd
  14. 1 ONLINE ONLINE jydb1 STABLE
  15. ora.cssd
  16. 1 ONLINE ONLINE jydb1 STABLE
  17. ora.cssdmonitor
  18. 1 ONLINE ONLINE jydb1 STABLE
  19. ora.ctssd
  20. 1 ONLINE ONLINE jydb1 ACTIVE:0,STABLE
  21. ora.diskmon
  22. 1 OFFLINE OFFLINE STABLE
  23. ora.driver.afd
  24. 1 ONLINE ONLINE jydb1 STABLE
  25. ora.drivers.acfs
  26. 1 ONLINE ONLINE jydb1 STABLE
  27. ora.evmd
  28. 1 ONLINE ONLINE jydb1 STABLE
  29. ora.gipcd
  30. 1 ONLINE ONLINE jydb1 STABLE
  31. ora.gpnpd
  32. 1 ONLINE ONLINE jydb1 STABLE
  33. ora.mdnsd
  34. 1 ONLINE ONLINE jydb1 STABLE
  35. ora.storage
  36. 1 ONLINE ONLINE jydb1 STABLE
  37. --------------------------------------------------------------------------------
  38. [grid@jydb1 ~]$

3.6 测试集群的FAILED OVER功能

节点2被重启,查看节点1状态:

  1. [grid@jydb1 ~]$ crsctl stat res -t
  2. --------------------------------------------------------------------------------
  3. Name Target State Server State details
  4. --------------------------------------------------------------------------------
  5. Local Resources
  6. --------------------------------------------------------------------------------
  7. ora.ASMNET1LSNR_ASM.lsnr
  8. ONLINE ONLINE jydb1 STABLE
  9. ora.LISTENER.lsnr
  10. ONLINE ONLINE jydb1 STABLE
  11. ora.MGMT.dg
  12. ONLINE ONLINE jydb1 STABLE
  13. ora.OCR.dg
  14. ONLINE ONLINE jydb1 STABLE
  15. ora.chad
  16. ONLINE ONLINE jydb1 STABLE
  17. ora.net1.network
  18. ONLINE ONLINE jydb1 STABLE
  19. ora.ons
  20. ONLINE ONLINE jydb1 STABLE
  21. ora.proxy_advm
  22. OFFLINE OFFLINE jydb1 STABLE
  23. --------------------------------------------------------------------------------
  24. Cluster Resources
  25. --------------------------------------------------------------------------------
  26. ora.LISTENER_SCAN1.lsnr
  27. 1 ONLINE ONLINE jydb1 STABLE
  28. ora.MGMTLSNR
  29. 1 ONLINE ONLINE jydb1 169.254.105.255 10.1
  30. 0.1.90 10.10.2.90,ST
  31. ABLE
  32. ora.asm
  33. 1 ONLINE ONLINE jydb1 Started,STABLE
  34. 2 ONLINE OFFLINE STABLE
  35. 3 OFFLINE OFFLINE STABLE
  36. ora.cvu
  37. 1 ONLINE ONLINE jydb1 STABLE
  38. ora.jydb1.vip
  39. 1 ONLINE ONLINE jydb1 STABLE
  40. ora.jydb2.vip
  41. 1 ONLINE INTERMEDIATE jydb1 FAILED OVER,STABLE
  42. ora.mgmtdb
  43. 1 ONLINE ONLINE jydb1 Open,STABLE
  44. ora.qosmserver
  45. 1 ONLINE ONLINE jydb1 STABLE
  46. ora.scan1.vip
  47. 1 ONLINE ONLINE jydb1 STABLE
  48. --------------------------------------------------------------------------------

节点1被重启,查看节点2状态:

  1. [grid@jydb2 ~]$ crsctl stat res -t
  2. --------------------------------------------------------------------------------
  3. Name Target State Server State details
  4. --------------------------------------------------------------------------------
  5. Local Resources
  6. --------------------------------------------------------------------------------
  7. ora.ASMNET1LSNR_ASM.lsnr
  8. ONLINE ONLINE jydb2 STABLE
  9. ora.LISTENER.lsnr
  10. ONLINE ONLINE jydb2 STABLE
  11. ora.MGMT.dg
  12. ONLINE ONLINE jydb2 STABLE
  13. ora.OCR.dg
  14. ONLINE ONLINE jydb2 STABLE
  15. ora.chad
  16. ONLINE ONLINE jydb2 STABLE
  17. ora.net1.network
  18. ONLINE ONLINE jydb2 STABLE
  19. ora.ons
  20. ONLINE ONLINE jydb2 STABLE
  21. ora.proxy_advm
  22. OFFLINE OFFLINE jydb2 STABLE
  23. --------------------------------------------------------------------------------
  24. Cluster Resources
  25. --------------------------------------------------------------------------------
  26. ora.LISTENER_SCAN1.lsnr
  27. 1 ONLINE ONLINE jydb2 STABLE
  28. ora.MGMTLSNR
  29. 1 ONLINE ONLINE jydb2 169.254.94.238 10.10
  30. .1.92 10.10.2.92,STA
  31. BLE
  32. ora.asm
  33. 1 ONLINE OFFLINE STABLE
  34. 2 ONLINE ONLINE jydb2 Started,STABLE
  35. 3 OFFLINE OFFLINE STABLE
  36. ora.cvu
  37. 1 ONLINE ONLINE jydb2 STABLE
  38. ora.jydb1.vip
  39. 1 ONLINE INTERMEDIATE jydb2 FAILED OVER,STABLE
  40. ora.jydb2.vip
  41. 1 ONLINE ONLINE jydb2 STABLE
  42. ora.mgmtdb
  43. 1 ONLINE ONLINE jydb2 Open,STABLE
  44. ora.qosmserver
  45. 1 ONLINE ONLINE jydb2 STABLE
  46. ora.scan1.vip
  47. 1 ONLINE ONLINE jydb2 STABLE
  48. --------------------------------------------------------------------------------

至此,12cR2的GI配置已全部完成。

Linux平台 Oracle 12cR2 RAC安装Part2:GI配置的更多相关文章

  1. Linux平台 Oracle 12cR2 RAC安装Part1:准备工作

    Linux平台 Oracle 12cR2 RAC安装Part1:准备工作 一.实施前期准备工作 1.1 服务器安装操作系统 1.2 Oracle安装介质 1.3 共享存储规划 1.4 网络规范分配 二 ...

  2. Linux平台 Oracle 12cR2 RAC安装Part3:DB安装

    Linux平台 Oracle 12cR2 RAC安装Part3:DB安装 四.DB(Database)安装 4.1 解压DB的安装包 4.2 DB软件安装 4.3 ASMCA创建磁盘组 4.4 DBC ...

  3. Linux平台 Oracle 18c RAC安装Part2:GI配置

    三.GI(Grid Infrastructure)安装 3.1 解压GI的安装包 3.2 安装配置Xmanager软件 3.3 共享存储LUN的赋权 3.4 使用Xmanager图形化界面配置GI 3 ...

  4. Linux平台 Oracle 19c RAC安装Part2:GI配置

    三.GI(Grid Infrastructure)安装 3.1 解压GI的安装包 3.2 安装配置Xmanager软件 3.3 共享存储LUN的赋权 3.4 使用Xmanager图形化界面配置GI 3 ...

  5. Linux平台 Oracle 11gR2 RAC安装Part2:GI安装

    三.GI(Grid Infrastructure)安装 3.1 解压GI的安装包 3.2 安装配置Xmanager软件 3.3 共享存储LUN的赋权 3.4 使用Xmanager图形化界面安装GI 3 ...

  6. Linux平台 Oracle 18c RAC安装

    Linux平台 Oracle 18c RAC安装Part1:准备工作 2018-08-04 22:20 by AlfredZhao, 1065 阅读, 0 评论, 收藏, 编辑 一.实施前期准备工作 ...

  7. Linux平台 Oracle 11gR2 RAC安装Part1:准备工作

    一.实施前期准备工作 1.1 服务器安装操作系统 1.2 Oracle安装介质 1.3 共享存储规划 1.4 网络规范分配 二.安装前期准备工作 2.1 各节点系统时间校对 2.2 各节点关闭防火墙和 ...

  8. Linux平台 Oracle 11gR2 RAC安装Part3:DB安装

    四.DB(Database)安装 4.1 解压DB的安装包 4.2 DB软件安装 4.3 ASMCA创建磁盘组 4.4 DBCA建库 4.5 验证crsctl的状态 Linux平台 Oracle 11 ...

  9. Linux平台 Oracle 18c RAC安装Part1:准备工作

    一.实施前期准备工作 1.1 服务器安装操作系统 1.2 Oracle安装介质 1.3 共享存储规划 1.4 网络规范分配 二.安装前期准备工作 2.1 各节点系统时间校对 2.2 各节点关闭防火墙和 ...

随机推荐

  1. kibana 常用查询方法

    下面直接通过实例演示常用的搜索方法 转义特殊字符 + - && || ! () {} [] ^" ~ * ? : \ 注意:以上字符当作值搜索的时候需要用 \ 转义 1.在任 ...

  2. 52. leetcode 96. Unique Binary Search Trees

    96. Unique Binary Search Trees Given n, how many structurally unique BST's (binary search trees) tha ...

  3. 30. leetcode 121. Best Time to Buy and Sell Stock

    121. Best Time to Buy and Sell Stock Say you have an array for which the ith element is the price of ...

  4. Codeforces 828B Black Square(简单题)

    Codeforces 828B Black Square(简单题) Description Polycarp has a checkered sheet of paper of size n × m. ...

  5. amd和cmd区别

    作者:玉伯 链接:https://www.zhihu.com/question/20351507/answer/14859415 来源:知乎 著作权归作者所有,转载请联系作者获得授权. AMD 是 R ...

  6. Unity3D常用代码集合

    1.基本碰撞检测代码 function OnCollisionEnter(theCollision : Collision){         if(theCollision.gameObject.n ...

  7. My first_leetcode_Rever Ingeter 数字翻转java实现(办法集合)

    7. Reverse Integer Reverse digits of an integer. Example1: x = 123, return 321  Example2: x = -123, ...

  8. 【转载】QT MySQL数据库操作总结

    转载自http://blog.chinaunix.net/uid-28194872-id-3631462.html #include <QtSql> QT += sqlQSqlDataba ...

  9. ubuntu14.04 64位安装H3C iNode客户端

    环境: OS:ubuntu14.04LTS 64位 iNode: iNode2.40-R0162 for linux(iNode只有32位的,而且是很久以前的版本) 安装方法: 第一种: 检查本机是6 ...

  10. 2017年最新15个漂亮的 HTML 摄影网站模板

    摄影是一门艺术,它需要大量的耐心和努力工作来捕捉那些精彩的瞬间.如果你是一位热情的摄影师,想要建立一个网站来展示那些高质量的摄影作品,那么你找对地方了.本文包含15个最佳的摄影网站模板,你可以使用这些 ...