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 > How to migrate database from 1252 code page to UTF-8

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-02-04, 04:50
hanyheggy hanyheggy is offline
Registered User
 
Join Date: Jan 2004
Location: Egypt
Posts: 61
How to migrate database from 1252 code page to UTF-8

hi all,

just wonder is there is any way to migrate a database from any code page (e.g. 1252) to another code page (UTF-8), i am using DB2 7.2.5 under AIX 4.3.3

in oracle we can do this by exporting the database using certain NLS_LANG directive, but i donot know how to do this in DB2

any ideas ?
__________________
hany heggy,
IBM certified Professional, AIX system support
www.melodyhits.tv
Reply With Quote
  #2 (permalink)  
Old 03-02-04, 06:55
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: How to migrate database from 1252 code page to UTF-8

manually create a new database in the correct codepage and then preform a restore database to populate it.

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 03-02-04, 08:00
hanyheggy hanyheggy is offline
Registered User
 
Join Date: Jan 2004
Location: Egypt
Posts: 61
Re: How to migrate database from 1252 code page to UTF-8

Quote:
Originally posted by sathyaram_s
manually create a new database in the correct codepage and then preform a restore database to populate it.

Cheers
Sathyaram
just wonder if i restore DB (with the old codepage) to exsisting new DB ( with the new code page), the new one will be replaced ? and then the old codepage will be used again ?
__________________
hany heggy,
IBM certified Professional, AIX system support
www.melodyhits.tv
Reply With Quote
  #4 (permalink)  
Old 03-02-04, 08:31
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: How to migrate database from 1252 code page to UTF-8

As far as I understand, if a database already exists, only the data is replaced and all other characteristics (like codepage, db cfg ) are retained ....

If the db is not present, it is created

Cheers
Sathyaram


Quote:
Originally posted by hanyheggy
just wonder if i restore DB (with the old codepage) to exsisting new DB ( with the new code page), the new one will be replaced ? and then the old codepage will be used again ?
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 03-02-04, 08:47
hanyheggy hanyheggy is offline
Registered User
 
Join Date: Jan 2004
Location: Egypt
Posts: 61
Re: How to migrate database from 1252 code page to UTF-8

Quote:
Originally posted by sathyaram_s
As far as I understand, if a database already exists, only the data is replaced and all other characteristics (like codepage, db cfg ) are retained ....

If the db is not present, it is created

Cheers
Sathyaram
ty for yr clrification, i never done that before, so i was just asking
__________________
hany heggy,
IBM certified Professional, AIX system support
www.melodyhits.tv
Reply With Quote
  #6 (permalink)  
Old 03-02-04, 09:28
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: How to migrate database from 1252 code page to UTF-8

Quote:
Originally posted by sathyaram_s
manually create a new database in the correct codepage and then preform a restore database to populate it.

Cheers
Sathyaram
I don't think that would work. I believe you can only restore to a database with the same code page with which the backup has been created. The only choice would be to export & load data (or db2move).
Reply With Quote
  #7 (permalink)  
Old 03-02-04, 23:14
hanyheggy hanyheggy is offline
Registered User
 
Join Date: Jan 2004
Location: Egypt
Posts: 61
Re: How to migrate database from 1252 code page to UTF-8

Quote:
Originally posted by n_i
I don't think that would work. I believe you can only restore to a database with the same code page with which the backup has been created. The only choice would be to export & load data (or db2move).
i will try that today and findout what exactly is going on
__________________
hany heggy,
IBM certified Professional, AIX system support
www.melodyhits.tv
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