opatchauto wasn't able to run ... because 'bash' command could not be found

(Doc ID 2022797.1)

Last updated on JANUARY 10, 2017

Applies to:

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

Symptoms

opatchauto fails:

mkdir -p /grid/app/product/12.1.0.2/cfgtoollogs/opatchauto/20485724/core ; /grid/app/product/12.1.0.2/OPatch/opatch prereq CheckConflictAgainstOH -ph /grid/install_12c_rac/PSUApril2015/20485724/202
99023 -invPtrLoc /grid/app/product/12.1.0.2/oraInst.loc -oh /grid/app/product/12.1.0.2 -customLogDir /grid/app/product/12.1.0.2/cfgtoollogs/opatchauto/20485724/core

2015-06-20_20-12-23 :
Home Type of the current Oracle Home is : rac
oracle.opatchauto.gi.GIPatchingHelper.getBashCmd(GIPatchingHelper.java:541)
oracle.opatchauto.gi.GIPatchingHelper.formatBashCommand(GIPatchingHelper.java:550)
oracle.opatchauto.gi.GISystemCall.isDBInstanceUp(GISystemCall.java:972)
oracle.opatchauto.gi.RunExecutionSteps.wrapStepCommands(RunExecutionSteps.java:645)
oracle.opatchauto.gi.RunExecutionSteps.processAllSteps(RunExecutionSteps.java:217)
oracle.opatchauto.gi.GIPatching.processPatchingSteps(GIPatching.java:548)
oracle.opatchauto.gi.OPatchautoExecution.main(OPatchautoExecution.java:142)
opatchauto wasn't able to run the command "ORACLE_HOME=/oracle/app/oracle/product/12.1.0.2/dbhome_1 /oracle/app/oracle/product/12.1.0.2/dbhome_1/bin/srvctl status instance -db cdbclmpr -node racnode1" because 'bash' command could not be found on the current platform.

OR

# /applications/oracle/grd/12.1.0.2/OPatch/opatchauto apply /applications/oracle/oracle_base/product/12.1.0.2/julpsu2016/23273629 -analyze -ocmrf /home/oracle/ocm.rsp
OPATCHAUTO-72049: Script execution failed.
OPATCHAUTO-72049: Script execution failed due to Cannot run program "": error=2, No such file or directory.
OPATCHAUTO-72049: Please correct the environment and re run the opatchauto
....
opatchauto bootstrapping failed with error code 49.

 

 

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