RHEL 7.5中安裝11gRAC時,在grid infrastructure的root.sh執行時,報錯:
# /oracle/product/11g/grid/root.sh ... Adding Clusterware entries to inittab ohasd failed to start Failed to start the Clusterware. Last 20 lines of the alert log follow: 2019-01-04 17:02:36.004: [client(25743)]CRS-2101:The OLR was formatted using version 3.
這是由於RHEL 7改變了init的管理方式,出現了兼容性上的問題。官方給出了補丁18370031,在PSU 28429134也有包含,選擇一個就好。
具體的處理方式為:
1、首先deinstall掉grid
$ORACLE_HOME/deinstall/deinstall
按照提示進行
2、按照常規步驟進行安裝
3、在彈出root執行腳本時注意,先執行orainstRoot.sh,暫時先暫停
4、解壓OPatch和補丁包
5、創建opatch 的ocmrf,但選擇不啟用
$ $ORACLE_HOME/OPatch/ocm/bin/emocmrsp -no_banner -output /oracle/ocm.rsp Provide your email address to be informed of security issues, install and initiate Oracle Configuration Manager. Easier for you if you use your My Oracle Support Email address/User Name. Visit http://www.oracle.com/support/policies.html for details. Email address/User Name: <----直接回車 You have not provided an email address for notification of security issues. Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Y The OCM configuration response file (/oracle/ocm.rsp) was successfully created.
6、打補丁18370031
$ /oracle/product/11g/grid/OPatch/opatch napply -oh /oracle/product/11g/grid -local /home/grid/18370031 -ocmrf /oracle/ocm.rsp Oracle Interim Patch Installer version 11.2.0.3.20 Copyright (c) 2019, Oracle Corporation. All rights reserved. ... OPatch succeeded.
7、再執行root.sh
# /oracle/product/11g/grid/root.sh ... Adding Clusterware entries to oracle-ohasd.service CRS-2672: Attempting to start 'ora.mdnsd' on 'rac01' CRS-2676: Start of 'ora.mdnsd' on 'rac01' succeeded CRS-2672: Attempting to start 'ora.gpnpd' on 'rac01' CRS-2676: Start of 'ora.gpnpd' on 'rac01' succeeded CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac01' CRS-2672: Attempting to start 'ora.gipcd' on 'rac01' CRS-2676: Start of 'ora.cssdmonitor' on 'rac01' succeeded CRS-2676: Start of 'ora.gipcd' on 'rac01' succeeded CRS-2672: Attempting to start 'ora.cssd' on 'rac01' CRS-2672: Attempting to start 'ora.diskmon' on 'rac01' CRS-2676: Start of 'ora.diskmon' on 'rac01' succeeded CRS-2676: Start of 'ora.cssd' on 'rac01' succeeded ASM created and started successfully. Disk Group GRID created successfully. ... Configure Oracle Grid Infrastructure for a Cluster ... succeeded