Linux Oracle中文字符乱码问题的解决
|
.bash_profile .dmrc .gstreamer-0.10 .nautilus .sqlplus_history .bashrc .eggcups .gtkrc-1.2-gnome2 ora.sh s.sh close_bak_command.sql ftp.msg hot_bak_cmd.sql ora.txt start.sh cold_bak.sql .gconf hot_bak.sql .redhat .Trash [oracle@oraserv ~]$ vi .bashrc # .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK ".bashrc" 10L, 167C written 3)注销oracle用户,重新登录 [oracle@oraserv ~]$ su - oracle Password: ****** [oracle@oraserv ~]$ env |grep LANG NLS_LANG=AMERICAN_AMERICA.ZHS16GBK LANG=en_US.UTF-8 [oracle@oraserv ~]$ export ORACLE_SID=prod [oracle@oraserv ~]$ env |grep LANG NLS_LANG=AMERICAN_AMERICA.ZHS16GBK LANG=en_US.UTF-8 [oracle@oraserv ~]$ !sql sqlplus '/as sysdba'; SQL*Plus: Release 10.2.0.1.0 - Production on Fri Apr 8 03:15:59 2011 本文URL地址:http://www.bianceng.cn/OS/Linux/201410/45427.htm Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options 03:16:02 SQL> conn scott/tiger Connected. 03:16:08 SQL> select * from tab; TNAME TABTYPE CLUSTERID ------------------------------ ------- ---------- DEPT TABLE EMP TABLE BONUS TABLE SALGRADE TABLE 03:16:16 SQL> update dept set dname='财务' where deptno=10; 1 row updated. 03:16:47 SQL> select * from dept; DEPTNO DNAME LOC ---------- -------------- ------------- 10 财务 NEW YORK 20 RESEARCH DALLAS 30 SALES CHICAGO 40 OPERATIONS BOSTON 注意:解决问题的原则,客户端的字符集和oracle 数据库的字符集保持一致。 30 SALES CHICAGO 40 OPERATIONS BOSTON 注意:解决问题的原则,客户端的字符集和oracle 数据库的字符集保持一致。 (编辑:佛山站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |

