FAQ
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?

Shutdown the 2nd instance

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) SQL> ALTER DATABASE CHARACTER SET AL32UTF8;

4) Import back ALL the Tables exported in Step 1

5) 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

CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

Search Discussions

  • VIVEK_SHARMA at Dec 19, 2006 at 3:14 pm
    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?

    Shutdown the 2nd instance

    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

    CAUTION - Disclaimer *****************
    This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
    ***INFOSYS******** End of Disclaimer ********INFOSYS***
  • Polarski, Bernard at Dec 19, 2006 at 3:17 pm
    There is a tool csscan, which is already in your $ORACLE_HOME/bin dir in
    10g, that need to be executed.

    It will warn you on column wide violation during conversion and some
    others stuff such has uses of char() function in PL/SQL pkg.

    Search on metalink, it is quite well explained.





    Bernard Polarski

    Oracle DBA



    Direct +32(0)2 690 28 90

    Fax +32(0)2 690 27 82



    Da Vincilaan 5

    1930 Zaventem

    Belgium

    www.atosorigin.com/be

    From: VIVEK_SHARMA
    Sent: dinsdag 19 december 2006 16:03
    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?



    Shutdown the 2nd instance

    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) SQL> ALTER DATABASE CHARACTER SET AL32UTF8;



    4) Import back ALL the Tables exported in Step 1



    5) 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





    CAUTION - Disclaimer *****************
    This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
    solely for the use of the addressee(s). If you are not the intended
    recipient, please notify the sender by e-mail and delete the original
    message. Further, you are not to copy, disclose, or distribute this
    e-mail or its contents to any other person and any such actions are
    unlawful. This e-mail may contain viruses. Infosys has taken every
    reasonable precaution to minimize this risk, but is not liable for any
    damage you may sustain as a result of any virus in this e-mail. You
    should carry out your own virus checks before opening the e-mail or
    attachment. Infosys reserves the right to monitor and review the content
    of all messages sent to or from this e-mail address. Messages sent to or
    from this e-mail address may be stored on the Infosys e-mail system.
    ***INFOSYS******** End of Disclaimer ********INFOSYS***
  • Alberto Dell'Era at Dec 19, 2006 at 3:26 pm

    On 12/19/06, Polarski, Bernard wrote:
    There is a tool csscan, which is already in your $ORACLE_HOME/bin dir in
    10g, that need to be executed.

    It will warn you on column wide violation during conversion and some
    others stuff such has uses of char() function in PL/SQL pkg.

    Search on metalink, it is quite well explained.

    It is also on the "globalization guide".
    The charset in 10gR2 should be AL32UTF8, not the "deprecated" UTF8 ...

    --
    Alberto Dell'Era
    "Per aspera ad astra"

    --
    http://www.freelists.org/webpage/oracle-l
  • Polarski, Bernard at Dec 19, 2006 at 3:20 pm
    Here are some notes :



    Note 260192.1 Changing WE8ISO8859P1/WE8ISO8859P15 or WE8MSWIN1252 to
    UTF8 with ALTER DATABASE CHARACTER SET

    Note 119119.1 UTF8 Database Character Set Implications

    Note 123670.1 Use Scanner Utility before Altering the Database Character
    Set

    Note 225912.1 Changing the Database Character Set - a short Overview





    Bernard Polarski



    From: VIVEK_SHARMA
    Sent: dinsdag 19 december 2006 16:03
    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?



    Shutdown the 2nd instance

    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) SQL> ALTER DATABASE CHARACTER SET AL32UTF8;



    4) Import back ALL the Tables exported in Step 1



    5) 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





    CAUTION - Disclaimer *****************
    This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
    solely for the use of the addressee(s). If you are not the intended
    recipient, please notify the sender by e-mail and delete the original
    message. Further, you are not to copy, disclose, or distribute this
    e-mail or its contents to any other person and any such actions are
    unlawful. This e-mail may contain viruses. Infosys has taken every
    reasonable precaution to minimize this risk, but is not liable for any
    damage you may sustain as a result of any virus in this e-mail. You
    should carry out your own virus checks before opening the e-mail or
    attachment. Infosys reserves the right to monitor and review the content
    of all messages sent to or from this e-mail address. Messages sent to or
    from this e-mail address may be stored on the Infosys e-mail system.
    ***INFOSYS******** End of Disclaimer ********INFOSYS***
  • Joel.Patterson_at_crowley.com at Dec 19, 2006 at 3:22 pm
    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
    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?



    Shutdown the 2nd instance

    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





    CAUTION - Disclaimer *****************
    This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
    solely for the use of the addressee(s). If you are not the intended
    recipient, please notify the sender by e-mail and delete the original
    message. Further, you are not to copy, disclose, or distribute this
    e-mail or its contents to any other person and any such actions are
    unlawful. This e-mail may contain viruses. Infosys has taken every
    reasonable precaution to minimize this risk, but is not liable for any
    damage you may sustain as a result of any virus in this e-mail. You
    should carry out your own virus checks before opening the e-mail or
    attachment. Infosys reserves the right to monitor and review the content
    of all messages sent to or from this e-mail address. Messages sent to or
    from this e-mail address may be stored on the Infosys e-mail system.
    ***INFOSYS******** End of Disclaimer ********INFOSYS***
  • VIVEK_SHARMA at Dec 20, 2006 at 12:30 pm
    Folks, Bernard



    Thanks Bernard for the Help, as always.



    Is Change of Character Set from US7ASCII to AL32UTF8 a 1-way street?

    To revert back to US7ASCII does one need to put back the COLD Backup
    taken in US7ASCII?



    NOTE - This is a TESTING RAC Database, but of 3 TB Size



    Additionally does anything SPECIAL needs to be for a "RAC" Database's
    conversion?



    Thanks indeed



    Vivek





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



    Here are some notes :



    Note 260192.1 Changing WE8ISO8859P1/WE8ISO8859P15 or WE8MSWIN1252 to
    UTF8 with ALTER DATABASE CHARACTER SET

    Note 119119.1 UTF8 Database Character Set Implications

    Note 123670.1 Use Scanner Utility before Altering the Database Character
    Set

    Note 225912.1 Changing the Database Character Set - a short Overview





    Bernard Polarski



    CAUTION - Disclaimer *****************
    This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
    solely for the use of the addressee(s). If you are not the intended
    recipient, please notify the sender by e-mail and delete the original
    message. Further, you are not to copy, disclose, or distribute this
    e-mail or its contents to any other person and any such actions are
    unlawful. This e-mail may contain viruses. Infosys has taken every
    reasonable precaution to minimize this risk, but is not liable for any
    damage you may sustain as a result of any virus in this e-mail. You
    should carry out your own virus checks before opening the e-mail or
    attachment. Infosys reserves the right to monitor and review the content
    of all messages sent to or from this e-mail address. Messages sent to or
    from this e-mail address may be stored on the Infosys e-mail system.
    ***INFOSYS******** End of Disclaimer ********INFOSYS***

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouporacle-l @
categoriesoracle
postedDec 19, '06 at 3:02p
activeDec 20, '06 at 12:30p
posts7
users4
websiteoracle.com

People

Translate

site design / logo © 2022 Grokbase