overcome 32k limit when inserting oracle clob IN parameter using spring StoredProcedure

后端 未结 3 1780
时光说笑
时光说笑 2021-01-27 06:03

Environment: oracle 11g, spring-jdbc-3.2.2-RELEASE.jar, JDK 1.7, Oracle UCP driver.

I have a stored procedure which insert record to a table with CLOB column. The SP has

3条回答
  •  星月不相逢
    2021-01-27 06:29

    It depend on your version of Oracle:

    • < 10.1: you can put the SetBigStringTryClob property to true in your DriverManager.
    • >= 10.1: you can use OraclePreparedStatement.setStringForClob doc here.

    Also, this article may help you.

提交回复
热议问题