How to fix IO Error: The Network Adapter could not establish the connection - oracle

I am trying to connect my oracle cloud database using sqldeveloper with connection type basic but it fails connection with error:
Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection.
Anyone can help how can i connect my oracle db system using sqldevloper with connection type either basic or TNS ??

Have you tried to telnet the server on port 1521?
It sounds likely that the dbsystem is not connected to the internet.
Please check if the dbsystem subnet has:
Security List with a rule to allow port 1521 on your ip address
Routing Table that allows internet access via internet gateway

Related

How to solve the problem of Elasticsearch ODBC DSN Configuration Connection Failed

I am new to Elasticsearch / ODBC and was trying to configure DSN, and I followed Configuration | Elasticsearch Guide to do it. Under 2.2 Connection parameters, it's stated that "At a minimum, the Name and Hostname fields must be provisioned, before the DSN can be saved.". Therefore, I only put in the the name and hostname, and left all other fields default.
Then, I pressed "Test Connection" but got the message of Connection Failed:
Connection Failed: [Elastic][EsODBC 7.16.2(v7.16.0-4-g42ac03a+,u,r) Driver]Couldn't connect to server (code:7; Failed to connect to ::1 port 9200: Connection refused).
Here is a screenshot of my configuration and connection test.
May I ask why is this happening and how can I solve it? Thanks much.
FYI I am using Windows 10 Pro version 21H2.

Apache Nifi, Connection Issue with Sql server JDBC

I am trying to connect Apache Nifi to SQL Server hosted on localhost but getting this msg:
Establish Connection
Failed to establish Database Connection: java.sql.SQLException: Cannot create PoolableConnectionFactory (The TCP/IP connection to the host localhost, port 1433 has failed. Error: "Connection refused (Connection refused). Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".)
I disabled the firewall
I checked that tcp is enabled through SQL Configuration manager.
enter image description here
enter image description here
Nifi DBCPConnectionPool 1.16.3 Configurations:
Database Connection URL: jdbc:sqlserver://localhost:1433;databaseName=AdventureWorks2016
Database Driver Class Name: com.microsoft.sqlserver.jdbc.SQLServerDriver
Database Driver Location(s): file:///usr/lib/jvm/jre/lib/jdbc/sqljdbc_10.2/enu/mssql-jdbc-10.2.1.jre8.jar
enter image description here
But still not able to figure out what is the issue

problem in connecting client to L2TP server

I've the MIKROTIK router on KVM. after transfer MIKROTIK to new server and change the router IP my client can not connect to the server. and in the server log file show me this error: phase1 negotiation failed due to time up XX.XX.XX.XX[500]<=>XX.XX.XX.XX[500] 3f80f907708fbe3a:4a3ab01f25adc16f
can help me to fix this.

Oracle connection error

java.sql.SQLException: Io exception: The Network Adapter could not establish the
connection at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java)
I am getting this error when data in database is increased (nearly 3000). It works fine with limited data (say 100).
The Network Adapter could not establish the connection
Is typically thrown when
the Oracle listener is not running
the wrong hostname was specified in the connection url
the wrong port was specified in the connection url
the port is blocked by firewall
I have never seen it related to "increasing" the data in the database

Oracle connection problem on Mac OSX: "Status : Failure -Test failed: Io exception: The Network Adapter could not establish the connection"

I'm trying this with Oracle SQL Developer and am on an Intel MacBook Pro. But I believe this same error happens with other clients. I can ping the server hosting the database fine so it appears not to be an actual network problem.
Also, I believe I'm filling in the connection info correctly. It's something like this:
host = foo1.com
port = 1530
server = DEDICATED
service_name = FOO
type = session
method = basic
That's the message you get when you don't have the right connection parameters. The SID, in particular, tends to trip up newcomers.
If you want to connect to database on other host then you need to know
hostname
port number (by default 1521)
SID name
if you get the connection error that you mentioned in your question then you have not specified correctly either hostname or port number. Try
telnet hostname portnumber
from Terminal to verify if you can connect to portnumber (by default 1521) - if not then probably port number is incorrect.
My problem turned out to be some kind of ACL problem. I needed to SSH tunnel in through a "blessed host". I put the following in my .ssh/config
Host=blessedhost
HostName=blessedhost.whatever.com
User=alice
Compression=yes
Protocol=2
LocalForward=2202 oraclemachine.whatever.com:1521
Host=foo
HostName=localhost
Port=2202
User=alice
Compression=yes
Protocol=2
(I don't think the second block is really necessary.) Then I change the host and port in the oracle connection info to localhost:2202.

Resources