Opatchauto -analyze fails with the error: "The user is root. OPatch cannot continue if the user is root.]"

(Doc ID 2356750.1)

Last updated on FEBRUARY 27, 2018

Applies to:

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

Symptoms

 

opatchauto -analyze execution as root user fails with the error "The user is root. OPatch cannot continue if the user is root"

ERROR
-----------------------

# /u01/app/12.2.0/grid/OPatch/opatchauto apply <unzipped_patch_location>/27100009 -analyze

==Following patches FAILED in analysis for apply:

Patch: <unzipped_patch_location>/27100009/27335416
Log: /u01/app/12.2.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2018-01-29_12-14-31PM_1.log
Reason: Failed during Analysis: CheckNApplyReport Failed, [ Prerequisite Status: FAILED, Prerequisite output:
The details are:
The user is root. OPatch cannot continue if the user is root.] <<<<<---------------------------------

 From opatch auto log for the above failure:

-----------------------------------------------

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms