当前位置: 代码迷 >> Java面试 >> 数据库连不下的错误
  详细解决方案

数据库连不下的错误

热度:24   发布时间:2016-04-17 18:33:24.0
数据库连不上的异常
数据库是oralce.oracle部署在服务器端,程序在客户端。客户端访问服务器没有问题 telnet可以连接。
报了网络异常。不知道为什么????

如何测试客户端可以访问服务器端的数据库
IBM aix 

2011-02-12 21:13:23][INFO][org.logicalcobwebs.proxool.ProxoolFacade.registerConnectionPool(ProxoolFacade.java:86)][main] -[Proxool 
0.9.1 (23-Aug-2008 11:10)]
  [2011-02-12 21:13:23][WARN][org.logicalcobwebs.proxool.ConnectionPoolDefinition.setAnyProperty(ConnectionPoolDefinition.java:317
)][main] -[Use of proxool.maximum-new-connections is deprecated. Use more descriptive proxool.simultaneous-build-throttle instead.]
  java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
  at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
  at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
  at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
  at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
  at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
  at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
  at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
  at java.sql.DriverManager.getConnection(DriverManager.java:562)
  at java.sql.DriverManager.getConnection(DriverManager.java:155)
  at org.logicalcobwebs.proxool.DefaultConnectionBuilder.buildConnection(DefaultConnectionBuilder.java:39)
  at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:159)
  at org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:211)
  at org.logicalcobwebs.proxool.ProxoolDriver.connect(ProxoolDriver.java:89)
  at java.sql.DriverManager.getConnection(DriverManager.java:562)
  at java.sql.DriverManager.getConnection(DriverManager.java:208)
  at com.inspur.pb.agent.util.DBConnPoolUtil.getConnection(DBConnPoolUtil.java:62)
  at com.inspur.pb.agent.file.DataObjectBuilder.getMQ(DataObjectBuilder.java:456)
  at com.inspur.pb.agent.file.DataObject2File.createMQFile(DataObject2File.java:366)
  at com.inspur.pb.agent.main.Agent.main(Agent.java:61)
[2011-02-12 21:14:40]-[Error]-[com.inspur.pb.agent.file.DataObjectBuilder]
[Exception Type:java.sql.SQLException: Io exception: The Network Adapter could not establish the connection]

[2011-02-12 21:14:40]-[Error]-[com.inspur.pb.agent.file.DataObjectBuilder]
[Exception Localtion:oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)]

[2011-02-12 21:14:40][ERROR][org.logicalcobwebs.proxool.Prototyper.sweep(Prototyper.java:105)][Prototyper] -[Prototype]
  java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
  at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
  at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
  at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
  at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
  at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
  at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
  at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
  at java.sql.DriverManager.getConnection(DriverManager.java:562)
  at java.sql.DriverManager.getConnection(DriverManager.java:155)
  相关解决方案