首先查询Oracle的字符集:select userenv('language') from dual;
比如:AMERICAN_AMERICA.ZHS16GBK
创建一个bat脚本(GBK编码,不要用UTF-8):
@ECHO OFF
:: GBK: SIMPLIFIED CHINESE_CHINA.ZHS16GBK
:: US:AMERICAN_AMERICA.ZHS16GBK
SET NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
:: 启动 PLSQL
START "" "C:\02=Apps\PLSQL 10\PLSQL\plsqldev.exe"
:: PAUSE 可以去掉,只是暂停看一下bat的执行过程
PAUSE