Today, when I tested connecting oracle from another machine A to machine B, I was always unable to connect, neither timeout nor resolution service, nor firewall or anti-virus software had been shut down and still could not be solved, however, the database can be connected to the database on the server where the database is installed, and Google gets the 11g listening service. The default configuration is localhost (in listener. ora file), in this case, the listener is only valid for the local machine, and other machines cannot access the server by IP address or something:
Listener =
(Description_list =
(Description =
(Address = (Protocol = IPC) (Key = extproc1521 ))
(Address = (Protocol = TCP) (host =Localhost) (Port = 1521 ))
)
)
After you change the localhost to the machine name or local IP address, restart the listening service to solve the problem of connection failure.