My Oracle Support Banner

EM 13c: UPDATE_SIHA Enterprise Manager 13c Cloud Control Fleet Maintenenace Job Fails at Switch Clusterware Instance Step with Error: Insufficient privileges to execute this script. Cause: The root script was not run by the user named root with UID 0 (Doc ID 2699300.1)

Last updated on MAY 13, 2021

Applies to:

Enterprise Manager for Oracle Database - Version 13.3.2.0.0 and later
Information in this document applies to any platform.

Symptoms

In Enterprise Manager (EM) 13.3.2 Cloud Control, the Fleet UPDATE_SIHA job fails at the Switch Clusterware Instance step:

$ emcli db_software_maintenance -performOperation -name=updatesiha -purpose=UPDATE_SIHA -target_type=has  -target_list="<has_Name>"  -normal_credential=normal:SYSMAN -privilege_credential=normal:SYSMAN

Job Steps Log for Job :Switch Clusterware Instance

Switch SIHA oracle home to [<PATH>/grid/18.8.0.0] ...
LD_LIBRARY_PATH=<PATH>/grid/18.8.0.0/lib
2020-06-04 05:11:21: Executing
<PATH>/grid/18.8.0.0/crs/install/roothas.sh -postpatch -dstcrshome <PATH>/grid/18.8.0.0
2020-06-04 05:11:21: Executing cmd:
<PATH>/grid/18.8.0.0/crs/install/roothas.sh -postpatch -dstcrshome <PATH>/grid/18.8.0.0
Using configuration parameter file: <PATH>/grid/18.8.0.0/crs/install/crsconfig_params
The log of current session can be found at:

<PATH>/grid/18.8.0.0/crsdata<cluster_name>/crsconfig/hapatch_2020-06-04_12-11-22AM.log
Insufficient privileges to execute this script.Cause: The root script was not run by the user named 'root'with UID 0.
Action: Make sure the root username is 'root' with UID 0 and rerun the script as the root user.The command '<PATH>/grid/18.8.0.0/perl/bin/perl
-I<PATH>/grid/18.8.0.0/perl/lib -I<PATH>/grid/18.8.0.0/crs/install <PATH>/grid/18.8.0.0/crs/install/roothas.pl -postpatch -dstcrshome
<PATH>/grid/18.8.0.0' execution failed
Switch SIHA Oracle home completed with exit code: 2

Note: 
In the above command, a root credential was not used, but, instead a normal credential was passed.

 

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
References


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