在看weblogic7的jdbc.pdf的时候发现这样一句话:
if your NLS_LANG environment variable is not set, of if it is set to either US7ASCII or WE8ISO8859-1, the driver always operates in 8859-1.
if the NLS_LANG environment variable is set to a different value than the codeset used by the database, the Oracle Thin driver and the WebLogic jDriver for Oracle use the client codeset when writing to the database.
但是现在的情况是我的数据库中使用的字符集是英文的。我用select * from V$NLS_PARAMETERS语句看过的。好像通过jdbc连接的时候没有办法设置这个似的。