【Oracle】Oracle 11.2.0.4版本Grid無法隨機啟動
系統環境:Linux Server release 7.3
資料庫環境:11.2.0.4.0
參考 MOS 文件:
Install of Clusterware fails while running root.sh on OL7 - ohasd fails to start (文件 ID 1959008.1)
[root@b2i-order-db1 ~]# /app/grid/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= /app/grid/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: /app/grid/app/11.2.0/grid/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
報錯原因:
因為RHEL 7使用systemd而不是initd執行程式和重啟程式,而root.sh透過傳統的initd執行ohasd程式。
解決:
在RHEL 7中ohasd需要被設定為一個服務,在執行指令碼root.sh之前。
步驟:
1. 使用root使用者
[root@Oraclelinux ~]# cd /etc/systemd/system/
[root@Oraclelinux system]# touch ohasd.service
--此處oracle MOS 文件描述錯誤,應修改為 touch ohas.service
2. 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使用者執行以下命令:
[root@Oraclelinux ~]# systemctl daemon-reload
[root@Oraclelinux ~]# systemctl enable ohas.service
[root@Oraclelinux ~]# systemctl start ohas.service
4. 檢視執行狀態
[root@b2i-order-db1 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) sincesince Tue 2017-01-03 18:00:27 CST;2s 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)
狀態為failed ,此時狀態為失敗,原因是現在還沒有/etc/init.d/init.ohasd檔案。
5、執行root.sh 指令碼後狀態
● ohas.service - Oracle High Availability Services
Loaded: loaded (/usr/lib/systemd/system/ohas.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2017-01-03 18:00:27 CST;10s ago
Main PID: 79660 (init.ohasd)
CGroup: /system.slice/ohas.service
└─79660 /bin/sh /etc/init.d/init.ohasd run >/dev/null 2>&1 Type=simple
Jan 03 18:00:27 b2i-order-db1 systemd[1]: Started Oracle High Availability Services.
Jan 03 18:00:27 b2i-order-db1 systemd[1]: Starting Oracle High Availability Services...
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30327022/viewspace-2129753/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle lsnrctl 無法啟動Oracle
- ORACLE RAC 11.2.0.4 FOR RHEL6叢集無法啟動的處理Oracle
- Oracle 11.2.0.4 RAC $ORACLE_HOME/bin/oracle許可權不對導致無法啟動例項Oracle
- [ORACLE轉載-故障處理]11g的ohasd無法隨機啟動Oracle隨機
- Oracle 11.2.0.4 awr過期快照無法自動清理Oracle
- Oracle Rac crs無法啟動Oracle
- oracle偵聽無法啟動Oracle
- redhat 6.5 oracle 11.2.0.4 gi oracle asm在作業系統重啟cssd程式無法自動重啟簡析RedhatOracleASM作業系統CSS
- 11g的ohasd無法隨機啟動隨機
- Oracle監聽服務無法啟動Oracle
- Oracle更改埠後lsnrctl無法啟動Oracle
- [Oracle]設定Oracle隨Linux系統開機啟動OracleLinux
- Oracle Haip無法啟動問題學習OracleAI
- oracle 隨系統開啟,自動啟動Oracle
- Oracle Grid/RAC 11.2.0.4 on Oracle Linux 7 (Doc ID 1951613.1)OracleLinux
- 【Oracle】RAC 11.2.0.4.0 OHASD服務無法啟動Oracle
- oracle 9iAgent無法啟動解決方案Oracle
- ORACLE RAC 11.2.0.4 for RHEL6.8無法啟動之ORA000205&ORA17503&ORA01174Oracle
- Oracle 11g部分 RAC資源不隨機自啟動解決辦法Oracle隨機
- ORACLE windows驅動磁碟機代號自動變更導致oracle資料庫崩潰無法啟動OracleWindows資料庫
- Linux下Oracle隨機自動啟動指令碼設定LinuxOracle隨機指令碼
- ORACLE 11.2.0.4 for solaris更換硬體後主機時間改變導致一節點叢集服務無法啟動Oracle
- 設定ORACLE GRID CONTROL 自動啟動Oracle
- oracle 11.2.0.3.6升級故障---instance無法啟動Oracle
- 解決ORACLE無法啟動安裝的問題Oracle
- oracle開機啟動Oracle
- 配置Oracle單例項隨機啟動(11gR2)Oracle單例隨機
- oracle 11gR2 grid 叢集資源設定跟隨叢集自動啟動Oracle
- 主機名改名後oracle database control 無法啟動的問題OracleDatabase
- Linux Oracle 隨系統自動啟動LinuxOracle
- WinXP啟動無法顯示桌面,無法啟動IE,無法關機的解決方案
- 11.2.0.4 RAC CSSD服務無法啟動故障 unable to set priority to 4CSS
- Oracle日常問題處理-資料庫無法啟動Oracle資料庫
- Oracle日常問題-資料庫無法啟動(案例二)Oracle資料庫
- oracle11g RAC 啟動時無法識別ASMOracleASM
- HA異常導致oracle資料庫無法啟動Oracle資料庫
- Oracle 10g EM無法啟動的修復方法Oracle 10g
- ORACLE---Aix7.1 安裝Oracle11.2.0.4版本資料庫OracleAI資料庫