If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > export and code page question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-26-05, 07:47
naoned naoned is offline
Registered User
 
Join Date: Jun 2005
Posts: 17
export and code page question

hi,

db2 v8 FP9

i have a question with export and code page.


Example, my database is in code page 1208 (utf-8) and aix in code page 819

db2 "export to emp.del of del select * from employe"
==> in this case the file exported will be in code page 819 (aix's code page)

db2 "export to emp2.del of del modified by CODEPAGE=1208 select * from employe"
==> with the modifier codepage=1208, the file exported will be in code page 1208

In this ibm's link
http://www-128.ibm.com/developerwork...u/0210lau.html

In the section
Code page considerations when using EXPORT

I found this sentence :
If the CODEPAGE modifier is present in the EXPORT command, DB2 will convert the data from the database code page to the current system code page, and then from the current system code page to the code page specified by the CODEPAGE modifier.

So in my last example, if i understand this sentence, db2 ll concert the data from the db code page (1208) to current sys code page (819) and after from the current sys code page (819) to the code specified (1208).
So during my first conversion (1208 to 819), i can lose some characters, no ?
Reply With Quote
  #2 (permalink)  
Old 10-26-05, 12:01
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
ccsid

we had a similar problem on solaris and exporting lob data that was not correctly translated.
we had to set the environment variable LC_ALL=en_US.UTF-8
I don't know if this applies to aix also but check if any other setting could help for aix.
on solaris it has todo with the command : locale -a that will display the available character sets for translation.
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On