Oracle JDBC异常消息语言是德语

时间:2012-11-12 13:05:09

标签: oracle jdbc

我通过德语的JDBC通过Oracle获取异常消息。如何将其更改为英语?

java.sql.SQLException: Die Zeitzone f³r die Datenbank-Session ist nicht festgelegt
        at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
        at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271)
        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:445)
        at oracle.jdbc.driver.TimestampltzAccessor.getString(TimestampltzAccessor.java:94)
        at oracle.jdbc.driver.T4CTimestampltzAccessor.getString(T4CTimestampltzAccessor.java:256)
        at oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.java:971)

1 个答案:

答案 0 :(得分:4)

对于NLS设置,它将是客户端。关于如何在JDBC端设置,请参见NLS_LANG setting for JDBC thin driver?