1、查看并数据库的编码
SQL> SELECT * FROM sys.props$WHERE name = 'NLS_CHARACTERSET';
设置ORACLE数据库的编码(ZHS16GBK)
如果 NLS_CHARACTERSET不是ZHS16GBK, 则需进行更改
$ sqlplus /nolog SQL> connect sys/oracle as sysdba SQL> startup SQL> shutdown immediate; SQL> startup mount; SQL> alter system enable restricted session; SQL> alter system set job_queue_processes=0; SQL> alter database open; SQL> alter database character set internal_use ZHS16GBK; SQL> shutdown immediate; SQL> startup
另外
1.检查下regedit->HKEY_LOCAL_MACHINE->SOFTWARE->ORACLE
NLS_LANG :SIMPLIFIED CHINESE_CHINA.ZHS16GBK
2、设置环境变量,NLS_LANG :SIMPLIFIED CHINESE_CHINA.ZHS16GBK
Java小强
未曾清贫难成人,不经打击老天真。
自古英雄出炼狱,从来富贵入凡尘。
发表评论: