dbTalk Databases Forums  

Convert ASA 9.0 cp850 DB to ASA 11.0 utf8 DB

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Convert ASA 9.0 cp850 DB to ASA 11.0 utf8 DB in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Thomas Hoffmann
 
Posts: n/a

Default Convert ASA 9.0 cp850 DB to ASA 11.0 utf8 DB - 10-06-2009 , 10:32 AM






When we unload our Database in dat-Files with ASA 9 or ASA
11 (Dataformat: cp850), we can't reload the exported data &
structur in a new ASA 11 UTF-8 DB. Create a new ASA 11
Database is not the Problem. Only run the Reload.sql - File
with the cp850 Encoding Data.

What is the Problem?

Reply With Quote
  #2  
Old   
Nick Elson [Sybase iAnywhere]
 
Posts: n/a

Default Re: Convert ASA 9.0 cp850 DB to ASA 11.0 utf8 DB - 10-06-2009 , 11:06 AM






First off you should only use V11 of DBUnload
for this. (v9 dbunload will not know how to prepare
for a V11 upgrade and can introduce behaviours
that are addressed in the V11 dbunload)

To make dbisql handle the different charsets
you used to use the -codepage switch. But
since that switch was deprecated you should
probably use the ENCODING parameter
in your READ statement, as in:

dbisql -c "..." READ reload.sql ENCODING CP850

http://dcx.sybase.com/1101en/sachang...s-5021262.html
[search for -codepage and link to the READ statement as well]

It seems to parse that okay but cp850 is not listed as a supported
code page, so if you find you have data conversion troubles
with that you could convert the charset using the v9 s\w
first (to utf8) and upgrade that result later with dbunload -ar
[with the v11 s\w for that last step].

<Thomas Hoffmann> wrote

Quote:
When we unload our Database in dat-Files with ASA 9 or ASA
11 (Dataformat: cp850), we can't reload the exported data &
structur in a new ASA 11 UTF-8 DB. Create a new ASA 11
Database is not the Problem. Only run the Reload.sql - File
with the cp850 Encoding Data.

What is the Problem?

Reply With Quote
  #3  
Old   
Thomas Hoffmann
 
Posts: n/a

Default Re: Convert ASA 9.0 cp850 DB to ASA 11.0 utf8 DB - 10-08-2009 , 03:45 AM



Dear Nick,

thank you for your response. We can now create a new SQL9
UTF8-DB
and unload the Data from Customer in this the new db. It
only works with the Sybase-Tool when we choose the option
"Unload and Reload in an existing DB". But we have over 1200
Customer-DB's. We will create a tool, what it make this
automatically.

What is the Console-Command by the option "Unload and Reload
in an existing DB"?

We have try:
unload -c "uid=dba;pwd=XXX;dbf=C:\custDBcp850.db" -ac
"uid=dba;pwd=sql;dbf=C:\newDButf8.db"

And we have try:
unload -c
"uid=dba;pwd=XXX;charset=cp850;dbf=C:\custDBcp850. db"
-ac
"uid=dba;pwd=sql;charset=utf8;dbf=C:\newDButf8.db"

But it doesn't works. We have Problem with some special
signs (æ).

Kind regards,

Thomas

Quote:
First off you should only use V11 of DBUnload
for this. (v9 dbunload will not know how to prepare
for a V11 upgrade and can introduce behaviours
that are addressed in the V11 dbunload)

To make dbisql handle the different charsets
you used to use the -codepage switch. But
since that switch was deprecated you should
probably use the ENCODING parameter
in your READ statement, as in:

dbisql -c "..." READ reload.sql ENCODING CP850


http://dcx.sybase.com/1101en/sachang...s-5021262.html
[search for -codepage and link to the READ statement as
well]

It seems to parse that okay but cp850 is not listed as a
supported code page, so if you find you have data
conversion troubles with that you could convert the
charset using the v9 s\w first (to utf8) and upgrade that
result later with dbunload -ar [with the v11 s\w for that
last step].

Thomas Hoffmann> wrote in message
news:4acb6323.a99.1681692777 (AT) sybase (DOT) com...
When we unload our Database in dat-Files with ASA 9 or
ASA 11 (Dataformat: cp850), we can't reload the exported
data & structur in a new ASA 11 UTF-8 DB. Create a new
ASA 11 Database is not the Problem. Only run the
Reload.sql - File with the cp850 Encoding Data.

What is the Problem?


Reply With Quote
  #4  
Old   
Nick Elson [Sybase iAnywhere]
 
Posts: n/a

Default Re: Convert ASA 9.0 cp850 DB to ASA 11.0 utf8 DB - 10-08-2009 , 09:01 AM



-ar is your dbunload switch of choice here.

<Thomas Hoffmann> wrote

Dear Nick,

thank you for your response. We can now create a new SQL9
UTF8-DB
and unload the Data from Customer in this the new db. It
only works with the Sybase-Tool when we choose the option
"Unload and Reload in an existing DB". But we have over 1200
Customer-DB's. We will create a tool, what it make this
automatically.

What is the Console-Command by the option "Unload and Reload
in an existing DB"?

We have try:
unload -c "uid=dba;pwd=XXX;dbf=C:\custDBcp850.db" -ac
"uid=dba;pwd=sql;dbf=C:\newDButf8.db"

And we have try:
unload -c
"uid=dba;pwd=XXX;charset=cp850;dbf=C:\custDBcp850. db"
-ac
"uid=dba;pwd=sql;charset=utf8;dbf=C:\newDButf8.db"

But it doesn't works. We have Problem with some special
signs (æ).

Kind regards,

Thomas

Quote:
First off you should only use V11 of DBUnload
for this. (v9 dbunload will not know how to prepare
for a V11 upgrade and can introduce behaviours
that are addressed in the V11 dbunload)

To make dbisql handle the different charsets
you used to use the -codepage switch. But
since that switch was deprecated you should
probably use the ENCODING parameter
in your READ statement, as in:

dbisql -c "..." READ reload.sql ENCODING CP850


http://dcx.sybase.com/1101en/sachang...s-5021262.html
[search for -codepage and link to the READ statement as
well]

It seems to parse that okay but cp850 is not listed as a
supported code page, so if you find you have data
conversion troubles with that you could convert the
charset using the v9 s\w first (to utf8) and upgrade that
result later with dbunload -ar [with the v11 s\w for that
last step].

Thomas Hoffmann> wrote in message
news:4acb6323.a99.1681692777 (AT) sybase (DOT) com...
When we unload our Database in dat-Files with ASA 9 or
ASA 11 (Dataformat: cp850), we can't reload the exported
data & structur in a new ASA 11 UTF-8 DB. Create a new
ASA 11 Database is not the Problem. Only run the
Reload.sql - File with the cp850 Encoding Data.

What is the Problem?


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.