| Oracle NLS Character Sets Version 11.2.0.3 |
|---|
| General Information | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Depending on the character sets involved this may result in data loss. Try this in test environments before proceeding in production. I have received the following email from Gunther Vermeir <gunther.vermeir@oracle.com> from Oracle and have posted it here, unedited, so that you are all aware of the issue.
I'm not convinced that INTERNAL_USE is a "trick" but I am convinced that posting this note is reasonable so here it is. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Data Dictionary Objects |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Demo | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Change Character Sets | conn / as sysdba col parameter format a30 col value format a30 SELECT view_name FROM dba_views WHERE view_name LIKE '%NLS%'; SELECT * FROM v$nls_parameters; SHUTDOWN IMMEDIATE; STARTUP RESTRICT; ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0; ALTER SYSTEM SET AQ_TM_PROCESSES=0; ALTER DATABASE CHARACTER SET WE8MSWIN1252; -- if the above fails: ALTER DATABASE CHARACTER SET INTERNAL_USE WE8MSWIN1252; SHUTDOWN IMMEDIATE; STARTUP; SELECT * FROM v$nls_parameters; |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CSALTER | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Depending on the character sets involved this may result in data loss. Try this in test environments before proceeding in production. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Character Set Alteration | conn / as sysdba SQL> shutdown immediate; SQL> startup restrict; SQL>@?/rdbms/admin/csalter.plb This script will update the content of the Oracle Data Dictionary. Please ensure you have a full backup before initiating this procedure. Would you like to proceed (Y/N)?Y old 6: if (UPPER('&conf') <> 'Y') then new 6: if (UPPER('Y') <> 'Y') then Checking data validility... begin converting system objects PL/SQL procedure successfully completed. Alter the database character set... CSALTER operation completed, please restart database PL/SQL procedure successfully completed. 0 rows deleted. Function dropped. Function dropped. Procedure dropped. C:\> conn / as sysdba SQL> shutdown immediate; SQL> startup; conn csmig/oracle1 SELECT object_name, object_type FROM user_objects ORDER BY 2; exec dbms_stats.gather_schema_stats(USER); SELECT table_name, num_rows FROM user_tables; SELECT * FROM csm$parameters; |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CSSCAN | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CSSCAN [parameters] |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Character Set Scan | C:\> csscan Character Set Scanner v2.2: Release 11.1.0.7 - Production on Mon Jan 4 18:28:34 2010 Copyright (c) 1982, 2007, Oracle. All rights reserved. Username: sys as sysdba Password: Connected to: Oracle database 11g Enterprise Edition Release 11.1.0.7.0 - Production With the Partitioning, Oracle Label Security, OLAP, Data Mining, Oracle Database Vault and Real Application Testing options. CSS-00107: Character set migration utility schema not installed Scanner terminated unsuccessfully. conn / as sysdba SQL>@?\rdbms\admin\csminst.sql -- password supplied is "oracle1" conn csmig/oracle1 SELECT object_name, object_type FROM user_objects ORDER BY 2; SQL>exit; C:\>CSSCAN \"sys/NoWay!@db10g AS SYSDBA\" FULL=Y Character Set Scanner v2.2 : Release 11.1.0.7.0 - Production on Tue Jan 4 18:31:03 2010 Copyright (c) 1982, 2007, Oracle. All rights reserved. Connected to: Oracle database 11g Enterprise Edition Release 11.1.0.7.0 - Production With the Partitioning, Oracle Label Security, OLAP, Data Mining, Oracle Database Vault and Real Application Testing options. Current database character set is WE8MSWIN1252. Enter new database character set name: > WE8MSWIN1252 Enter array fetch buffer size: 1024000 > Enter number of scan processes to utilize(1..32): 1 > 4 Enumerating tables to scan... . process 4 scanning SYS.WRH$_WAITSTAT[AAARFOAACAAABEoAAA] . . process 22 scanning GLOBAL.AW$GLOBAL[AAAS2gAAJAAAAH4AAA] Creating Database Scan Summary Report... Creating Individual Exception Report... Scanner terminated successfully. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Related Topics |
| Character Set Functions |
| UTL_GDK |
| This site is maintained by Dan Morgan. Last Updated: | This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2013 Daniel A. Morgan All Rights Reserved | |||||||||
|
|
||||||||||