My Oracle Support Banner

OdiOSCommand Fails with File Permission Error when Writing to File on Linux Platform (Doc ID 1574105.1)

Last updated on OCTOBER 04, 2022

Applies to:

Oracle Data Integrator - Version and later
Generic Linux


On Linux platform when calling OdiOSCommand from Oracle Data Integrator (ODI) Scenario to write to the Linux file system you might get the following error:

ODI-1226: Step OdiOSCommand 1 fails after 1 attempt(s).
ODI-1241: Oracle Data Integrator tool execution fails.
Caused By: com.sunopsis.dwg.function.SnpsFunctionBaseException: ODI-30038: OS command returned 2.
at com.sunopsis.dwg.function.SnpsFunctionBase.execute(
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeOdiCommand(
at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(
at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(

While running the same operating system command from the Linux shell script directly outside ODI, it works fine which means that the operating system user is having the proper OS permission.


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
 How to calculate umasks?

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