三月 2010


javaee and weblogic19 三 2010 03:08 下午

环境
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属性
丢弃一个就可以了。

javaee19 三 2010 10:53 上午

com.sybase.jdbc3.jdbc.SybSQLException: Couldn’t find an available partition descriptor. Raise the value of the configuration parameter ‘number of open partitions’ for more partition descriptors.

org.springframework.jdbc.UncategorizedSQLException:
Hibernate operation: Could not execute query;
uncategorized SQLException for SQL []; SQL state [ZZZZZ]; error code [14126]; Couldn’t find an available partition descriptor. Raise the value of the configuration parameter ‘number of open partitions’ for more partition descriptors.;
nested exception is com.sybase.jdbc3.jdbc.SybSQLException: Couldn’t find an available partition descriptor. Raise the value of the configuration parameter ‘number of open partitions’ for more partition descriptors.

从报错来看是Sybase15数据库的参数配置问题

摘自

http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.dc00729_1500/html/errMessageAdvRes/CHDGEGGC.htm

Error 14126
Severity

17

Message text

Couldn’t find an available partition descriptor. Raise the value of the configuration parameter ‘number of open partitions’ for more partition descriptors.

Explanation

In Adaptive Server Enterprise version 15.0 and later, all tables have at least one partition, whether or not a partition was explicitly defined on the table. When you upgrade a database to Adaptive Server Enterprise 15.x, all existing tables in the database are modified to have one partition. When data is accessed from a table, necessary partitions are kept open; however, a DBA can limit the number of open partitions at any given point of time. This error indicates that there is not enough room to open a new partition.
Action

Use sp_configure to set the number of open partitions value appropriately for your server. See “Setting Configuration Parameters” in the System Administration Guide: Volume 1 for details on setting this parameter.
Versions in which this error is raised

Version 15.0 and later

sybase,jdbc,sp_configure