My Oracle Support Banner

OdiOSCommand Fails with "error=2, No such file or directory" when Environment Variables Are Used in the Command to Execute (Doc ID 2505291.1)

Last updated on OCTOBER 18, 2019

Applies to:

Oracle Data Integrator - Version 11.1.1.9.0 and later
Information in this document applies to any platform.

Symptoms

Failure is received when executing an Oracle Data Integrator (ODI) OdiOSCommand which is implemented to use environment variables (such as, for example $JAVA_HOME):

OdiOSCommand "-COMMAND=$JAVA_HOME/../<DIR>/<COMMAND FILE>" "-OUT_FILE= $JAVA_HOME/../<DIR>/<LOG FILE>" ...

Error message:

java.io.IOException: Cannot run program "sh" (in directory "$JAVA_HOME/../<DIR>"): error=2, No such file or directory

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


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.