opatchauto Wasn't Able to Run ... Because 'bash' Command Could Not Be Found
(Doc ID 2022797.1)
Last updated on AUGUST 15, 2023
Applies to:
Oracle Database Exadata Express Cloud Service - Version N/A and laterOracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Information in this document applies to any platform.
Symptoms
opatchauto fails:
mkdir -p <GI_HOME>/cfgtoollogs/opatchauto/20485724/core ; <GI_HOME>/OPatch/opatch prereq CheckConflictAgainstOH -ph <PATCH_LOCATION>/202
99023 -invPtrLoc <GI_HOME>/oraInst.loc -oh <GI_HOME> -customLogDir <GI_HOME>/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_HOME>/bin/srvctl status instance -db <DBNAME> -node <HOSTNAME>" because 'bash' command could not be found on the current platform.
OR
# <GI_HOME>/OPatch/opatchauto apply <PATCH_LOCATION>/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
....
OR
opatchauto bootstrapping failed with error code 49.
opatchauto apply <unzipped patch location> -analyze
OPatchauto session is initiated at Tue Apr 28 21:26:05 2020
OPATCHAUTO-72049: Script execution failed.
OPATCHAUTO-72049: Script execution failed due to {0}.
OPATCHAUTO-72049: Please correct the environment and rerun opatchauto.
99023 -invPtrLoc <GI_HOME>/oraInst.loc -oh <GI_HOME> -customLogDir <GI_HOME>/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_HOME>/bin/srvctl status instance -db <DBNAME> -node <HOSTNAME>" because 'bash' command could not be found on the current platform.
OR
# <GI_HOME>/OPatch/opatchauto apply <PATCH_LOCATION>/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
....
OR
opatchauto bootstrapping failed with error code 49.
opatchauto apply <unzipped patch location> -analyze
OPatchauto session is initiated at Tue Apr 28 21:26:05 2020
OPATCHAUTO-72049: Script execution failed.
OPATCHAUTO-72049: Script execution failed due to {0}.
OPATCHAUTO-72049: Please correct the environment and rerun opatchauto.
Changes
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 |
Changes |
Cause |
Solution |
References |