Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7436195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:12:00+00:00 2026-05-29T10:12:00+00:00

I have a java.sql.Clob object which I populate from an Oracle query and then

  • 0

I have a java.sql.Clob object which I populate from an Oracle query and then I have to insert this field at DB2 table (also a Clob column). So, at my sqlj class I created a java.sql.Clob type and set the value with the result from Oracle select (also a java.sql.Clob). The length of the Clob I’m trying to insert has about 2,5Mb or dbms_lob.getlength returns 2500012.

When the SQLJ executes, it throws an Exception:

COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2] SQL0433N Value “” is too long. SQLSTATE=22001

The DB2 version I’m using is
Database server = DB2 OS/390 8.1.0

The Oracle version is
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 – 64bit

Do you have any idea why this error is thrown? I was looking for the IBM documentation and it is suppose to use java.sql.Clob object to insert into DB2 clob column…

“Input parameters for CLOB columns For IN parameters for CLOB columns,
or INOUT parameters that are used for input to CLOB columns, you can
use one of the following techniques: Use a java.sql.Clob input
variable, which is an exact match for a CLOB column:
cstmt.setClob(parmIndex, clobData); …”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:12:00+00:00Added an answer on May 29, 2026 at 10:12 am

    Increase the size of the CLOB column in the database.
    Check this link for maximum clob column size

    http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/admin/r0001029.htm

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a java.sql.ResultSet object containg data from a query that was run. How
I have a java.sql.Time field in a model that I'm trying to populate from
I have a class User with one field called birthDate which is a java.sql.Date
I have a sql exception from clojure that goes like this: java.lang.Exception: transaction rolled
I have a CLOB field in a derby table. After a simple SQL SELECT
I have a java.sql.ResultSet object that I need to update. However the result set
i have a bean with attribute of datatype java.sql.Clob. How do i set the
appfuse: Embedded error: java.sql.SQLException: Field 'x' doesn't have a default value
I have the following situation... I use CallableStatement from java.sql package. When I use
i have a question, i have a custom class which imports java.sql. ; and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.