title: How to run sql script in an anonymous block?
body: <p>Is it possible to run an sql script in an anonymous block? </p>
  
  <p>I would like to be able to conditionally run an sql script.</p>
  
  <pre><code>#!/bin/bash
  .
  .
  .
  `sqlplus -S /nolog &gt; log3 &lt;&lt; EOFSQL
  connect ${userName}/${userPassword}@${urlDataBase};
  set serveroutput on
  set pagesize 0
  set feedback off
  set verify off
  set heading off
  set wrap off
  set linesize 150
  DECLARE
  lv_error VARCHAR2(100):='';
  BEGIN
  SELECT TRIM(STATUS) INTO lv_error FROM tab1
  WHERE ...
  
  IF lv_error NOT LIKE 'ERROR%' THEN
  START $(pwd)/script.sql;
  /
  
  END IF;
  END;
  /
  </code></pre>