11 g rac 安裝 10步
十. 安裝 oracle grid控制項
10.1 安裝cvuqdisk包
用於發現和使用共用儲存,在兩個node以root使用者執行
[root@wmrac01 rpm]# CVUQDISK_GRP=oinstall;export CVUQDISK_GRP
[root@wmrac01 rpm]# rpm -Uvh cvuqdisk-1.0.7-1.rpm
Preparing... ########################################### [100%]
1:cvuqdisk ########################################### [100%]
10.2 驗証grid安裝環境
wmrac01$./runcluvfy.sh stage -pre crsinst -n wmrac01,wmrac02 -fixup -verbose
驗証結果除下述結果failed外,其他結果都應該是passed
Check: Membership of user "grid" in group "dba"
Node Name User Exists Group Exists User in Group Comment
---------------- ------------ ------------ ------------ ----------------
poland-rac02 yes yes no failed
poland-rac01 yes yes no failed
Result: Membership check for user "grid" in group "dba" failed
注意:如果交換分割槽沒有按標準設定也會報錯,可以忽略.
SWAP: 實體記憶體在4~8G的,SWAP為實體記憶體的2倍;
實體記憶體在8~32G的,SWAP為16G;
實體記憶體大於32G的,SWAP為32G
Check: Swap space
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
wmrac02 7.81GB (8193108.0KB) 16GB (1.6777216E7KB) failed
wmrac01 7.81GB (8193108.0KB) 16GB (1.6777216E7KB) failed
Result: Swap space check failed
在檢查的時,一般發報NTP fail,我們可以先通過前面的時間同步指令碼同步節點間的時間,然後通過如下方式重新命名/etc/ntp.conf,再次Check就pass了.
[root@wmrac01 ~]# mv /etc/ntp.conf /etc/ntp.conf.bak(所有節點設定)
Check: Liveness for "ntpd"
Node Name Running?
------------------------------------ ------------------------
wmrac02 no
wmrac01 no
Result: Liveness check failed for "ntpd"
PRVF-5415 : Check to see if NTP daemon is running failed
Result: Clock synchronization check using Network Time Protocol(NTP) failed
10.3 安裝oracle grid控制項
安裝很簡單,按照如下圖示操作即可
按圖示要求在兩個node以root使用者執行
[root@wmrac01 product]# /u01/product/grid/oraInventory/orainstRoot.sh
Changing permissions of /u01/product/grid/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/product/grid/oraInventory to oinstall.
The execution of the script. is complete.
[root@wmrac02 product]# /u01/product/grid/oraInventory/orainstRoot.sh
Changing permissions of /u01/product/grid/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/product/grid/oraInventory to oinstall.
The execution of the script. is complete.
[root@wmrac01 product]# /u01/product/grid/11.2.0/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/product/grid/11.2.0
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.sh script.
Now product-specific root actions will be performed.
2011-02-28 15:56:11: Parsing the host name
2011-02-28 15:56:11: Checking for super user privileges
2011-02-28 15:56:11: User has super user privileges
Using configuration parameter file: /u01/product/grid/11.2.0/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
root wallet
root wallet cert
root cert export
peer wallet
profile reader wallet
pa wallet
peer wallet keys
pa wallet keys
peer cert request
pa cert request
peer cert
pa cert
peer root cert TP
profile reader root cert TP
pa root cert TP
peer pa cert TP
pa peer cert TP
profile reader pa cert TP
profile reader peer cert TP
peer user cert
pa user cert
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
CRS-2672: Attempting to start 'ora.gipcd' on 'wmrac01'
CRS-2672: Attempting to start 'ora.mdnsd' on 'wmrac01'
CRS-2676: Start of 'ora.gipcd' on 'wmrac01' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'wmrac01' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'wmrac01'
CRS-2676: Start of 'ora.gpnpd' on 'wmrac01' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'wmrac01'
CRS-2676: Start of 'ora.cssdmonitor' on 'wmrac01' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'wmrac01'
CRS-2672: Attempting to start 'ora.diskmon' on 'wmrac01'
CRS-2676: Start of 'ora.diskmon' on 'wmrac01' succeeded
CRS-2676: Start of 'ora.cssd' on 'wmrac01' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'wmrac01'
CRS-2676: Start of 'ora.ctssd' on 'wmrac01' succeeded
ASM created and started successfully.
DiskGroup DATA created successfully.
clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-2672: Attempting to start 'ora.crsd' on 'wmrac01'
CRS-2676: Start of 'ora.crsd' on 'wmrac01' succeeded
CRS-4256: Updating the profile
Successful addition of voting disk 8eef0cb64e674f33bf8d998f5875c052.
Successfully replaced voting disk group with +DATA.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 8eef0cb64e674f33bf8d998f5875c052 (ORCL:DATAV1) [DATA]
Located 1 voting disk(s).
CRS-2673: Attempting to stop 'ora.crsd' on 'wmrac01'
CRS-2677: Stop of 'ora.crsd' on 'wmrac01' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'wmrac01'
CRS-2677: Stop of 'ora.asm' on 'wmrac01' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'wmrac01'
CRS-2677: Stop of 'ora.ctssd' on 'wmrac01' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'wmrac01'
CRS-2677: Stop of 'ora.cssdmonitor' on 'wmrac01' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'wmrac01'
CRS-2677: Stop of 'ora.cssd' on 'wmrac01' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'wmrac01'
CRS-2677: Stop of 'ora.gpnpd' on 'wmrac01' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'wmrac01'
CRS-2677: Stop of 'ora.gipcd' on 'wmrac01' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'wmrac01'
CRS-2677: Stop of 'ora.mdnsd' on 'wmrac01' succeeded
CRS-2672: Attempting to start 'ora.mdnsd' on 'wmrac01'
CRS-2676: Start of 'ora.mdnsd' on 'wmrac01' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'wmrac01'
CRS-2676: Start of 'ora.gipcd' on 'wmrac01' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'wmrac01'
CRS-2676: Start of 'ora.gpnpd' on 'wmrac01' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'wmrac01'
CRS-2676: Start of 'ora.cssdmonitor' on 'wmrac01' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'wmrac01'
CRS-2672: Attempting to start 'ora.diskmon' on 'wmrac01'
CRS-2676: Start of 'ora.diskmon' on 'wmrac01' succeeded
CRS-2676: Start of 'ora.cssd' on 'wmrac01' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'wmrac01'
CRS-2676: Start of 'ora.ctssd' on 'wmrac01' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'wmrac01'
CRS-2676: Start of 'ora.asm' on 'wmrac01' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'wmrac01'
CRS-2676: Start of 'ora.crsd' on 'wmrac01' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'wmrac01'
CRS-2676: Start of 'ora.evmd' on 'wmrac01' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'wmrac01'
CRS-2676: Start of 'ora.asm' on 'wmrac01' succeeded
CRS-2672: Attempting to start 'ora.DATA.dg' on 'wmrac01'
CRS-2676: Start of 'ora.DATA.dg' on 'wmrac01' succeeded
CRS-2672: Attempting to start 'ora.registry.acfs' on 'wmrac01'
CRS-2676: Start of 'ora.registry.acfs' on 'wmrac01' succeeded
wmrac01 2011/02/28 16:04:00 /u01/product/grid/11.2.0/cdata/wmrac01/backup_20110228_160400.olr
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
Updating inventory properties for clusterware
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 8001 MB Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/product/grid/oraInventory
'UpdateNodeList' was successful.
[root@wmrac02 product]# /u01/product/grid/11.2.0/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/product/grid/11.2.0
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.sh script.
Now product-specific root actions will be performed.
2011-02-28 16:05:19: Parsing the host name
2011-02-28 16:05:19: Checking for super user privileges
2011-02-28 16:05:19: User has super user privileges
Using configuration parameter file: /u01/product/grid/11.2.0/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
CRS-2672: Attempting to start 'ora.gipcd' on 'wmrac02'
CRS-2672: Attempting to start 'ora.mdnsd' on 'wmrac02'
CRS-2676: Start of 'ora.gipcd' on 'wmrac02' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'wmrac02' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'wmrac02'
CRS-2676: Start of 'ora.gpnpd' on 'wmrac02' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'wmrac02'
CRS-2676: Start of 'ora.cssdmonitor' on 'wmrac02' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'wmrac02'
CRS-2672: Attempting to start 'ora.diskmon' on 'wmrac02'
CRS-2676: Start of 'ora.diskmon' on 'wmrac02' succeeded
CRS-2676: Start of 'ora.cssd' on 'wmrac02' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'wmrac02'
CRS-2676: Start of 'ora.ctssd' on 'wmrac02' succeeded
DiskGroup DATA creation failed with the following message:
ORA-15018: diskgroup cannot be created
ORA-15072: command requires at least 1 regular failure groups, discovered only 0
Configuration of ASM failed, see logs for details
Did not succssfully configure and start ASM
CRS-2500: Cannot stop resource 'ora.crsd' as it is not running
CRS-4000: Command Stop failed, or completed with errors.
Command return code of 1 (256) from command: /u01/product/grid/11.2.0/bin/crsctl stop resource ora.crsd -init
Stop of resource "ora.crsd -init" failed
Failed to stop CRSD
CRS-2673: Attempting to stop 'ora.asm' on 'wmrac02'
CRS-2677: Stop of 'ora.asm' on 'wmrac02' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'wmrac02'
CRS-2677: Stop of 'ora.ctssd' on 'wmrac02' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'wmrac02'
CRS-2677: Stop of 'ora.cssdmonitor' on 'wmrac02' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'wmrac02'
CRS-2677: Stop of 'ora.cssd' on 'wmrac02' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'wmrac02'
CRS-2677: Stop of 'ora.gpnpd' on 'wmrac02' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'wmrac02'
CRS-2677: Stop of 'ora.gipcd' on 'wmrac02' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'wmrac02'
CRS-2677: Stop of 'ora.mdnsd' on 'wmrac02' succeeded
Initial cluster configuration failed. See /u01/product/grid/11.2.0/cfgtoollogs/crsconfig/rootcrs_wmrac02.log for details
Symptoms:
DiskGroup DATA creation failed with the following message:
ORA-15018: diskgroup cannot be created
ORA-15072: command requires at least 1 regular failure groups, discovered only 0
Cause:
After configuring multipath disks on Linux x86-64, proper parameters have not been configured in /etc/sysconfig/oracleasm
Solution:
On all nodes,
1. Modify the /etc/sysconfig/oracleasm with:
ORACLEASM_SCANORDER="dm"
ORACLEASM_SCANEXCLUDE="sd"
2. restart the asmlib by :
# /etc/init.d/oracleasm restart
3. Run root.sh on the 2nd node(注﹕由於之前有執行過該指令碼﹐再執行時會報錯﹐需要執行下面的命令後再重新執行)
root@wmrac02sysconfig]# /u01/product/grid/11.2.0/crs/install/roothas.pl -delete -force -verbose
問題修復後進入如下畫面
選擇OK,跳過該提示
選擇Close,完成grid安裝.按如下圖示進行驗証
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25850100/viewspace-704186/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- rhel7 安裝11g rac
- redhat7.6安裝Oracle11G RACRedhatOracle
- Oracle 11G RAC叢集安裝(2)——安裝gridOracle
- Oracle 11G RAC叢集安裝(3)——安裝OracleOracle
- oracle 11g RAC 安裝前準備指令碼Oracle指令碼
- Oracle:Redhat 7 + Oracle RAC 11g 安裝 bug 總結OracleRedhat
- Oracle 11G RAC叢集安裝(1)——安裝前的準備Oracle
- 通過ORACLE VM virtualbox環境安裝oracle 11G RAC(ASM)OracleASM
- Vmware linux redhat6.4 安裝11g(11.2.0.1) 雙節點RACLinuxRedhat
- Oracle 11g RAC安裝--基於openfiler儲存+多路徑+udev方式Oracledev
- 11g rac新增節點步驟(11g)
- Oracle 11G 安裝文件Oracle
- Oracle11g解除安裝Oracle
- Docker安裝Oracle11gDockerOracle
- linux7 安裝11g rac的時候突然卡著不動了Linux
- 11G RAC+DG搭建
- Oracle 11G 安裝 bbed 工具Oracle
- oracle11g RAC新增節點Oracle
- 11g rac監聽配置解析
- Oracle 11g RAC Silent Install For NFSOracleNFS
- Oracle11g RAC安裝GI時會遇到INS-06006報錯處理過程Oracle
- readhalt7.4 安裝 oracle11gOracle
- oracle11g安裝和下載Oracle
- linux7 靜默安裝 11GR2 RACLinux
- 【11g 單庫解除安裝、靜默安裝】實驗
- Oracle 11g RAC 監聽日常管理Oracle
- Oracle 11g RAC手動新增serviceOracle
- 11g rac 等待事件resmgr:cpu quantum事件
- rac新增節點步驟(11g)
- RedHat上靜默安裝Oracle11gRedhatOracle
- CentOS 7.2靜默安裝Oracle11gCentOSOracle
- CentOS 7.5靜默安裝Oracle 11gCentOSOracle
- rac靜默安裝
- oracle11g_RAC新增刪除節點Oracle
- Oracle 11g RAC重新新增節點Oracle
- 11G RAC檢查各元件狀態元件
- Tuning CPU 100% in Oracle 11g rac-20220215Oracle
- oracle11g的安裝,及plsql developer11的安裝、漢化和註冊OracleSQLDeveloper
- vmware + 裸裝置 + crs + oracle10g RAC搭建步驟(二):安裝linuxOracleLinux