title: How to execute bash/shell script in Linux from an Oracle DBMS_Scheduler?
body: <p>I have a Linux Oracle Server. The database is generating CSV files with a custom stored procedure, now at the end of this procedure. I want to execute a bash/shell script in linux to push this files to Amazon S3 Bucket.</p>
  
  <p>I am getting errors trying to schedule the process in oracle:</p>
  
  <p>EXTERNAL_LOG_ID="job_2369137_852690",
  ORA-27369: job of type EXECUTABLE failed with exit code: Argument list too long</p>
  
  <p>Using DBM_SCHEDULER to create a JOB type Sript, External</p>
  
  <pre><code>#!/bin/bash
  echo hello world
  
  DBMS_SCHEDULER.CREATE_JOB (
  job_name =&gt; '"ODSMGR"."TEST_JOB"',
  job_type =&gt; 'EXTERNAL_SCRIPT',
  job_action =&gt; '#!/bin/bash
  echo hello world',
  number_of_arguments =&gt; 0,
  start_date =&gt; NULL,
  repeat_interval =&gt; NULL,
  end_date =&gt; NULL,
  enabled =&gt; FALSE,
  auto_drop =&gt; FALSE,
  comments =&gt; '');
  </code></pre>