如何判断我的 Oracle 系统是否设置为支持 Unicode 或多字节字符? [英] How can I tell if my Oracle system is set to support Unicode or multibyte characters?

查看:30
本文介绍了如何判断我的 Oracle 系统是否设置为支持 Unicode 或多字节字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 Oracle 支持多个字符集,但是如何确定我工作的当前 11g 系统是否启用了该功能?

I understand that Oracle supports multiple character sets, but how can determine if the current 11g system where I work has that functionality enabled?

推荐答案

SELECT *
  FROM v$nls_parameters
 WHERE parameter LIKE '%CHARACTERSET';

将显示数据库和国家字符集.数据库字符集控制CHARVARCHAR2 列中数据的编码.如果数据库在这些列中支持 Unicode,则数据库字符集应为 AL32UTF8(或在极少数情况下为 UTF8).国家字符集控制 NCHARNVARCHAR2 列中数据的编码.如果数据库字符集不支持 Unicode,您可以将 Unicode 数据存储在具有这些数据类型的列中,但这通常会增加系统的复杂性 - 应用程序可能必须更改以支持国家字符集.

will show you the database and national character set. The database character set controls the encoding of data in CHAR and VARCHAR2 columns. If the database supports Unicode in those columns, the database character set should be AL32UTF8 (or UTF8 in some rare cases). The national character set controls the encoding of data in NCHAR and NVARCHAR2 columns. If the database character set does not support Unicode, you may be able to store Unicode data in columns with these data types but that generally adds complexity to the system-- applications may have to change to support the national character set.

这篇关于如何判断我的 Oracle 系统是否设置为支持 Unicode 或多字节字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