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 > Restore DB with different codepage

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-03-03, 11:47
jodie jodie is offline
Registered User
 
Join Date: Aug 2003
Location: Ohio
Posts: 38
Question Restore DB with different codepage

Hi!
We are trying to set up a new machine, and I need to restore a DB onto this machine from the old one. On the old machine, all of the databases are codepage 819, except the one I need which is 1208. On the new machine, all of the current dbs are codepage 819.

I need to restore the db that is codepage 1208, but get the error:
"SQL2548N Database codepage "1208" indicated in the backup image differs from that of the current on-disk database codepage "819". The Restore operation has failed."

How do I get this database to restore? Ideally, I would like it to be codepage 819, but I can live with keeping it codepage 1208. Any help would be appreciated.

Thanks in advance,
Jodie
Reply With Quote
  #2 (permalink)  
Old 12-03-03, 14:29
GertK GertK is offline
Registered User
 
Join Date: Nov 2003
Location: Netherlands
Posts: 96
Re: Restore DB with different codepage

Quote:
Originally posted by jodie
Hi!
We are trying to set up a new machine, and I need to restore a DB onto this machine from the old one. On the old machine, all of the databases are codepage 819, except the one I need which is 1208. On the new machine, all of the current dbs are codepage 819.

I need to restore the db that is codepage 1208, but get the error:
"SQL2548N Database codepage "1208" indicated in the backup image differs from that of the current on-disk database codepage "819". The Restore operation has failed."

How do I get this database to restore? Ideally, I would like it to be codepage 819, but I can live with keeping it codepage 1208. Any help would be appreciated.

Thanks in advance,
Jodie
AFAIK the only way is to use 'create database ...' command with the needed options to create a new database with the same name and codepage 1208. After that you can restore the original database replacing the 'new' database.

You also might want to take a look at the db2look and db2move utilities if you want a new database with codepage 819.

Hope this helps.
Reply With Quote
  #3 (permalink)  
Old 12-04-03, 12:54
jodie jodie is offline
Registered User
 
Join Date: Aug 2003
Location: Ohio
Posts: 38
Thanks!

I think that's what we are planning on doing - creating a new db, and restoring the old one overtop.

Thanks again
Jodie
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