Cannot connect to a oracle database using intellij Datagrip - datagrip

Getting the error:
IO Error: A connection attempt failed because the connected party did not respond after a period of time, or established connection failed because the connected host has failed to respond.
Authentication lapse 0ms.
update: even though I am connecting to an Oracle 19c database when I change the driver to the one before oracle 11.2 it works i however still get a warning message however I would still like it to work with the recent driver is there anything I need to configure to get it to work.

Related

Oracle SQL Developer Error: Connection (CONNECTION_ID=CUJgpQYpQbOXdhiXCUyR3Q==) Vendor code 17002 Issue

I am getting problem in connecting to my database in Oracle SQL Developer. Whenever I try to connect to my database, it gives me this error:
An error was encountered performing the requested operation:
IO Error: The Network Adapter could not establish the connection (CONNECTION_ID=CUJgpQYpQbOXdhiXCUyR3Q==)
Vendor code 17002
Actually, I just use Oracle SQL developer to learn about queries running on a database. I have been using this database since a month but suddenly this error appeared now when I try to connect to the database directly or even manually. Please help me. Any help will be highly appreciated. Thanks in advance.
This is the screenshot for further details:
I tried to do it through an SSH tunnel but stuck there also.

Getting ORA-12514, but we can connect via SQLPlus

We are suddenly getting the error ORA-12514, TNS:listener does not currently know of service requested in connect descriptor in our application.
Googling this seems to suggest a couple of easy solutions (e.g. found here), but they don't work for us.
The perplexing thing is:
We can connect via SSH to the server running our application, and..
we can connect with SQLPlus on that server, ..
using the exact same JDBC connection parameters as the app (we can get them from a log during application startup, so we are sure they are the same).
Why could it be that we can connect to the DB with SQLPlus, but our app cannot?
Here are the two methods to connect (JDBC and SQLPlus), both consistently anonymised:
JDBC
{
jdbcDriver=oracle.jdbc.OracleDriver,
jdbcUser=THE_USER,
jdbcPassword=THE_PASSWORD,
configurationVersion=1.0.14,
jdbcURL=jdbc:oracle:thin:#(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=THE_HOST)(Port=THE_PORT))(CONNECT_DATA=(SERVICE_NAME=THE_SERVICE_NAME)))
}
SQLPlus
sqlplus THE_USER/'THE_PASSWORD#'"(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=THE_HOST)(Port=THE_PORT))(CONNECT_DATA=(SERVICE_NAME=THE_SERVICE_NAME)))"
According to our DB specialist there were "wrong entries in Oracle Internet Directory (OID)".
They cleaned it up and now it ist working again. Sorry that this is not very helpful as an answer, but I don't know more details...

Unable to connect to remote Oracle database using DBeaver

I am trying to connect to a remote Oracle db from my mac using DBeaver.
Dbeaver version I am using is: 5.1.3
I installed the ojdbc6.jar file from the below link:
http://www.oracle.com/technetwork/apps-tech/jdbc-112010-090769.html
as instructed by the DBeaver tool. I added the above file in the driver manager window.
When I try to connect to the database I get the following error(dbeaver-debug.log):
Connection failed (oracle_thin-16161616-16161616)
2018-07-21 13:16:06.749 - org.jkiss.dbeaver.model.exec.DBCException: Connection has timed out
org.jkiss.dbeaver.model.exec.DBCException: Connection has timed out
at org.jkiss.dbeaver.model.impl.jdbc.JDBCDataSource.openConnection(JDBCDataSource.java:157)
at org.jkiss.dbeaver.ext.oracle.model.OracleDataSource.openConnection(OracleDataSource.java:133)
at org.jkiss.dbeaver.model.impl.jdbc.JDBCExecutionContext.connect(JDBCExecutionContext.java:86)
at org.jkiss.dbeaver.model.impl.jdbc.JDBCRemoteInstance.initializeMainContext(JDBCRemoteInstance
If anyone has suggestions as to how I can debug this issue, would be highly appreciated.
Thank you.
Are you able to connect via other tools (like SQL Developer)? if no then please try that as well. There can be multiple reasons for connection timeout. It is also possible that port in remote system is not accessible.

Connection to Database installed on Unix server

I am getting below error when trying to connect to database which is installed on UNIX server through SQL management.
A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.) (.Net SqlClient Data Provider)
I can successfully connect it through Oracle SQL developer.
I know this question has already been asked a number of times , I have gone through all those
one of the resolution i got is utility to add the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\
But I want to know how can I make it work if in case where host is UNIX server.

IO Error: The Network Adapter could not establish the connection while trying to make JDBC connection to Oracle DB

Im trying to make a JDBC connection to my Oracle DB.
It works fine through TOAD but when im trying to establish the connection through JDBC it gives me the below error
"IO Error: The Network Adapter could not establish the connection"
The syntax of the url and details provided in the url is correctly picked up from TNS file.
when I ping the hostname it connects but with telnet it gives me error
"Could not open connection to the host,on port 1521:Connect failed"
Possible issues will be.
(a) Check if the database is up. Most of the times, database will not be up causing this issue.
(b) Check if you are able to connect using sqlplus

Resources