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


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下
[grid@jydb1 grid]$ pwd
/u01/app/12.2.0/grid
[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
# MULTIPATH DEVICES
#
# Set permissions for all multipath devices
ENV{DM_UUID}=="mpath-?*", OWNER:="grid", GROUP:="asmadmin", MODE:="660"

配置生效:

udevadm trigger

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

Xmanager通過grid用戶登錄,進入$ORACLE_HOME目錄,運行gridSetup配置GI
$ cd $ORACLE_HOME
$ ./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安裝:

yum install gcc-c++



注:執行root腳本,確保先在一節點執行完畢后,再在其他節點執行。

第一個節點root執行腳本:

[root@jydb1 tmp]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@jydb1 tmp]# /u01/app/12.2.0/grid/root.sh
Performing root user operation.

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/12.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...


Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Relinking oracle with rac_on option
Using configuration parameter file: /u01/app/12.2.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
  /u01/app/grid/crsdata/jydb1/crsconfig/rootcrs_jydb1_2017-09-08_03-13-19PM.log
2017/09/08 15:13:35 CLSRSC-594: Executing installation step 1 of 19: 'SetupTFA'.
2017/09/08 15:13:35 CLSRSC-4001: Installing Oracle Trace File Analyzer (TFA) Collector.
2017/09/08 15:14:05 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.
2017/09/08 15:14:05 CLSRSC-594: Executing installation step 2 of 19: 'ValidateEnv'.
2017/09/08 15:14:11 CLSRSC-363: User ignored prerequisites during installation
2017/09/08 15:14:11 CLSRSC-594: Executing installation step 3 of 19: 'CheckFirstNode'.
2017/09/08 15:14:14 CLSRSC-594: Executing installation step 4 of 19: 'GenSiteGUIDs'.
2017/09/08 15:14:15 CLSRSC-594: Executing installation step 5 of 19: 'SaveParamFile'.
2017/09/08 15:14:22 CLSRSC-594: Executing installation step 6 of 19: 'SetupOSD'.
2017/09/08 15:14:23 CLSRSC-594: Executing installation step 7 of 19: 'CheckCRSConfig'.
2017/09/08 15:14:24 CLSRSC-594: Executing installation step 8 of 19: 'SetupLocalGPNP'.
2017/09/08 15:14:55 CLSRSC-594: Executing installation step 9 of 19: 'ConfigOLR'.
2017/09/08 15:15:04 CLSRSC-594: Executing installation step 10 of 19: 'ConfigCHMOS'.
2017/09/08 15:15:05 CLSRSC-594: Executing installation step 11 of 19: 'CreateOHASD'.
2017/09/08 15:15:10 CLSRSC-594: Executing installation step 12 of 19: 'ConfigOHASD'.
2017/09/08 15:15:26 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.conf'
2017/09/08 15:15:59 CLSRSC-594: Executing installation step 13 of 19: 'InstallAFD'.
2017/09/08 15:16:43 CLSRSC-594: Executing installation step 14 of 19: 'InstallACFS'.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jydb1'
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jydb1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
2017/09/08 15:17:15 CLSRSC-594: Executing installation step 15 of 19: 'InstallKA'.
2017/09/08 15:17:21 CLSRSC-594: Executing installation step 16 of 19: 'InitConfig'.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jydb1'
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jydb1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
CRS-2672: Attempting to start 'ora.driver.afd' on 'jydb1'
CRS-2672: Attempting to start 'ora.evmd' on 'jydb1'
CRS-2672: Attempting to start 'ora.mdnsd' on 'jydb1'
CRS-2676: Start of 'ora.driver.afd' on 'jydb1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'jydb1'
CRS-2676: Start of 'ora.cssdmonitor' on 'jydb1' succeeded
CRS-2676: Start of 'ora.evmd' on 'jydb1' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'jydb1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'jydb1'
CRS-2676: Start of 'ora.gpnpd' on 'jydb1' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'jydb1'
CRS-2676: Start of 'ora.gipcd' on 'jydb1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'jydb1'
CRS-2672: Attempting to start 'ora.diskmon' on 'jydb1'
CRS-2676: Start of 'ora.diskmon' on 'jydb1' succeeded
CRS-2676: Start of 'ora.cssd' on 'jydb1' succeeded

Disk label(s) created successfully. Check /u01/app/grid/cfgtoollogs/asmca/asmca-170908PM031804.log for details.
Disk groups created successfully. Check /u01/app/grid/cfgtoollogs/asmca/asmca-170908PM031804.log for details.


