Ora-22295 不能绑定超过4k的变量到LONG上。
经过查询资料,发现这个限制在最新版本的jdbc驱动中也没有实现。10.2.0.1
* Binding more than 8000 bytes data to a table containing LONG
columns in one call of PreparedStatement.executeUpdate() may
result in an ORA-22295 error.
在最新版本的oracle中,仍然有这种限制
就是说,不能给Long或者Clob对象绑定超过8000byte的变量
也就是说不能超过4k
因此对于Long和Lob类型,必须采用stream的方式来写入和读取