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.(PhysicalConnection.java:439)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:297)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:221)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:157)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:94)
at oracle.jdbc.pool.OracleImplicitConnectionCache.makeCacheConnection(OracleImplicitConnectionCache.java:1567)
at oracle.jdbc.pool.OracleImplicitConnectionCache.getCacheConnection(OracleImplicitConnectionCache.java:478)
at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:347)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:404)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:189)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:165)
解决方法
>(显而易见)IP地址不正确 – 尝试PING>端口未打开,或被防火墙阻止 – 尝试TELNET> DB侦听器未运行或绑定到其他网络接口 – 再次,TELNET应该确认这一点(也使用Oracle客户端连接工具)>没有本地端口可用于外出连接(不太可能) – 只有你正在建立成千上万的联系,或者每分钟创建数百个新连接.