2017/09/08 15:19:33 CLSRSC-482: Running command: '/u01/app/12.2.0/grid/bin/ocrconfig -upgrade grid oinstall'
CRS-2672: Attempting to start 'ora.crf' on 'jydb1'
CRS-2672: Attempting to start 'ora.storage' on 'jydb1'
CRS-2676: Start of 'ora.storage' on 'jydb1' succeeded
CRS-2676: Start of 'ora.crf' on 'jydb1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'jydb1'
CRS-2676: Start of 'ora.crsd' on 'jydb1' succeeded
CRS-4256: Updating the profile
Successful addition of voting disk e78463b659004fbbbfb3cdc4ee62fced.
Successful addition of voting disk 4375f93825644f62bf1c1a3eedc539b5.
Successful addition of voting disk 3b2ec2e16ccf4f05bf433fe83b30d6a6.
Successfully replaced voting disk group with +OCR.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   e78463b659004fbbbfb3cdc4ee62fced (AFD:OCR1) [OCR]
 2. ONLINE   4375f93825644f62bf1c1a3eedc539b5 (AFD:OCR2) [OCR]
 3. ONLINE   3b2ec2e16ccf4f05bf433fe83b30d6a6 (AFD:OCR3) [OCR]
Located 3 voting disk(s).
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jydb1'
CRS-2673: Attempting to stop 'ora.crsd' on 'jydb1'
CRS-2677: Stop of 'ora.crsd' on 'jydb1' succeeded
CRS-2673: Attempting to stop 'ora.storage' on 'jydb1'
CRS-2673: Attempting to stop 'ora.crf' on 'jydb1'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'jydb1'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'jydb1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'jydb1'
CRS-2677: Stop of 'ora.drivers.acfs' on 'jydb1' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'jydb1' succeeded
CRS-2677: Stop of 'ora.crf' on 'jydb1' succeeded
CRS-2677: Stop of 'ora.storage' on 'jydb1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'jydb1'
CRS-2677: Stop of 'ora.mdnsd' on 'jydb1' succeeded
CRS-2677: Stop of 'ora.asm' on 'jydb1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'jydb1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'jydb1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'jydb1'
CRS-2673: Attempting to stop 'ora.evmd' on 'jydb1'
CRS-2677: Stop of 'ora.ctssd' on 'jydb1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'jydb1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'jydb1'
CRS-2677: Stop of 'ora.cssd' on 'jydb1' succeeded
CRS-2673: Attempting to stop 'ora.driver.afd' on 'jydb1'
CRS-2673: Attempting to stop 'ora.gipcd' on 'jydb1'
CRS-2677: Stop of 'ora.driver.afd' on 'jydb1' succeeded
CRS-2677: Stop of 'ora.gipcd' on 'jydb1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jydb1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
2017/09/08 15:20:55 CLSRSC-594: Executing installation step 17 of 19: 'StartCluster'.
CRS-4123: Starting Oracle High Availability Services-managed resources
CRS-2672: Attempting to start 'ora.mdnsd' on 'jydb1'
CRS-2672: Attempting to start 'ora.evmd' on 'jydb1'
CRS-2676: Start of 'ora.evmd' on 'jydb1' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'jydb1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'jydb1'
CRS-2676: Start of 'ora.gpnpd' on 'jydb1' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'jydb1'
CRS-2676: Start of 'ora.gipcd' on 'jydb1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'jydb1'
CRS-2676: Start of 'ora.cssdmonitor' on 'jydb1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'jydb1'
CRS-2672: Attempting to start 'ora.diskmon' on 'jydb1'
CRS-2676: Start of 'ora.diskmon' on 'jydb1' succeeded
CRS-2676: Start of 'ora.cssd' on 'jydb1' succeeded
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'jydb1'
CRS-2672: Attempting to start 'ora.ctssd' on 'jydb1'
CRS-2676: Start of 'ora.ctssd' on 'jydb1' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'jydb1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'jydb1'
CRS-2676: Start of 'ora.asm' on 'jydb1' succeeded
CRS-2672: Attempting to start 'ora.storage' on 'jydb1'
CRS-2676: Start of 'ora.storage' on 'jydb1' succeeded
CRS-2672: Attempting to start 'ora.crf' on 'jydb1'
CRS-2676: Start of 'ora.crf' on 'jydb1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'jydb1'
CRS-2676: Start of 'ora.crsd' on 'jydb1' succeeded
CRS-6023: Starting Oracle Cluster Ready Services-managed resources
CRS-6017: Processing resource auto-start for servers: jydb1
CRS-6016: Resource auto-start has completed for server jydb1
CRS-6024: Completed start of Oracle Cluster Ready Services-managed resources
CRS-4123: Oracle High Availability Services has been started.
2017/09/08 15:23:51 CLSRSC-343: Successfully started Oracle Clusterware stack
2017/09/08 15:23:51 CLSRSC-594: Executing installation step 18 of 19: 'ConfigNode'.
CRS-2672: Attempting to start 'ora.ASMNET1LSNR_ASM.lsnr' on 'jydb1'
CRS-2676: Start of 'ora.ASMNET1LSNR_ASM.lsnr' on 'jydb1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'jydb1'
CRS-2676: Start of 'ora.asm' on 'jydb1' succeeded
CRS-2672: Attempting to start 'ora.OCR.dg' on 'jydb1'
CRS-2676: Start of 'ora.OCR.dg' on 'jydb1' succeeded
2017/09/08 15:26:20 CLSRSC-594: Executing installation step 19 of 19: 'PostConfig'.

