There are several steps you can try to help you narrow down the error range.
1 The Command window uses Sqlplus to see if the database service is functioning properly, for example, "Connect to:" Does not appear to indicate that the database service is unhealthy.
2 Check whether the database listener is started in Task Manager
3 Use the Telnet command to see if the listening port is normal, if a blank page indicates that the address and port can connect properly (Telnet command if not used, go to the Control Panel to set up the Telnet client)
4 Viewing the Listening log, path: Oracle\product\10.2.0\server\network\log\listener.log
You can try restarting the listening service to view the contents of the listening log to determine the error content
5 Important point , change the listening information needs to restart the monitoring service, otherwise the modification does not work
6 after changing the computer name, I changed the listening and service host to the local IP address and restarted the listening service to properly listen and connect.
After modifying the computer name, the Oracle client does not connect