Solved

Oracle 10 EE8MSWIN1250 character set export to UTF-8

Posted on 2009-06-30
6
3,039 Views
Last Modified: 2013-12-19
Hello,

if Oracle database which was created with EE8MSWIN1250, is it possible to export the data as UTF-8 encoded (AL32UTF8).

If not, when data is exported it is EE8MSWIN1250 format. Can I import this into a database created with AL32UTF8 character set. If so what do I have do?

Thanks in advance.
0
Comment
Question by:chuntse
  • 3
  • 3
6 Comments
 
LVL 40

Accepted Solution

by:
mrjoltcola earned 500 total points
ID: 24745008
Yes, AL32UTF8 will store characters from 1 to 4 bytes wide.

You need to set NLS_LANG=AMERICAN_AMERICA.AL32UTF8 in your shell environment before doing the export and Oracle client will translate.

Set the same in your import environment.

Oracle will translate for you as long as the DB character set is capable of encoding what you give it. In this case AL32UTF8 is a UNICODE set that can pretty much store anything.
0
 

Author Comment

by:chuntse
ID: 24745101
Thanks.

Just to clarity, if I set shell environment to NLS_LANG=AMERICAN_AMERICA.AL32UTF8
Then when I export the data (which is stored in database as EE8MSWIN1250), oracle client will encoded the exported data to AL32UTF8?
0
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24745218
Yes. Absolutely.

Then when you do the import, Oracle will re-translate to the destination database, if that database character set is compatible.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24745228
Also pay attention to the export log/output it will report which character set it is using.
0
 

Author Closing Comment

by:chuntse
ID: 31598307
Excellent! Thanks
0
 

Author Comment

by:chuntse
ID: 24745811
If I have stored procedure that triggers the export of data does the NLS_LANG have an effect when the stored procedure is started from Oracle SQL developer?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
1 FROM DUAL wont work with additional columns ?? 4 56
Select and Insert Query running slow 4 58
PL/SQL Two changes 7 41
SQL query to select row with MAX date 7 40
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question