Not able to connect to Oracle DB from DevTest Workstation
search cancel

Not able to connect to Oracle DB from DevTest Workstation

book

Article ID: 75037

calendar_today

Updated On:

Products

CA Application Test CA Continuous Application Insight (PathFinder) Service Virtualization

Issue/Introduction

Trying to  connect to Oracle DB using a JDBC step in DevTest, gives the below error.  

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) 

Environment

All supported DevTest releases.

Cause

Did a telnet to the host and port Oracle DB was running and got an error. 

telnet <host> 1521 

"java.sql.SQLException: IO Error: The Network Adapter could not establish the connection" 

This error message is Oracle's way of saying either 'Connection refused' or 'Connection timeout' or 'no route to host' or 'unknown host'. 

It might be that there is no route to the host, nothing listening at the IP:port you specified, or there is a firewall in the way. And that includes a possible Windows firewall on the server host itself. 

Resolution

Work with the Network team to resolve the Oracle issue.  

Additional Information