title: JdbcTemplate insert XmlType failed on larger sizes
body: <p>I can't insert quite big XML to Oracle XMLType column using JDBC driver and Spring JdbcTemplate. </p>
  
  <p>String isn't small, so I create <code>CLOB</code> and pass it to <code>XMLTYPE(?)</code> in insert command:</p>
  
  <pre><code>String insertSql = "INSERT INTO tab (xmlcol) VALUES (XMLTYPE(?))";
  int[] types = new int[] {Types.CLOB};
  SqlLobValue xmlLob = new SqlLobValue(xmlString);
  Object[] params = new Object[] {xmlLob};
  int status = jdbcTemplate.update(insertSql, params, types);
  </code></pre>
  
  <p>Everything is OK when <code>xmlString</code> is small - for example <code>2 KB</code>, but when it's bigger (for example <code>450 KB</code>) <code>SQLException</code> exception occurs with this message:</p>
  
  <pre><code>ORA-01461: can bind a LONG value only for insert into a LONG column
  </code></pre>
  
  <p>How insert big XML document to XMLType column?</p>
  
  <p><em>Details:</em>
  I'm using Database Oracle 12.1, Spring 4.3, ojdbc7 12.1</p>