Solaris 11: opatchauto Fails with Error:" /usr/ucb/whoami: not found [No such file or Directory]. Cannot run as . Please run as root user." (Doc ID 2022029.1)

Last updated on JUNE 16, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Oracle Solaris on SPARC (64-bit)

Symptoms

Executing opatachauto command on Solaris 11 as root user to apply the patch in 12.1.0.2 GI Home , failed with error: 

" /usr/ucb/whoami: not found [No such file or Directory]. Cannot run as . Please run as root user."


The opatch utility version is 12.1.0.7

opatch is looking for /usr/ucb/whoami, but this file has been moved to /usr/bin/whoami on Solaris 11
 
  

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