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 > Cannot modify the DB2CODEPAGE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-25-03, 07:17
Lin Lin is offline
Registered User
 
Join Date: Dec 2003
Posts: 4
Cannot modify the DB2CODEPAGE

Hi all,

I have a problem when I tried to modify the DB2CODEPAGE. That is the details.

When I finished inputing the following command, it did'n't report any errors.

DB2SET DB2CODEPAGE=819
DB2 TERMINATE

The DB2CODEPAGE before modifying is 1386, and when I finished inputting that comands. nothing has been changed. The CODEPAGE is still 1386. I have tried to restart all DB2 service and even I have restarted the server, nothing was changed. Please who can tell me what's the problem?

Thanks

Lin
Reply With Quote
  #2 (permalink)  
Old 12-25-03, 13:05
dollar489 dollar489 is offline
Registered User
 
Join Date: Sep 2002
Posts: 456
Re: Cannot modify the DB2CODEPAGE

The DB2CODEPAGE parameter sets the default value of database codepage parameter i.e. all the databases created after setting this value will have this codepage unless explicitly defined otherwise. So your existing database codepage value will still be the old ones.

Only way you can change the value for existing database is to create another database with codepage value you want and copy the structure and data from old database using db2look and export/import(load) commands etc.

HTH

dollar



Quote:
Originally posted by Lin
Hi all,

I have a problem when I tried to modify the DB2CODEPAGE. That is the details.

When I finished inputing the following command, it did'n't report any errors.

DB2SET DB2CODEPAGE=819
DB2 TERMINATE

The DB2CODEPAGE before modifying is 1386, and when I finished inputting that comands. nothing has been changed. The CODEPAGE is still 1386. I have tried to restart all DB2 service and even I have restarted the server, nothing was changed. Please who can tell me what's the problem?

Thanks

Lin
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