从AWS EC2节点到Datacenter中的Oralce数据库的连接错误

时间:2015-07-21 15:13:15

标签: oracle amazon-web-services amazon-ec2 jboss database-connection

我正在尝试从AWS环境中托管的Java Web应用程序连接到Oracle数据库。 我已经通过端口1521向数据库服务器打开了防火墙。 当我从AWS节点ping数据库服务器时仍然出现错误。 Oracle DB位于我们的数据中心内。

是否需要完成任何其他配置AWS或任何其他防火墙配置。

Ping错误:

[root@ip-AWS-Node ~]# ping -a Database-sever-IP
PING Database-sever-IP (Database-sever-IP) 56(84) bytes of data.
--- Database-sever-IP ping statistics ---
19 packets transmitted, 0 received, 100% packet loss, time 18597ms

Jboss错误日志:

INFO  [stdout] (http-/ip-AWS-Node:8080-1) Caused by: javax.resource.ResourceException: Could not create connection
INFO  [stdout] (http-/ip-AWS-Node:8080-1)       at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:288)
INFO  [stdout] (http-/ip-AWS-Node:8080-1)       at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:246)
INFO  [stdout] (http-/ip-AWS-Node:8080-1)       at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:781)
INFO  [stdout] (http-/ip-AWS-Node:8080-1)       at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.getConnection(SemaphoreArrayListManagedConnectionPool.java:344)
INFO  [stdout] (http-/ip-AWS-Node:8080-1)       ... 52 more
INFO  [stdout] (http-/ip-AWS-Node:8080-1) Caused by: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection

0 个答案:

没有答案