在7.3上面安装11g的gi遇到bug Install of Clusterware fails while running root.sh on OL7 - ohasd fails to start (文档 ID 1959008.1)
在7.3上面安装11g的gi遇到bug Install of Clusterware fails while running root.sh on OL7 - ohasd fails to start (文档 ID 1959008.1)
在执行root.sh的时候报错,ohasd启动失败:
$GI_ HOME/cfgtoollogs/crsconfig/rootcrs*查看相关的配置日志消息。
2018-01-16 08:56:18: Removing "/etc/rc.d/rc3.d/S96ohasd"
2018-01-16 08:56:18: Creating a link "/etc/rc.d/rc3.d/S96ohasd" pointing to /etc/init.d/ohasd
2018-01-16 08:56:18: Removing "/etc/rc.d/rc5.d/S96ohasd"
2018-01-16 08:56:18: Creating a link "/etc/rc.d/rc5.d/S96ohasd" pointing to /etc/init.d/ohasd
2018-01-16 08:56:18: Removing "/etc/rc.d/rc0.d/K15ohasd"
2018-01-16 08:56:18: Creating a link "/etc/rc.d/rc0.d/K15ohasd" pointing to /etc/init.d/ohasd
2018-01-16 08:56:18: Removing "/etc/rc.d/rc1.d/K15ohasd"
2018-01-16 08:56:18: Creating a link "/etc/rc.d/rc1.d/K15ohasd" pointing to /etc/init.d/ohasd
2018-01-16 08:56:18: Removing "/etc/rc.d/rc2.d/K15ohasd"
2018-01-16 08:56:18: Creating a link "/etc/rc.d/rc2.d/K15ohasd" pointing to /etc/init.d/ohasd
2018-01-16 08:56:18: Removing "/etc/rc.d/rc4.d/K15ohasd"
2018-01-16 08:56:18: Creating a link "/etc/rc.d/rc4.d/K15ohasd" pointing to /etc/init.d/ohasd
2018-01-16 08:56:18: Removing "/etc/rc.d/rc6.d/K15ohasd"
2018-01-16 08:56:18: Creating a link "/etc/rc.d/rc6.d/K15ohasd" pointing to /etc/init.d/ohasd
2018-01-16 08:56:18: The file ohasd has been successfully linked to the RC directories
2018-01-16 08:56:18: Executing cmd: /bin/rpm -q sles-release
2018-01-16 08:56:18: Command output:
> package sles-release is not installed
>End Command output
……………
> CRS-4124: Oracle High Availability Services startup failed.
> CRS-4000: Command Start failed, or completed with errors.
>End Command output
原因:OL7 开始使用了systemd,所以需要打patch 18370031来解决这个问题
1.下载最新的patch
[grid@lxtepoods1 OPatch]$ ./opatch version
OPatch Version: 11.2.0.3.17
OPatch succeeded.
[grid@lxtepoods1 OPatch]$
2.安装gi software only
[root@lxtepoods1 u01]# /u01/app/11.2.0.4/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.4/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.
To configure Grid Infrastructure for a Stand-Alone Server run the following command as the root user:
/u01/app/11.2.0.4/grid/perl/bin/perl -I/u01/app/11.2.0.4/grid/perl/lib -I/u01/app/11.2.0.4/grid/crs/install /u01/app/11.2.0.4/grid/crs/install/roothas.pl
To configure Grid Infrastructure for a Cluster execute the following command:
/u01/app/11.2.0.4/grid/crs/config/config.sh
This command launches the Grid Infrastructure Configuration Wizard. The wizard also supports silent operation, and the parameters can be passed through the response file that is available in the installation media.
[root@lxtepoods1 u01]#
3.本地应用补丁
[grid@lxtepoods1 ~]$ /u01/app/11.2.0.4/grid/OPatch/opatch napply -oh /u01/app/11.2.0.4/grid -local /u01/software/patch/18370031/
Oracle Interim Patch Installer version 11.2.0.3.17
Copyright (c) 2018, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/11.2.0.4/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/11.2.0.4/grid/oraInst.loc
OPatch version : 11.2.0.3.17
OUI version : 11.2.0.4.0
Log file location : /u01/app/11.2.0.4/grid/cfgtoollogs/opatch/opatch2018-01-16_14-08-45PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 18370031
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
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
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/11.2.0.4/grid')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '18370031' to OH '/u01/app/11.2.0.4/grid'
Patching component oracle.crs, 11.2.0.4.0...
Patch 18370031 successfully applied.
Log file location: /u01/app/11.2.0.4/grid/cfgtoollogs/opatch/opatch2018-01-16_14-08-45PM_1.log
OPatch succeeded.
[grid@lxtepoods1 ~]$
4.执行脚本,配置单实例asm
[root@lxtepoods1 u01]# /u01/app/11.2.0.4/grid/perl/bin/perl -I/u01/app/11.2.0.4/grid/perl/lib -I/u01/app/11.2.0.4/grid/crs/install /u01/app/11.2.0.4/grid/crs/install/roothas.pl
Using configuration parameter file: /u01/app/11.2.0.4/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node lxtepoods1 successfully pinned.
Adding Clusterware entries to oracle-ohasd.service
lxtepoods1 2018/01/16 14:10:08 /u01/app/11.2.0.4/grid/cdata/lxtepoods1/backup_20180116_141008.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server
[root@lxtepoods1 u01]#
浙公网安备 33010602011771号