title: PL/SQL: numeric or value error: character string buffer too small when running query multiple times
body: <p>I've got a webapp in Java EE, and sometimes in logs I see the following error: </p>
  
  <pre><code>`org.apache.ibatis.exceptions.PersistenceException`: 
   Error querying database.  Cause: java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character string buffer too small"
  </code></pre>
  
  <p>I turned on the statements logging and if I run the query from SQL Developer it runs successfully, without any errors.</p>
  
  <p>However, if I run the same query a few times I got this error. I guess the cause is on the DB server, any ideas?</p>