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

后端 未结 3 1769
时光说笑
时光说笑 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:22

    PL/SQL has a hard limit of 32k chars if you send the data as a character string. If the parameter is a CLOB you can first create a temp LOB, fill it up with data and then call your PL/SQL procedure with the CLOB object.

提交回复
热议问题