title: Get a list of values from PLSQL procedure
body: <p>I'm newbie in Java and PLSQL. I've build this procedure in PLSQL:</p>
  
  <pre><code>    PROCEDURE getLogs (
      p_idcontract            IN          NUMBER,
      p_iduser                IN          NUMBER,
      o_logs                  OUT         VARCHAR2
    )
    IS   
    BEGIN
        SELECT logData INTO o_logs
        FROM SERVICELOG 
        WHERE IDCONTRACT= p_idcontract 
        AND IDUSER= p_iduser;
  
    END getLogs;
  </code></pre>
  
  <p>If script detect several rows, return to the Java class who launch it this message: </p>
  
  <blockquote>
    <p>ORA-01422: exact fetch returns more than requested number of rows</p>
  </blockquote>
  
  <p>Please, how I can return an hashmap or similar, ready to be outputted to Java? Thanks.</p>