Oracle 11g修改中文字符集
来源:互联网 发布:lv为什么那么贵 知乎 编辑:程序博客网 时间:2024/04/29 03:57
文章转自:http://www.2cto.com/database/201211/167034.html
Oracle 11g修改中文字符集安装了个Oracle 11g发现中文保存到DB之后变乱码,用下面的方法修改DB字符集
www.2cto.com
D:\>sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Wed Nov 7 23:50:56 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> conn / as sysdba --需要使用SYSDBA帐户
Connected.
SQL> startup mount
ORA-01081: cannot start already-running ORACLE - shut it down first
SQL> shutdown immediate; --停止数据库
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount --启动数据库到 mount 状态
ORACLE instance started.
Total System Global Area 1686925312 bytes
Fixed Size 2176368 bytes
Variable Size 989858448 bytes
Database Buffers 687865856 bytes
Redo Buffers 7024640 bytes
Database mounted.
SQL> alter session set sql_trace=true;
Session altered.
SQL> alter system enable restricted session;
System altered.
SQL> alter system set job_queue_processes=0;
System altered.
SQL> alter system set aq_tm_processes=0;
System altered.
SQL> alter database open;
Database altered.
SQL> set linesize 120; --INTERNAL_USE 参数可以忽略超集检查
SQL> ALTER DATABASE character set INTERNAL_USE AL32UTF8; --修改字符集
Database altered.
SQL> shutdown immediate; --再次关闭数据库
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> STARTUP --启动数据库
ORACLE instance started.
Total System Global Area 1686925312 bytes
Fixed Size 2176368 bytes
Variable Size 989858448 bytes
Database Buffers 687865856 bytes
Redo Buffers 7024640 bytes
Database mounted.
Database opened.
SQL> select * from v$nls_parameters where parameter = 'NLS_CHARACTERSET';
PARAMETER
----------------------------------------------------------------
VALUE
----------------------------------------------------------------
NLS_CHARACTERSET
AL32UTF8
SQL>
- Oracle 11g修改中文字符集
- Oracle 11g修改中文字符集
- Oracle 11g 修改中文字符集
- 修改数据oracle(11g)字符集
- Oracle 11g 修改字符集 为 ZHS16GBK
- Oracle 11g修改数据库字符集
- oracle 11g 下修改服务器字符集
- 修改oracle 10g字符集
- oracle修改英文字符集to中文字符集
- Oracle 修改字符集 支持中文
- oracle 11g rac 修改字符集
- Oracle 11g修改字符集AL32UTF8为ZHS16GBK
- Oracle 11g修改字符集AL32UTF8为ZHS16GBK
- oracle 10g 修改数据库字符集
- 【转】修改oracle 10g的字符集
- linux下修改oracle 10G 字符集
- Oracle 10g 修改字符集 为 ZHS16GBK
- 修改Oracle 10g的字符集
- Apache服务器的一些统计命令
- Android Density(密度)
- 合并两个排好序的单向链表
- jQuery php ajax图片上传
- [POJ][1001]Exponentiation
- Oracle 11g修改中文字符集
- 打造轻量级Windows Phone7 游戏引擎-Samurai 第零话 前言
- javascript中对象的销毁
- STL容器
- UVALive 5088 Alice and Bob's Trip(树形DP)
- 《编程之美》2.7 最大公约数问题解法3改进
- 安装VS2008 SP1出现错误,文件正在使用 Microsoft Program Database
- ExcelToHtmlTable转换算法:将Excel转换成Html表格并展示(项目源码+详细注释+项目截图)
- Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tool