Error While Applying the Patch using opatchauto : /bin/bash: ./bin/srvctl: No such file or directory (Doc ID 2074514.1)

Last updated on DECEMBER 18, 2015

Applies to:

Oracle Universal Installer - Version 12.1.0.2 and later
Information in this document applies to any platform.
@3-11642156771

Symptoms

 You may receive the following error while applying the patch using opatchauto


COMMAND EXECUTION FAILURE :

ERROR:
/bin/bash: ./bin/srvctl: No such file or directory

 

 

opatch_gi_<timestamp>_deploy.debug

 

Executing command as oracle :
/bin/bash -c 'ORACLE_HOME=/oracle/product/db/12.1.0.2 ./bin/srvctl stop home -o /oracle/product/db/12.1.0.2 -n <INS_NAME> -f -stopoption TRANSACTIONAL -s /oracle/product/db/12.1.0.2/cfgtoollogs/oplan/statfile/<INS_NAME>/OracleHome-59874748-c66a-4935-9deb-119ca5532a03_<INS_NAME>.stat'
2015-11-02_12-49-23 :

COMMAND EXECUTION FAILURE :

ERROR:
/bin/bash: ./bin/srvctl: No such file or directory

2015-11-02_12-49-23 :
Failed to run this command :
/bin/bash -c 'ORACLE_HOME=/oracle/product/db/12.1.0.2 ./bin/srvctl stop home -o /oracle/product/db/12.1.0.2 -n <INS_NAME> -f -stopoption TRANSACTIONAL -s /oracle/product/db/12.1.0.2/cfgtoollogs/oplan/statfile/<INS_NAME>/OracleHome-59874748-c66a-4935-9deb-119ca5532a03_<INS_NAME>.stat'
oracle.opatchauto.gi.RunExecutionSteps.runGenericShellCommands(RunExecutionSteps.java:919)
oracle.opatchauto.gi.RunExecutionSteps.processAllSteps(RunExecutionSteps.java:223)
oracle.opatchauto.gi.GIPatching.processPatchingSteps(GIPatching.java:550)
oracle.opatchauto.gi.OPatchautoExecution.main(OPatchautoExecution.java:145)
Command "/bin/bash -c 'ORACLE_HOME=/oracle/product/db/12.1.0.2 ./bin/srvctl stop home -o /oracle/product/db/12.1.0.2 -n<INS_NAME> -f -stopoption TRANSACTIONAL -s /oracle/product/db/12.1.0.2/cfgtoollogs/oplan/statfile/<INS_NAME>/OracleHome-59874748-c66a-4935-9deb-119ca5532a03_<INS_NAME>.stat'" execution failed:
/bin/bash: ./bin/srvctl: No such file or directory

  

 

 

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