Skip to main content
Question

Could not Connect to Database. IO Error


Forum|alt.badge.img+2

Please help how to resolve this. I have the ojdbc11.jar as well as ojdbc10.jar file associated in the file path and its still throwing this error

Could not Connect to Database. IO Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond, Authentication lapse 0 ms

 

 

5 replies

Raul Jaimes
Forum|alt.badge.img+9
  • Navigator | Tier 3
  • 494 replies
  • March 15, 2023

@RaymondJGibson 

Verify if you able to connect to database from the same machine using a client.  Also you can verify the port your are using to database using a telnet to hostname and port from the machine.

 

1. Run Windows Powershell.

2. type the following command:

tnc <DatabaseServer> - port <DatabasePortNumber>

Example

tnc 192.168.1.2 - port 1433  

 

Let us know your feedback.

Regards


rbkadiyam
Forum|alt.badge.img+17
  • Navigator | Tier 3
  • 582 replies
  • March 16, 2023

@RaymondJGibson  seems firewall issue, your request may not through to db server… check with IT team and enable your ip to connect db server


Forum|alt.badge.img+2
  • Author
  • Cadet | Tier 2
  • 6 replies
  • March 16, 2023

Its not unfortunately because TNC command gives back the result and VPN is connected...but its still not picking the ojdbc11.jar. Is there any other  prerequisite which needs to be installed


Raul Jaimes
Forum|alt.badge.img+9
  • Navigator | Tier 3
  • 494 replies
  • March 17, 2023

@RaymondJGibson 

Below my postgresql example:

 

What  kind of database are you trying to connect?

Regards.


Forum|alt.badge.img+2

Thanks for the response Raul, I am using the same. But it gives me the above error. Any thoughts


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings