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)
besides
Status: Failed - Test failed: Listener refused the connection with the following error: ORA-12505, TNS:listener does
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.
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
(Seeking attention)