Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Conversion of Character Set from US7ASCII to UTF8 in RAC 10gR2

RE: Conversion of Character Set from US7ASCII to UTF8 in RAC 10gR2

From: <Joel.Patterson_at_crowley.com>
Date: Tue, 19 Dec 2006 10:22:27 -0500
Message-ID: <02C2FA1C9961934BB6D16DE35707B27B0265B8EF@jax-mbh-01.jax.crowley.com>


Just in case: AL32UTF8 is not the same as UTF8. It is a superset, but there are cases where something is only verified and supported in a particular character set, so be sure you are converting to the right one.  

I do not believe you have to export/import to go from US7ASCII to UTF8/AL32UTF8. You may wish to google or metalink for a faster approach.  

Joel Patterson
Database Administrator
joel.patterson_at_crowley.com
x72546
904 727-2546


From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of VIVEK_SHARMA Sent: Tuesday, December 19, 2006 10:14 AM To: oracle-l_at_freelists.org
Subject: RE: Conversion of Character Set from US7ASCII to UTF8 in RAC 10gR2  

Missed the Step (3) in the previous e-mail. Added below now.  

Additionally Should the Database NOT be Shutdown after the Truncate till Step 5 is Complete?  


From: VIVEK_SHARMA
Sent: Tuesday, December 19, 2006 8:33 PM To: 'oracle-l_at_freelists.org'
Subject: Conversion of Character Set from US7ASCII to UTF8 in RAC 10gR2  

Folks  

Need to Convert the Character Set of an Oracle10gR2 with RAC TEST Database from the Default "US7ASCII" to UTF8  

Is the following Procedure to be followed?  

  1. Shutdown the 2nd instance
  2. Export ALL the Tables (including SYS, SYSTEM Schema) having CLOB Datatype field

select distinct ('TABLE '||A.OWNER|| '.'||A.TABLE_NAME) from dba_tab_columns A, dba_tables B where A.table_name = B.table_name and DATA_TYPE= 'CLOB'   3) Truncate ALL Tables having CLOB fields including those of SYS & SYSTEM Schema

e.g. SYS.SQL$TEXT, SYS.RULE$  

4) SQL> ALTER DATABASE CHARACTER SET AL32UTF8;   5) Import back ALL the Tables exported in Step 1  

6) Export related Environment Variables:-  

NLS_LANG=.AL32UTF8; export NLS_LANG

LANG=en_US.UTF-8; export LANG

LC_ALL=en_US.UTF-8; export LC_ALL  

Thanks indeed  

Vivek    

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Dec 19 2006 - 09:22:27 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US