Disk label(s) created successfully. Check /u01/app/grid/cfgtoollogs/asmca/asmca-170908PM032630.log for details.


2017/09/08 15:27:38 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@jydb1 tmp]# 

執行成功后,在第二個節點root執行腳本:

[root@jydb2 ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@jydb2 ~]# /u01/app/12.2.0/grid/root.sh
Performing root user operation.

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/12.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...


Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Relinking oracle with rac_on option
Using configuration parameter file: /u01/app/12.2.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
  /u01/app/grid/crsdata/jydb2/crsconfig/rootcrs_jydb2_2017-09-08_04-06-21PM.log
2017/09/08 16:06:37 CLSRSC-594: Executing installation step 1 of 19: 'SetupTFA'.
2017/09/08 16:06:37 CLSRSC-4001: Installing Oracle Trace File Analyzer (TFA) Collector.
2017/09/08 16:07:14 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.
2017/09/08 16:07:14 CLSRSC-594: Executing installation step 2 of 19: 'ValidateEnv'.
2017/09/08 16:07:15 CLSRSC-363: User ignored prerequisites during installation
2017/09/08 16:07:15 CLSRSC-594: Executing installation step 3 of 19: 'CheckFirstNode'.
2017/09/08 16:07:17 CLSRSC-594: Executing installation step 4 of 19: 'GenSiteGUIDs'.
2017/09/08 16:07:17 CLSRSC-594: Executing installation step 5 of 19: 'SaveParamFile'.
2017/09/08 16:07:21 CLSRSC-594: Executing installation step 6 of 19: 'SetupOSD'.
2017/09/08 16:07:22 CLSRSC-594: Executing installation step 7 of 19: 'CheckCRSConfig'.
2017/09/08 16:07:22 CLSRSC-594: Executing installation step 8 of 19: 'SetupLocalGPNP'.
2017/09/08 16:07:25 CLSRSC-594: Executing installation step 9 of 19: 'ConfigOLR'.
2017/09/08 16:07:28 CLSRSC-594: Executing installation step 10 of 19: 'ConfigCHMOS'.
2017/09/08 16:07:28 CLSRSC-594: Executing installation step 11 of 19: 'CreateOHASD'.
2017/09/08 16:07:30 CLSRSC-594: Executing installation step 12 of 19: 'ConfigOHASD'.
2017/09/08 16:07:45 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.conf'
2017/09/08 16:08:15 CLSRSC-594: Executing installation step 13 of 19: 'InstallAFD'.
2017/09/08 16:08:54 CLSRSC-594: Executing installation step 14 of 19: 'InstallACFS'.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jydb2'
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jydb2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
2017/09/08 16:09:33 CLSRSC-594: Executing installation step 15 of 19: 'InstallKA'.
2017/09/08 16:09:34 CLSRSC-594: Executing installation step 16 of 19: 'InitConfig'.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jydb2'
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jydb2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jydb2'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'jydb2'
CRS-2677: Stop of 'ora.drivers.acfs' on 'jydb2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jydb2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
2017/09/08 16:09:50 CLSRSC-594: Executing installation step 17 of 19: 'StartCluster'.
CRS-4123: Starting Oracle High Availability Services-managed resources
CRS-2672: Attempting to start 'ora.mdnsd' on 'jydb2'
CRS-2672: Attempting to start 'ora.evmd' on 'jydb2'
CRS-2676: Start of 'ora.mdnsd' on 'jydb2' succeeded
CRS-2676: Start of 'ora.evmd' on 'jydb2' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'jydb2'
CRS-2676: Start of 'ora.gpnpd' on 'jydb2' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'jydb2'
CRS-2676: Start of 'ora.gipcd' on 'jydb2' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'jydb2'
CRS-2676: Start of 'ora.cssdmonitor' on 'jydb2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'jydb2'
CRS-2672: Attempting to start 'ora.diskmon' on 'jydb2'
CRS-2676: Start of 'ora.diskmon' on 'jydb2' succeeded
CRS-2676: Start of 'ora.cssd' on 'jydb2' succeeded
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'jydb2'
CRS-2672: Attempting to start 'ora.ctssd' on 'jydb2'
CRS-2676: Start of 'ora.ctssd' on 'jydb2' succeeded
CRS-2672: Attempting to start 'ora.crf' on 'jydb2'
CRS-2676: Start of 'ora.crf' on 'jydb2' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'jydb2'
CRS-2676: Start of 'ora.crsd' on 'jydb2' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'jydb2' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'jydb2'
CRS-2676: Start of 'ora.asm' on 'jydb2' succeeded
CRS-6017: Processing resource auto-start for servers: jydb2
CRS-2672: Attempting to start 'ora.ASMNET1LSNR_ASM.lsnr' on 'jydb2'
CRS-2672: Attempting to start 'ora.net1.network' on 'jydb2'
CRS-2676: Start of 'ora.net1.network' on 'jydb2' succeeded
CRS-2672: Attempting to start 'ora.ons' on 'jydb2'
CRS-2676: Start of 'ora.ons' on 'jydb2' succeeded
CRS-2676: Start of 'ora.ASMNET1LSNR_ASM.lsnr' on 'jydb2' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'jydb2'
CRS-2676: Start of 'ora.asm' on 'jydb2' succeeded
CRS-6016: Resource auto-start has completed for server jydb2
CRS-6024: Completed start of Oracle Cluster Ready Services-managed resources
CRS-4123: Oracle High Availability Services has been started.
2017/09/08 16:13:34 CLSRSC-343: Successfully started Oracle Clusterware stack
2017/09/08 16:13:34 CLSRSC-594: Executing installation step 18 of 19: 'ConfigNode'.
2017/09/08 16:13:55 CLSRSC-594: Executing installation step 19 of 19: 'PostConfig'.
2017/09/08 16:14:22 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@jydb2 ~]# 

