Solved

Change a CHARACTER SET from US7ASCII  to WE8ISO8859P1

Posted on 2001-07-12
4
4,330 Views
Last Modified: 2012-06-27
Can I use the EXPORT FULL / IMPORT utility to change the default database character set from US7ASCII  to WE8ISO8859P1?  (Using Oracle 8i on Solaris)

What are the steps required to accomplish this task?

Thanks in advance,  
Andre
0
Comment
Question by:aserrano31
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 2

Expert Comment

by:bego
ID: 6280495
If I understand it correctly, you need to change character set for the database. The complete instructions you can find in Oracle Document: Oracle8i National Language Support Guide (you must register to Oracle Technet to get access to it, then search for the phrase "national language support guide") or follow the link

http://technet.oracle.com/doc/oracle8i_816/server.816/a76966/preface.htm

There is a bunch of documents on how to configure the server / client.

You'd probably need that ALTER DATABASE SET CHARACTER_SET= blah stuff. Note that this is not a good way to go, as the performance of your database is ligely to get worse. If you can recreate your database, do it instead.

You should also configure your clients - see the docs.

HTH,

bego
0
 
LVL 3

Expert Comment

by:UsamaMunir
ID: 6301480
No!

Exp Imp can't change the character set of the databse, what it can do is to convert the data exported in one character set to another character set while importing, if the two character sets are compatible.

if you want to change the character set of the databae, follow these steps.

In some cases, you may wish to change the existing database character set. For
instance, you may find that the number of languages that need to be supported in
your database have increased. In most cases, you will need to do a full
export/import to properly convert all data to the new character set. However, if
and only if, the new character set is a strict superset of the current character set, it is
possible to use the ALTER DATABASE CHARACTER SET to expedite the change in
the database character set.
The target character set is a strict superset if and only if each and every codepoint in
the source character set is available in the target character set, with the same
corresponding codepoint value. For instance the following migration scenarios can
take advantage of the ALTER DATABASE CHARACTER SET command since
US7ASCII is a strict subset of WE8ISO8859P1, AL24UTFFSS, and UTF8:
WARNING: Attempting to change the database character set to a character set that
is not a strict superset can result in data loss and data corruption. To ensure data
integrity, whenever migrating to a new character set that is not a strict superset, you
must use export/import. It is essential to do a full backup of the database before
using the ALTER DATABASE [NATIONAL] CHARACTER SET statement, since the
command cannot be rolled back. The syntax is:
ALTER DATABASE [<db_name>] CHARACTER SET <new_character_set>;
ALTER DATABASE [<db_name>] NATIONAL CHARACTER SET <new_NCHAR_character_set>;
The database name is optional. The character set name should be specified without
quotes, for example:
ALTER DATABASE CHARACTER SET WE8ISO8859P1;
To change the database character set, perform the following steps. Not all of them
are absolutely necessary, but they are highly recommended:
SQL> SHUTDOWN IMMEDIATE; -- or NORMAL
<do a full backup>
Current Character Set New Character Set New Character Set is strict
superset?
US7ASCII WE8ISO8859P1 yes
US7ASCII ALT24UTFFSS yes
US7ASCII UTF8 yes


SQL> STARTUP MOUNT;
SQL> ALTER SYSTEM ENABLE RESTRICED SESSION;
SQL> ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
SQL> ALTER DATABASE OPEN;
SQL> ALTER DATABASE CHARACTER SET <new_character_set_name>;
SQL> SHUTDOWN IMMEDIATE; -- or NORMAL
SQL> STARTUP;
To change the national character set, replace the ALTER DATABASE CHARACTER
SET statement with ALTER DATABASE NATIONAL CHARACTER SET. You can
issue both commands together if desired.


0
 
LVL 54

Expert Comment

by:nico5038
ID: 7258991

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - PAQ'd and pts removed
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 

Accepted Solution

by:
Jgould earned 0 total points
ID: 7289104
Question has been closed as per recommendation

JGould-EE Moderator
0

Featured Post

Myth Busting: MongoDB Scalability (it scales!)

I was talking with one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. He mentioned to me that several customers have been telling him that “MongoDB doesn’t scale!” MongoDB’s scalability was in question?

My response was, “Is that a joke?"

Question has a verified solution.

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

This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Recently I was talking with Tim Sharp, one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. While doing some quick training with some of the Percona team, Tim brought something to my attention...
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

623 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