title: Executing a multi line statement in SQL Plus on Unix
body: <p>I am trying to write a simple cursor and run it inside the command line Oracle client on Unix, SQL Plus.  I have mostly been using single line statements and can't find a way to execute a multi line statement once I am done writing it.  Can anybody help?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>DECLARE 
     TYPE array_t IS varray(4) OF varchar2(10); 
     ARRAY array_t := array_t('foo', 'bar', 'stack', 'overflow');
  BEGIN 
     FOR i IN 1..array.count loop
         dbms_output.put_line(array(i)); 
     END loop; 
  END; 
  </code></pre>
  
  <p>Thanks</p>