繼續安裝,這段時間也很長,我這里測試環境大概要半個小時+,


注:最后這個報錯提示,查看日志發現是因為使用了一個scan ip的提示,可以忽略。

至此GI配置完成。

3.5 驗證crsctl的狀態

crsctl stat res -t
[grid@jydb1 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.ASMNET1LSNR_ASM.lsnr
               ONLINE  ONLINE       jydb1                    STABLE
               ONLINE  ONLINE       jydb2                    STABLE
ora.LISTENER.lsnr
               ONLINE  ONLINE       jydb1                    STABLE
               ONLINE  ONLINE       jydb2                    STABLE
ora.MGMT.dg
               ONLINE  ONLINE       jydb1                    STABLE
               ONLINE  ONLINE       jydb2                    STABLE
ora.OCR.dg
               ONLINE  ONLINE       jydb1                    STABLE
               ONLINE  ONLINE       jydb2                    STABLE
ora.chad
               ONLINE  ONLINE       jydb1                    STABLE
               ONLINE  ONLINE       jydb2                    STABLE
ora.net1.network
               ONLINE  ONLINE       jydb1                    STABLE
               ONLINE  ONLINE       jydb2                    STABLE
ora.ons
               ONLINE  ONLINE       jydb1                    STABLE
               ONLINE  ONLINE       jydb2                    STABLE
ora.proxy_advm
               OFFLINE OFFLINE      jydb1                    STABLE
               OFFLINE OFFLINE      jydb2                    STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.MGMTLSNR
      1        ONLINE  ONLINE       jydb1                    169.254.105.255 10.1
                                                             0.1.90 10.10.2.90,ST
                                                             ABLE
ora.asm
      1        ONLINE  ONLINE       jydb1                    Started,STABLE
      2        ONLINE  ONLINE       jydb2                    Started,STABLE
      3        OFFLINE OFFLINE                               STABLE
ora.cvu
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.jydb1.vip
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.jydb2.vip
      1        ONLINE  ONLINE       jydb2                    STABLE
ora.mgmtdb
      1        ONLINE  ONLINE       jydb1                    Open,STABLE
ora.qosmserver
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.scan1.vip
      1        ONLINE  ONLINE       jydb1                    STABLE
--------------------------------------------------------------------------------

crsctl stat res -t -init

[grid@jydb1 ~]$ crsctl stat res -t -init
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details       
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.asm
      1        ONLINE  ONLINE       jydb1                    Started,STABLE
ora.cluster_interconnect.haip
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.crf
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.crsd
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.cssd
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.cssdmonitor
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.ctssd
      1        ONLINE  ONLINE       jydb1                    ACTIVE:0,STABLE
ora.diskmon
      1        OFFLINE OFFLINE                               STABLE
ora.driver.afd
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.drivers.acfs
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.evmd
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.gipcd
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.gpnpd
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.mdnsd
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.storage
      1        ONLINE  ONLINE       jydb1                    STABLE
--------------------------------------------------------------------------------
[grid@jydb1 ~]$ 

3.6 測試集群的FAILED OVER功能

節點2被重啟,查看節點1狀態:
[grid@jydb1 ~]$ crsctl stat res -t 
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.ASMNET1LSNR_ASM.lsnr
               ONLINE  ONLINE       jydb1                    STABLE
ora.LISTENER.lsnr
               ONLINE  ONLINE       jydb1                    STABLE
ora.MGMT.dg
               ONLINE  ONLINE       jydb1                    STABLE
ora.OCR.dg
               ONLINE  ONLINE       jydb1                    STABLE
ora.chad
               ONLINE  ONLINE       jydb1                    STABLE
ora.net1.network
               ONLINE  ONLINE       jydb1                    STABLE
ora.ons
               ONLINE  ONLINE       jydb1                    STABLE
ora.proxy_advm
               OFFLINE OFFLINE      jydb1                    STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.MGMTLSNR
      1        ONLINE  ONLINE       jydb1                    169.254.105.255 10.1
                                                             0.1.90 10.10.2.90,ST
                                                             ABLE
ora.asm
      1        ONLINE  ONLINE       jydb1                    Started,STABLE
      2        ONLINE  OFFLINE                               STABLE
      3        OFFLINE OFFLINE                               STABLE
ora.cvu
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.jydb1.vip
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.jydb2.vip
      1        ONLINE  INTERMEDIATE jydb1                    FAILED OVER,STABLE
ora.mgmtdb
      1        ONLINE  ONLINE       jydb1                    Open,STABLE
ora.qosmserver
      1        ONLINE  ONLINE       jydb1                    STABLE
ora.scan1.vip
      1        ONLINE  ONLINE       jydb1                    STABLE
--------------------------------------------------------------------------------

節點1被重啟,查看節點2狀態:

[grid@jydb2 ~]$ crsctl stat res -t 
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.ASMNET1LSNR_ASM.lsnr
               ONLINE  ONLINE       jydb2                    STABLE
ora.LISTENER.lsnr
               ONLINE  ONLINE       jydb2                    STABLE
ora.MGMT.dg
               ONLINE  ONLINE       jydb2                    STABLE
ora.OCR.dg
               ONLINE  ONLINE       jydb2                    STABLE
ora.chad
               ONLINE  ONLINE       jydb2                    STABLE
ora.net1.network
               ONLINE  ONLINE       jydb2                    STABLE
ora.ons
               ONLINE  ONLINE       jydb2                    STABLE
ora.proxy_advm
               OFFLINE OFFLINE      jydb2                    STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       jydb2                    STABLE
ora.MGMTLSNR
      1        ONLINE  ONLINE       jydb2                    169.254.94.238 10.10
                                                             .1.92 10.10.2.92,STA
                                                             BLE
ora.asm
      1        ONLINE  OFFLINE                               STABLE
      2        ONLINE  ONLINE       jydb2                    Started,STABLE
      3        OFFLINE OFFLINE                               STABLE
ora.cvu
      1        ONLINE  ONLINE       jydb2                    STABLE
ora.jydb1.vip
      1        ONLINE  INTERMEDIATE jydb2                    FAILED OVER,STABLE
ora.jydb2.vip
      1        ONLINE  ONLINE       jydb2                    STABLE
ora.mgmtdb
      1        ONLINE  ONLINE       jydb2                    Open,STABLE
ora.qosmserver
      1        ONLINE  ONLINE       jydb2                    STABLE
ora.scan1.vip
      1        ONLINE  ONLINE       jydb2                    STABLE
--------------------------------------------------------------------------------

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM