There may be different reasons why it shuts down to fix the problem. You can try the following steps:
1. Check Event Logs: Errors or warnings that may affect the operation of the Oracle XETNSListener service are logged in the event logs. You can try to identify the source of the problem by checking the logs. You can find information about the location of event log files and how to check them in the Oracle Database Management System documentation.
2. Set Service to Start Automatically: To automatically start the Oracle XETNSListener service, you can follow these steps:
3. Check Firewall Settings: The firewall may block the communication of the Oracle XETNSListener service. To check if it is blocked by Windows Firewall or third-party firewalls, review the firewall settings and, if necessary, create a rule that allows access to XETNSListener.
4. Checking for Conflicts with Other Applications: Errors can also occur if the Oracle XETNSListener service conflicts with another application or service. Check if another application is using the same port and, if necessary, specify a different port that the Oracle XETNSListener service will use.
5. Check Database and Oracle Server Versions: For the Oracle XETNSListener service to run smoothly, the database and Oracle Server versions must be compatible. Incompatibilities between different versions can cause problems. You may need to update by checking version compatibility.
6. If you have changed the computer name, the OracleXETNSListener service cannot be started. In this regard, give the computer name its old name or reinstall oracle.