Resolving Oracle Status: Failed - Test Failed: IO Error: The Network Adapter could not establish the connection

From daily sharing (valid for my own test)

I used Oracle SQL Developer to connect to Oracle today and found that I could not connect, and reported several errors. eg:

Status: Failed - Test Failed: IO Error: The Network Adapter could not establish the connection (CONNECTION_ID=eyxlDMR3TlOla7fPMxtClQ)

insert image description here

besides

Status: Failed - Test failed: Listener refused the connection with the following error: ORA-12505, TNS:listener does

insert image description here

I checked a lot of methods on Baidu, what is the listener problem, what is the vm virtual machine, what is the jdbc, etc. I have tried them all, but they are all ineffective.

First, let's see if we can use oracle, win+r, to open cmd. Enter sqlplus [username] / [password] and press Enter.
With this interface, you can connect.

insert image description here

in Oracle SQL DeveloperJust delete the hostname and change the SID to orclThat's it. Click test, connect, and it's ok.

Enter select * from help;click to run

insert image description here
(Seeking attention)

Guess you like

Origin blog.csdn.net/aasd23/article/details/123793640
Recommended