linux 7安裝oracle 11g root.sh不成功

root.sh一直卡在:
Adding Clusterware entries to inittab
ohasd failed to start
Failed to start the Clusterware. Last 20 lines of the alert log follow:
2021-05-07 11:11:17.070:
[client(14360)]CRS-2101:The OLR was formatted using version 3.

嘗試手動啓動has,日誌報:
[ohasd(42582)]CRS-0715:Oracle High Availability Service has timed out waiting for init.ohasd to be started.

方法1:
mos中有關root.sh執行失敗的描述文檔爲:
Install of Clusterware fails while running root.sh on OL7 - ohasd fails to start (Doc ID 1959008.1)
根本緣由是linux 7+系統服務管理方式由原來的init變成了systemctl,11g r2默認使用init來管理,致使系統沒法啓動ohasd 服務.按官方的說法要打補丁patch 18370031。

方法2:
使用root執行如下語句後,從新執行root.sh,兩個節點都要操做
/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1

該方法來自網絡,重啓後可能會致使ohasd啓動失敗。

其餘方法(未驗證):
添加ohas.service服務,而後運行腳本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

其餘安裝問題:pdksh安裝包:Missing pdksh-5.2.14 package during Oracle database 11.2.0.4 install on Oracle Linux 7 (Doc ID 1962046.1)可忽略compat-libstdc++安裝包:Installation of 12.1.0.2 Oracle Database Server/Client on RHEL 7/OL7 reports pre-requisite package 'compat-libstdc++' missing. (文檔 ID 2062336.1)agent nmhserror in invoking target 'agent nmhs' of make file ins_emagent.mk while installing Oracle 11.2.0.4 on Linux (文檔 ID 2299494.1)$(MK_EMAGENT_NMECTL) 後增長 -lnnz1$(MK_EMAGENT_NMECTL) -lnnz1Requirements for Installing Oracle 11.2.0.4 RDBMS on OL7 or RHEL7 64-bit (x86-64) (Doc ID 1962100.1)Master Note of Linux OS Requirements for Database Server (Doc ID 851598.1)
相關文章
相關標籤/搜索