1. 程式人生 > >RHEL 7 安裝oracle rac 11.2.0.4執行root.sh報錯ohasd failed to start

RHEL 7 安裝oracle rac 11.2.0.4執行root.sh報錯ohasd failed to start

報錯資訊:

[[email protected] ~]# /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.
[[email protected]

~]# /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檔案中

[[email protected] 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. 檢視執行狀態

[[email protected] 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 

[[email protected] 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

相關推薦

RHEL 7 安裝oracle rac 11.2.0.4執行root.shohasd failed to start

報錯資訊: [[email protected] ~]# /u01/app/oraInventory/orainstRoot.sh  Changing permissions of /u01/app/oraInventory. Adding read,write

rhel 6.7 安裝Oracle RAC 12.2.0.1

RHEL 6.7上安裝Oracle RAC 12.2.0.1 1.  作業系統及儲存配置 1.1需要安裝的OS package ################################# Table 4-4 x86-64 Red Hat Enterprise

rhel7.4安裝oracle 11G 11.2.0.4.0 RAC

mes sid unit 下一步 路徑和 vim pen submenu shadow 一、操作系統 red hat 7.4oracle數據庫版本11.2.0.4oracle grid版本11.2.0.4對應的文件p13390677_112040_Linux-x86-64_

AIX 6 Oracle RAC 11.2.0.4版本 PSU升級步驟

1.檢查/更新OPatch版本 官方要求OPatch版本需在11.2.0.3.6或以上,如果檢查OPatch版本低於11.2.0.3.6,需從官網下載最新OPatch實用程式,並在各個節點的database home和GI home均打上最新補丁。 在節點1和節點2

CentOS7 靜默安裝Oracle 11gR2(11.2.0.1)

文件的 sil swapon profile pytho ise sym 端口 啟動 最近有個項目需要遷移,項目中數據庫用的是oracle,期間折騰了好久,特此記錄。 一,下載Oracle 1,首先下載Oracle 11gR2,地址如下:http://www.oracle.

單例項Windows下升級11.2.0.1的oracle11.2.0.4

前提:1.做好備份 可以用expdp/impdp匯出匯入至另一臺伺服器    也可以手動複製檔案和資料夾(較麻煩)            2.關閉服務和監聽 開始:1.下載

oracle 11gr2 11.2.0.4升級11.2.0.4.2

oracle 11gr2 11.2.0.4升級11.2.0.4.2 更新的補丁安裝包有如下: 1.p6880880_112000_LINUX.zip 2.p18031668_112040_Linux-x86-64.zip1.把Opatch的環境變數配置 export PATH=$ORACLE_H

在widows 2008 x64bit R2下安裝Oracle db 10.2.0.4時遇到的"檢查作業系統版本: 必須是5.1 or 5.2。實際為 6.1未通過"

在Widows 2008 x64bit R2下安裝Oracle db 10.2.0.4時遇到的"檢查作業系統版本: 必須是5.1 or 5.2。實際為 6.1未通過" 特別說明:Widows 2008 x64bit R2下安裝Oracle db 10.2.0.4僅僅是第一

單機 Oracle 11g(11.2.0.4)手動打補丁PSU(11.2.0.4.8)

環境說明: database : 11.2.0.4 x64 os: centos6.7 x64 準備內容: OPatch : p6880880_112000_Linux-x86-64.zip DB PSU : p21352635_112040_Linux-x86-64

10 RAC CRS 2節點執行root.shWaiting for the Oracle CRSD and EVMD 處理方法

1、--在安裝10G clusterware 在二節點執行root.sh報錯Waiting for the Oracle CRSD and EVMD to start處理方法 [[email protected] ~]# /oracle/oraInventory/

linux 7安裝rac 11gR2時執行root.sh找不到ohas服務(ohasd failed to start

執行root.sh指令碼的時候報錯 Adding Clusterware entries to inittab ohasd failed to startFailed to start the Clu

安裝RAC節點二執行root.sh

SQL> CREATE DISKGROUP CRS EXTERNAL REDUNDANCY  DISK 'ORCL:ASM_DISK04', 'ORCL:ASM_DISK05', 'ORCL:ASM_DISK06' ATTRIBUTE 'compatible.asm'='11.2.0.0.0','au_

安裝RAC執行root.sh解決

問題:[[email protected] grid]# ./root.sh  Performing root user operation for Oracle 11g  The following environment variables are set a

rac安裝過程中安裝grid infrastructure 時 執行root.sh,完全刪除grid infrastructure

未能建立磁碟組DATA,返回訊息如下: ORA-15018:diskgroup connot be create ORA-15020:discovered duplicate ASM disk "OCRVDISK3" Configuration of ASM ... fa

CentOS7安裝MySQL,解決Failed to start mysqld.service: Unit not found CentOS7安裝MySQL,解決Failed to start mysqld.service: Unit not found

當輸入命令 ~]# systemctl start mysql.service 要啟動MySQL資料庫是卻是這樣的提示 Failed to start mysqld.service: Unit not found 解決方法如下:   首先需要安裝mariadb-serv

啟動tomcat執行maven工程Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:

控制檯報錯資訊:   解決方案:在maven工程pom.xml中新增如下依賴 <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId&g

Redhat 6.4安裝ORACLE11R2 ,執行root.sh:“libcap.so.1:cannot open shared object file”

查詢所缺連結檔案的位置:# find / -name libcap* /lib/libcap.so.2 /lib/libcap.so.2.11 /lib64/libcap.so.2 /lib64/libcap.so.2.11 /lib64/libcap.so.1.10 建立連結檔案:# cd /lib64#

Docker安裝完成後啟動Failed to start Docker Application Container Engine

報錯如下:顯示沒有啟動    先關閉防火牆:防火牆關閉指令請看  Linux防火牆篇  方法一:更新Linux核心、yum包;刪除舊版本的docker,重新安裝、重啟伺服器、重啟服務。   解除安裝:yum remove docker-*   更新Linux核心

AIX 7安裝11.2.0.4 RAC-(主機名大寫坑)

RAC 主機名大寫報錯在我們安裝Oracle RAC的時候,要求操作系統的主機名都要小寫,8個字符以內,不要使用下劃線,不然我們在配置互信驗證的時候是無法通過的,在配置EMCC的時候也可能有問題。 AIX + 11G RAC 手動配置互信 分別在grid用戶和oracle用戶下 執行 $ ./sshsetu

centos 7 安裝Oracle Database 11g Release 2 (11.2.0.4)

network 永久 oinstall ima play arc glibc lpad tails 參考文章: http://www.cnblogs.com/lightnear/archive/2012/10/07/2714247.html http://www.cnblo