** There is an immediately way at the end of this document. But I strongly recommended you to read this document line by line.
The approaches are:
Migrating Character Data Using a Full Export and Import
Migrating Character Data Using the ALTER DATABASE CHARACTER SET Statement
Migrating Character Data Using the ALTER DATABASE CHARACTER SET Statement and Selective Imports
The ALTER DATABASE CHARACTER SET statement is the fastest way to migrate a character set, but it can be used only under special circumstances. The ALTER DATABASE CHARACTER SET statement does not perform any data conversion, so it can be used if and only if the new character set is a strict superset of the current character set.
The new character set is a strict superset of the current character set if:
Each and every character in the current character set is available in the new character set.
Each and every character in the current character set has the same code point value in the new character set. For example, US7ASCII is a strict subset of many character sets.
Another restriction of the ALTER DATABASE CHARACTER SET statement is that it can be used only when the character set migration is between two single-byte character sets or between two multibyte character sets. If the planned character set migration is from a single-byte character set to a multibyte character set, then use the Export and Import utilities.
This restriction on using the ALTER DATABASE CHARACTER SET statement arises because of CLOB data. In Oracle9i, some internal fields in the data dictionary are stored in CLOB columns. Customers may also store data in CLOB fields. When the database character set is multibyte, CLOB data in Oracle9i is stored as UCS-2 data (two-byte, fixed-width Unicode). When the database character set is single-byte, CLOB data is stored using the database character set. Because the ALTER DATABASE CHARACTER SET statement does not convert data, CLOB columns remain in the original database character set encoding when the database character set is migrated from single-byte to multibyte. This introduces data inconsistency in the CLOB columns.
The syntax of the ALTER DATABASE CHARACTER SET statement is as follows:
ALTER DATABASE [db_name] CHARACTER SET new_character_set;
db_name is optional. The character set name should be specified without quotes. For example:
ALTER DATABASE CHARACTER SET AL32UTF8;
To change the database character set, perform the following steps:
Shut down the database, using either a SHUTDOWN IMMEDIATE or a SHUTDOWN NORMAL statement.
Do a full backup of the database because the ALTER DATABASE CHARACTER SET statement cannot be rolled back.
Complete the following statements:
STARTUP MOUNT;
ALTER SYSTEM ENABLE RESTRICTED SESSION;
ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
ALTER SYSTEM SET AQ_TM_PROCESSES=0;
ALTER DATABASE OPEN;
ALTER DATABASE CHARACTER SET new_character_set;
SHUTDOWN IMMEDIATE; -- or SHUTDOWN NORMAL;
STARTUP;
分享到:
相关推荐
Oracle Database 11g is a significant upgrade from prior releases of Oracle. New features give developers, database administrators, and end users greater control over the storage, processing, and ...
PDF-XChange.Pro.V4.0.0190.0.简体中文绿色破解版 PDF-XChange.Pro.V4.0.0190.0.简体中文绿色破解版
Change OEM Logo for Aptio AMI BIOS 开机LOGO修改工具 软件环境:支持WIN7 WIN8 等 中文汉化版 可修改的格式:.fd .rom .fv .cap 使用方法:选择BIOS文件,选择LOGO文件,替换后保存新的BIOS文件,刷写入主板...
accessing different types of databases (for example, dBase, Paradox, text, CSV, Interbase, Firebird, Microsoft Access, Microsoft Excel, Oracle, SQL Server etc.); convenient viewing and editing data;...
完美绿色PDF XChange Viewer Pro 安装最好断网,保证安装成功。 1.先安装 setup 中的原版安装软件。 2.将Crack中 对应的“PDFXCview.exe”替换安装目录下的软件。 3.运行,OK!
PDF-XChange Editor Plus是一款强大的PDF编辑工具,其版本号为v8.0.331.0,专门设计用于处理PDF文档,特别是对于需要编辑PDF内容的用户来说,这款软件是一个理想的选择。在这个压缩包中,您将找到该软件的安装程序或...
《Oracle 11g Streams 实施者指南》是Oracle数据库技术领域的一本专业书籍,主要针对Oracle 11g版本的Streams特性进行深入解析。Streams是Oracle数据库中的一种高级数据复制解决方案,它允许在数据库之间高效地传输...
PDF-XChange Viewer V2.052.0 Pro是一款功能强大的PDF阅读器和编辑工具,由Track-It! Software公司开发。它不仅提供基础的PDF查看功能,还包含一系列高级特性,使得用户在处理PDF文档时能有更丰富的选择。这款软件...
PDFX5.PDF-XChange.Pro.v5.0.266 注册机 正在用
1、文件内容:yum-plugin-changelog-1.1.31-54.el7_8.rpm以及相关依赖 2、文件形式:tar.gz压缩包 3、安装指令: #Step1、解压 tar -zxvf /mnt/data/output/yum-plugin-changelog-1.1.31-54.el7_8.tar.gz #Step2、...
ipchange-v1.3.3.3.zip
很好用的pdf显示 编辑器 The smallest, fastest, most feature-rich FREE PDF editor/viewer available! Create, View, Edit, Annotate, OCR and Digitally Sign PDF files plus ...Includes PDF-XChange Lite printer.
1.新版主板logo修改软件,可以提取和写入BIOS中logo图片。 2.目前测试微星B350,华硕B560,技嘉Z370主板可以用
PDF.XChange.Viewer.v2.04105.MultiLanguage.part2.rar
PDF.XChange.Viewer.v2.04105.MultiLanguage.part1.rar
PDF-XChange Editor Plus 6.0.318.0,覆盖原有文件即可
标题中的"PyPI 官网下载 | cli-changelog-1.3.0.tar.gz"指出这是一个从Python Package Index(PyPI)官方源下载的压缩包,名为`cli-changelog-1.3.0.tar.gz`。PyPI是Python开发者发布自己软件包的主要平台,它允许...
将文件解压缩后放在文件目录下,即可破解PDF-XChange editor v3.0.307.2,不用输入注册号码