Loading Japanese Characters

Posted on 2006-04-06
Last Modified: 2008-02-01

I am attempting populate a DB2 table with data (containing Japanese characters) from an Oracle table using Informatica.  The Oracle and DB2 system are properly configured to use UTF-8 (as is Informatica); I am capable of  viewing the Japanese characters in each of the Databases as well as in Informatica. Now, when I attempting to populate a field in a DB2 table with the contents of a field in the Oracle table with the exact same size:

Oracle varchar2(128) to DB2 varchar(128)

I am recieving the following error:

[IBM][CLI Driver] SQL0302N  The value of a host variable in the EXECUTE or OPEN statement is too large for its corresponding use.  SQLSTATE=22001
 sqlstate = 22001

What I did notice about the data causing these errors was that the length of the (Japanese) character string was always greater than 64 characters. It is my understanding that Japanese characters require double the amount of space versus standard 7bit ASCII. As a temporary solution I have had my DBA double the size of the field, however I would like to know a reason as to why this happening. I would be curious to see what some of you guys have to say about this issue. Thanks.
Question by:socrates73
    1 Comment
    LVL 7

    Accepted Solution

    use vargraphic

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
    Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now