Oracle字符集记要
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | (1).数据库服务器字符集 select * from nls_database_parameters (2).客户端字符集环境 select * from nls_instance_parameters 表示客户端的字符集的设置,可能是参数文件,环境变量或者是注册表 客户端字符集要与服务器字符集相同,否则会显示有乱码问题。 linux:查看与设置环境变量 $echo $NLS_LANG AMERICAN_AMERICA.AL32UTF8 编辑用户配置文件.bash_profile,加入 export NLS_LANG=AMERICAN_AMERICA.AL32UTF8 source .bash_profile 使生效 或命令执行 export NLS_LANG=AMERICAN_AMERICA.AL32UTF8 windows: 环境变量中加:nls_lang=AMERICAN_AMERICA.AL32UTF8 或命令窗口:set nls_lang=AMERICAN_AMERICA.AL32UTF8 (3).会话字符集环境 select * from nls_session_parameters |
Comments are currently closed.