Hello, I am running DB2 UDB 8.2 on AIX 5.3. I am running some tests
on converting several tables on an existing database to Unicode. The
database will not be converted to unicode...just this table set.
I have successfully set this up and ran some tests using Japanese
characters. The test seemed to work fine. We found during our test
that we needed to install some AIX UTF-8 software for the web-based
user interface to work properly. The following was installed on to
the machine:
bos.loc.com.utf 5.3.0.30 Common Locale Support - UTF-8
bos.loc.utf.EN_US 5.3.0.0 Base System Locale UTF Code
bos.loc.utf.JA_JP 5.3.0.0 Base System Locale UTF Code
After the install we continued our testing to find the Japanese
characters were no longer being inserted into the tables correctly.
The problem seems to occur when the INSERT statement is executed using
EXECUTE IMMEDIATE:
"INSERT INTO TTABLE
(col1,col2,charcol3,col4,col5,col6,col7,col8,col9, col10,col11,col12,col13,charcol14,col15,col16,col1 7)
VALUES
(100,NULL,'Ï€^┴»π^â”´^█π^â”´^â•*Ï€^┬^╧' ,'2007-07-30-21.53.16.000000','2007-07-30-21.53.16.000000',
0,0,2,0,NULL,NULL,NULL,998,'SOMETHING,π^┴^╧π ^┬^╔π^┴^┘',0,NULL,0,NULL)"
The two charcols that contain the data that looks like junk is the un-
emulated Japanese strings (so ignore the junk and pretend it is
real!). That string is executed in this statement string:
EXEC SQL EXECUTE IMMEDIATE :s1;
But, when you look in the table the Japan characters look like blanks
(there is nothing there but it is not null). In the second string you
can see the "SOMETHING," but not the rest of the string that contain
the Japanese characters. As stated above, this worked prior to
installing the utf files.
I can also insert this record from the command line (just as you see
it above) and it works but it just doesnt seem to work any longer
with the EXECUTE IMMEDIATE.
Does anyone know what I may be missing? It seems there is an issue
now with formatting or translating during the execute.
Your help is appreciated.