- Executing multi-line statements
Apparently, Oracle’s JDBC driver doesn’t like CR/LF endings. LF itself is ok. So this was needed:
sql = sql.replaceAll("\r", "");
See also: http://forum.java.sun.com/thread.jspa?threadID=669282&messageID=3914430 http://groups.google.com/group/comp.lang.java.databases/browse_frm/thread/ea6e14e596db1546/83f97ffd119eedb2 - “Due to a restriction in the OCI layer, the JDBC drivers do not support the passing of Boolean parameters to PL/SQL stored procedures…”