Executing OS Commands Fail with 512 Error when using Multi-threaded Extproc Agent (Doc ID 1338515.1)

Last updated on JULY 05, 2017

Applies to:

Oracle Net Services - Version: 10.2.0.5 to 11.2.0.2 - Release: 10.2 to 11.2
PL/SQL - Version: 10.2.0.5 to 11.2.0.2   [Release: 10.2 to 11.2]
Information in this document applies to any platform.

Symptoms

Executing OS Commands using Multi-threaded Extproc Agent fails with error
code 512 .

Starting MTA agent on the Unix server(telnet session) with the following command :

>agtctl startup extproc MTAagent_1

And everything was working fine up to some point.

Return code of 512 is intermittently returned when executing OS command, 'ls'.

After first occurrence the error occurs until Multi-threaded Extproc Agent is restarted.

In this case error seems to only reproduce for 'ls' command and  might occur
with any OS command execution.

Also noticed that if instead of a simple "ls /etc/oratab", if
"ls /etc/oratab >> dummy.out" (redirect the output of the ls command), the error doesn't occur.

Everything is working correctly as long as the Unix session(telnet) that started the MTA agent is up and running.

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