在Weblogic10部署的sybase数据源SQLState: 01ZZZ、010DP警告

环境
weblogic10
sybase15

WARN: SQL Warning: 4016, SQLState: 01ZZZ
19.3.2010 10:26:25 org.hibernate.util.JDBCExceptionReporter logWarnings
WARN: Language name in login record ‘chinese’ is not an official name on this ASE. Using default ‘us_english’ from syslogins instead.

19.3.2010 10:26:25 org.hibernate.util.JDBCExceptionReporter logWarnings
WARN: SQL Warning: 0, SQLState: 010DP
19.3.2010 10:26:25 org.hibernate.util.JDBCExceptionReporter logWarnings
WARN: 010DP: 忽略了重复连接属性 charset。

解析
SQLState: 01ZZZ
在jdbc驱动属性中加上language=us_english

LANGUAGE
设置从服务器返回的错误消息和 jConnect 消息的语言。该设置必须是 syslanguages 中的一种语言。

SQLState: 010DP是由于在配置weblobic10数据源时,在url和properties属性中都配置了charset属性
丢弃一个就可以了。

 

Comments are closed.

猜你喜欢

转载自g4-gc.iteye.com/blog/1740130