My Oracle Support Banner

root.sh fails while starting ohasd in Oracle Restart 12.1.0.2 Grid Installation (Doc ID 2548031.1)

Last updated on JANUARY 03, 2020

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Information in this document applies to any platform.

Symptoms

root.sh fails while starting ohasd in Oracle Restart 12.1.0.2 Grid Installation with below error

roothas_2019-05-28_08-06-31AM.log

========================
2019-05-28 08:06:38: Executing cmd: <GI_HOME>/bin/crsctl start has
2019-05-28 08:08:38: Command output:
> CRS-4124: Oracle High Availability Services startup failed.
> CRS-4000: Command Start failed, or completed with errors.
>End Command output
2019-05-28 08:08:38: Executing /etc/init.d/ohasd install
2019-05-28 08:08:38: Executing cmd: /etc/init.d/ohasd install
2019-05-28 08:08:38: Command output:
> /usr/bin/expr: syntax error
> /etc/init.d/ohasd: line 31: [: 25: unary operator expected
>End Command output
2019-05-28 08:08:38: Executing cmd: <GI_HOME>/bin/clsecho -p has -f clsrsc -m 214 "ohasd"
2019-05-28 08:08:38: Command output:
> CLSRSC-214: Failed to start the resource 'ohasd'
>End Command output
2019-05-28 08:08:38: Executing cmd: <GI_HOME>/bin/clsecho -p has -f clsrsc -m 214 "ohasd"
2019-05-28 08:08:39: Command output:
> CLSRSC-214: Failed to start the resource 'ohasd'
>End Command output
2019-05-28 08:08:39: CLSRSC-214: Failed to start the resource 'ohasd'
2019-05-28 08:08:39: ohasd failed to start
2019-05-28 08:08:39: Alert log is <GI_HOME>/log/10/alert10.log
2019-05-28 08:08:39: Failed to start service 'ohasd'
2019-05-28 08:08:39: Executing cmd: <GI_HOME>/bin/clsecho -p has -f clsrsc -m 318
2019-05-28 08:08:39: Command output:
> CLSRSC-318: Failed to start Oracle OHASD service
>End Command output
2019-05-28 08:08:39: Executing cmd: <GI_HOME>/bin/clsecho -p has -f clsrsc -m 318
2019-05-28 08:08:39: Command output:
> CLSRSC-318: Failed to start Oracle OHASD service
>End Command output
2019-05-28 08:08:39: CLSRSC-318: Failed to start Oracle OHASD service

There are no errors reported in ohasd log.

/etc/init.d/ohasd file check the hostname and returns the error

2019-05-28 08:08:38: Executing cmd: /etc/init.d/ohasd install
2019-05-28 08:08:38: Command output:
> /usr/bin/expr: syntax error
> /etc/init.d/ohasd: line 31: [: 25: unary operator expected

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.