RHEL 7 安裝oracle rac 11.2.0.4執行root.sh報錯ohasd failed to start
報錯資訊:
[root@rac1 ~]# /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@zjdb1 ~]# /u01/app/11.2.0/grid/root.sh
Performing root
user operation for Oracle 11g
The following environment variables
are set as:
ORACLE_OWNER= grid
ORACLE_HOME=
/u01/app/11.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.
Using configuration
parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating
trace directory
User ignored Prerequisites during installation
Installing
Trace File Analyzer
OLR initialization - 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 Clusterware entries to
inittab
ohasd failed to start
Failed
to start the Clusterware. Last 20 lines of the alert log follow:
2015-05-23
23:37:45.460:
[client(13782)]CRS-2101:The OLR was formatted using version
3.
報錯原因:
因為RHEL 7使用systemd而不是initd執行程式和重啟程式,而root.sh透過傳統的initd執行ohasd程式。
解決方法:
在RHEL 7中ohasd需要被設定為一個服務,在執行指令碼root.sh之前。
步驟如下:
1. 以root使用者建立服務檔案
#touch /usr/lib/systemd/system/ohas.service
#chmod 777 /usr/lib/systemd/system/ohas.service
2. 將以下內容新增到新建立的ohas.service檔案中
[root@rac1
init.d]# cat
/usr/lib/systemd/system/ohas.service
[Unit]
Description=Oracle High
Availability
Services
After=syslog.target
[Service]
ExecStart=/etc/init.d/init.ohasd
run >/dev/null 2>&1
Type=simple
Restart=always
[Install]
WantedBy=multi-user.target
3. 以root使用者執行下面的命令
systemctl
daemon-reload
systemctl enable
ohas.service
systemctl start
ohas.service
4.
檢視執行狀態
[root@rac1
init.d]# systemctl status ohas.service
ohas.service - Oracle High
Availability Services
Loaded: loaded
(/usr/lib/systemd/system/ohas.service; enabled)
Active: failed (Result: start-limit) since Fri 2015-09-11
16:07:32 CST; 1s ago
Process: 5734 ExecStart=/etc/init.d/init.ohasd run
>/dev/null 2>&1 Type=simple (code=exited, status=203/EXEC)
Main
PID: 5734 (code=exited, status=203/EXEC)
Sep 11 16:07:32 rac1
systemd[1]: Starting Oracle High Availability Services...
Sep 11 16:07:32
rac1 systemd[1]: Started Oracle High Availability Services.
Sep 11 16:07:32
rac1 systemd[1]: ohas.service: main process exited, code=exited,
status=203/EXEC
Sep 11 16:07:32 rac1 systemd[1]: Unit ohas.service entered
failed state.
Sep 11 16:07:32 rac1 systemd[1]: ohas.service holdoff time
over, scheduling restart.
Sep 11 16:07:32 rac1 systemd[1]: Stopping Oracle
High Availability Services...
Sep 11 16:07:32 rac1 systemd[1]: Starting
Oracle High Availability Services...
Sep 11 16:07:32 rac1 systemd[1]:
ohas.service start request repeated too quickly, refusing to start.
Sep 11
16:07:32 rac1 systemd[1]: Failed to start Oracle High Availability
Services.
Sep 11 16:07:32 rac1 systemd[1]: Unit ohas.service entered failed
state.
此時狀態為失敗,原因是現在還沒有/etc/init.d/init.ohasd檔案。
下面可以執行指令碼root.sh 不會再報ohasd failed to start錯誤了。
如果還是報ohasd failed to start錯誤,可能是root.sh指令碼建立了init.ohasd之後,ohas.service沒有馬上啟動,解決方法參考以下:
當執行root.sh時,一直重新整理/etc/init.d ,直到出現 init.ohasd 檔案,馬上手動啟動ohas.service服務 命令:systemctl start ohas.service
[root@rac1
init.d]# systemctl status ohas.service
ohas.service - Oracle High
Availability Services
Loaded: loaded
(/usr/lib/systemd/system/ohas.service; enabled)
Active: active (running) since Fri 2015-09-11 16:09:05
CST; 3s ago
Main PID: 6000 (init.ohasd)
CGroup:
/system.slice/ohas.service
6000 /bin/sh /etc/init.d/init.ohasd run
>/dev/null 2>&1 Type=simple
6026 /bin/sleep
10
Sep 11 16:09:05 rac1 systemd[1]: Starting Oracle High Availability
Services...
Sep 11 16:09:05 rac1 systemd[1]: Started Oracle High Availability
Services.
Sep 11 16:09:05 rac1 su[6020]: (to grid) root on
none
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25462274/viewspace-2150860/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 11.2.0.4單例項ASM安裝報錯ohasd failed to ... line 73.單例ASMAI
- 10g rac安裝crs,執行root.sh報錯
- Oracle 11gR2 RAC ohasd failed to start 解決方法OracleAI
- 【Oracle】11gR2的安裝Grid執行root.sh出現ohasd failed解決方案OracleAI
- Centos 6.4安裝rac,執行root.sh時報錯CentOS
- 安裝RAC 執行root.sh指令碼報錯,解決辦法指令碼
- 11.2.0.4 RAC grid 執行root.sh 報錯libcap.so.1找不到
- rhel5.6安裝10g clusterware時,節點2執行root.sh報錯
- 在Suse 12.4上安裝11.2.0.4的rac執行root.sh報錯“ORA-12547: TNS:lost contact”
- RHEL 7.X 或CentOS 7 安裝 11.2.0.4 RAC碰到的問題CentOS
- RAC安裝【AIX 7 + 11.2.0.4 + ASM】AIASM
- Oracle Enterprise Linux 5.6下安裝Oracle 10g RAC執行root.sh報錯問題解決LinuxOracle 10g
- Oracle RAC 安裝 執行 root.sh時報Failed to upgrade Oracle Cluster Registry configuration問題的解決OracleAI
- OEL6.8上安裝11.2.0.2執行root.sh報錯
- RHEL5單機安裝11gR2 asm執行root.sh報錯:CRS-4124ASM
- Oracle RAC root.sh 報錯 Timed out waiting for the CRS stack to start 解決方法OracleAI
- oracle之 安裝 11G RAC 報 NTP failedOracleAI
- centos 6.7 (UDEV,、etc/hosts)安裝 RAC 11.2.0.4 報錯處理CentOSdev
- Oracle RAC重新執行root.sh指令碼Oracle指令碼
- Solaris下Oracle RAC 11.2.0.4 安裝方法Oracle
- rhel7 安裝11g rac
- 執行root.sh 時報錯Failed to upgrade Oracle Cluster Registry configurationAIOracle
- oracle 10g rac安裝報錯Oracle 10g
- Oracle Rac root.sh報錯 Failed to create keys in the OLR, rc = 127 libcap.so.1OracleAI
- 安裝GRID CONTROL The OPMN Process Manager failed to start報錯處理AI
- ORACLE rac 11.2.0.4 for rhel7.8 upgrade to 19.11.1 報錯ORA-29516處理Oracle
- 安裝rac clusterware如何在root.sh失敗後快速重執行root.sh指令碼指令碼
- Oracle 11.2.0.4 RAC安裝最新PSU補丁Oracle
- oracle10g rac(rhel)_srvctl star執行出錯_crs_stop出錯Oracle
- CentOS 7.6 安裝11.2.0.4 RACCentOS
- grid安裝執行root.sh時Timed out waiting for the CRS stack to start - 解除安裝gridAI
- ORACLE 19C RAC FOR RHEL7 打補丁報錯OPatchException: Unable to create patchObjectOracleExceptionObject
- 安裝RAC 報錯 集錦
- AIX 6.1 Oracle11g 11.2.0.4 RAC 安裝心得AIOracle
- 【流雲】Solaris安裝RAC執行root.sh失敗解決一例
- AIX5.3安裝 ORACLE 10.2 RAC 執行root.sh出現lsdb: Cannot allocate memory of size 0 錯誤的解決方法AIOracle
- oracle10g rac on solaris 10 x86 clusterware_執行root.sh出錯Oracle
- VMware RHEL5安裝Oracle 10g RACOracle 10g