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 > Create new database from Image

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-06-04, 20:54
thanhtung2003 thanhtung2003 is offline
Registered User
 
Join Date: Jan 2004
Posts: 50
Create new database from Image

Hello all,

I have a following problem.

I create a backup image (online and offline) so that i would like to create a new database from this image.

But there is a problem :'SQL2548N Database codepage "1208" indicated in the backup image differs from that of the current on-disk database codepage "1252". The Restore operation has failed'
I tried to use db2set db2codepage =1252 but there is not result.

Thanhks
Reply With Quote
  #2 (permalink)  
Old 01-06-04, 20:56
thanhtung2003 thanhtung2003 is offline
Registered User
 
Join Date: Jan 2004
Posts: 50
Re: Create new database from Image

Quote:
Originally posted by thanhtung2003
Hello all,

I have a following problem.

I create a backup image (online and offline) so that i would like to create a new database from this image.

But there is a problem :'SQL2548N Database codepage "1208" indicated in the backup image differs from that of the current on-disk database codepage "1252". The Restore operation has failed'
I tried to use db2set db2codepage =1252 but there is not result.

Thanhks
Reply With Quote
  #3 (permalink)  
Old 01-07-04, 04:22
pushp pushp is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 30
Hi,

There are two ways to achieve the task

1 set
db2set db2codepage =1208
db2stop
db2start
Than restore the db.

2.
2a)create a database with same name as of the backup image with the codeset of 1208.
2b) run the restore command
restore db <dbname> into <dbname which you had created>

If the container path are different than you should go for the redirect option of the restore command.

I believe this will solve your problem


Cheers,
Pushp
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