DBCP启动时出错!

scoripo2010 发布于 2012/07/19 18:07
阅读 1K+
收藏 0
07:16,609:[obtainInternalConnection]Failed to acquire connection. Sleeping for 7000ms. Attempts left: 5
java.sql.SQLException: Got minus one from a read call
 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:480)
 at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:413)
 at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)
 at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
 at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
 at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
 at java.sql.DriverManager.getConnection(DriverManager.java:582)
 at java.sql.DriverManager.getConnection(DriverManager.java:185)
 at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:256)
 at com.jolbox.bonecp.ConnectionHandle.obtainInternalConnection(ConnectionHandle.java:211)
 at com.jolbox.bonecp.ConnectionHandle.<init>(ConnectionHandle.java:170)
 at com.jolbox.bonecp.PoolWatchThread.fillConnections(PoolWatchThread.java:101)
 at com.jolbox.bonecp.PoolWatchThread.run(PoolWatchThread.java:82)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:619)
Caused by: oracle.net.ns.NetException: Got minus one from a read call
加载中
0
情天大圣
情天大圣
you can try the following with DBCP: use the Oracle JDBC driver class oracle.jdbc.driver.OracleDriver and specify a JDBC URL with the following syntax:

jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL =TCP)(HOST=rac1)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=rac2)(PORT=1521))(FAILOVER=on)(LOAD_BALANCE=on)(CONNECT_DATA=(SERVICE_NAME=ORCL)))
返回顶部
顶部