oracle驱动错误引起违反协议,类型长度大于最大值

oracle驱动错误引起违反协议,类型长度大于最大值

如下问题:
java.sql.SQLException: 类型长度大于最大值
 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:161)
 at oracle.jdbc.driver.DatabaseError.check_error(DatabaseError.java:884)
 at oracle.jdbc.driver.T4CMAREngine.buffer2Value(T4CMAREngine.java:2230)
 at oracle.jdbc.driver.T4CMAREngine.unmarshalUB4(T4CMAREngine.java:1146)
 at oracle.jdbc.driver.T4CMAREngine.unmarshalDALC(T4CMAREngine.java:2097)
 at oracle.jdbc.driver.T4C8TTIuds.unmarshal(T4C8TTIuds.java:127)
 at oracle.jdbc.driver.T4CTTIdcb.receiveCommon(T4CTTIdcb.java:125)
 at oracle.jdbc.driver.T4CTTIdcb.receiveFromRefCursor(T4CTTIdcb.java:103)
 at oracle.jdbc.driver.T4CResultSetAccessor.unmarshalOneRow(T4CResultSetAccessor.java:165)
 at oracle.jdbc.driver.T4CTTIrxd.unmarshal(T4CTTIrxd.java:787)
 at oracle.jdbc.driver.T4CTTIrxd.unmarshal(T4CTTIrxd.java:704)
 at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:526)
 at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:179)
 at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:782)
 at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1027)
 at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2887)
 at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2978)
 at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4102)
 at getConnection.TestProcedure.main(TestProcedure.java:37)
java.sql.SQLException: 违反协议
 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:161)
 at oracle.jdbc.driver.DatabaseError.check_error(DatabaseError.java:884)
 at oracle.jdbc.driver.T4C7Ocommoncall.receive(T4C7Ocommoncall.java:132)
 at oracle.jdbc.driver.T4CConnection.logoff(T4CConnection.java:384)
 at oracle.jdbc.driver.PhysicalConnection.close(PhysicalConnection.java:1035)
 at getConnection.TestProcedure.closeConn(TestProcedure.java:70)
 at getConnection.TestProcedure.main(TestProcedure.java:47)

我的数据库是9.2.0.4.0版本1.12M的驱动有问题,必须要下对应的1.13M的驱动。下载网址:http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc9201.html

你可能感兴趣的:(oracle驱动错误引起违反协议,类型长度大于最大值)