tnslsnr.exe

Oracle Net Listener (tnslsnr.exe)

Application ProcessSafeDatabase Networking
CPU Usage
1-5%
Memory
5-20 MB
Location
C:\oracle\product\19.0.0\dbhome_1\BIN
Publisher
Oracle Corporation

Quick Answer

tnslsnr.exe is safe. It's the Oracle Net Listener service that accepts client connections and routes them to the correct database instance.

Is it a Virus?
 NO - Safe
Must be in C:\oracle\product\19.0.0\dbhome_1\BIN\tnslsnr.exe
Warning
Multiple listener instances
Sometimes several listeners run for different DB services; check services.msc to confirm.
Can I Disable?
 YES
Stop the Oracle TNS Listener service in Services.msc or disable the startup option in Windows services.

What is tnslsnr.exe?

tnslsnr.exe is the Oracle Net Listener process that runs on Oracle database servers to accept client connection requests. It acts as the network entry point, directing requests to the appropriate database service, performing initial handshakes, and coordinating session establishment between clients and database instances.

tnslsnr.exe runs as the Oracle Net Listener service. It reads listener.ora and tnsnames.ora to resolve service names, listens on port 1521 by default, and routes connections to the correct database instance via dedicated or multiplexed servers.

Quick Fact: The Oracle Net Listener is essential for client applications to reach Oracle databases; it acts as a centralized entry point.

Types of Listener Processes

Is tnslsnr.exe Safe?

Yes, tnslsnr.exe is safe when it's the legitimate file from Oracle and running as the Oracle Net Listener service.

Is tnslsnr.exe a Virus or Malware?

The real tnslsnr.exe is NOT a virus. However, malware may masquerade as it; verify signature and location.

How to Tell if tnslsnr.exe is Legitimate or Malware

  1. File Location: Must be in C:\oracle\product\\dbhome_1\BIN\tnslsnr.exe or an Oracle Home BIN directory. Any tnslsnr.exe outside Oracle directories is suspicious.
  2. Digital Signature: Right-click tnslsnr.exe in File Explorer → Properties → Digital Signatures. Should show "Oracle Corporation".
  3. Resource Usage: Normal operation shows low CPU and modest memory. Constant high usage or spikes during idle times is suspicious.
  4. Behavior: Listener should start with Oracle services and only run when Oracle is active. Unexpected background behavior warrants malware scan.

Red Flags: If tnslsnr.exe is located outside Oracle directories (like Temp or User folders), lacks a valid signature, or remains active when the database services are stopped, scan your system.

Why Is tnslsnr.exe Running on My Server?

tnslsnr.exe runs to accept and route client connection requests to Oracle database instances. It starts with the database and remains active to listen for new connections.

Reasons it's running:

Can I Disable or Remove tnslsnr.exe?

Yes, you can disable the Oracle Net Listener. Stopping the listener stops new connections; ensure databases are not affected.

How to Stop tnslsnr.exe

How to Uninstall Oracle Net Listener

Common Problems: Listener Issues

If tnslsnr.exe is not behaving, check common issues.

Common Causes & Solutions

Quick Fixes:
1. Check listener status with lsnrctl status
2. Verify port with netstat and firewall rules
3. Restart listener with lsnrctl stop && lsnrctl start
4. Review listener.ora for correct host and port
5. Check database alert logs for listener errors

Frequently Asked Questions

Is tnslsnr.exe a virus?

No, the legitimate tnslsnr.exe from Oracle is not a virus. Ensure it is located under C:\oracle\product\<version>\dbhome_1\BIN\tnslsnr.exe and has a valid Oracle digital signature.

Where is tnslsnr.exe located?

Typically under C:\oracle\product\<version>\dbhome_1\BIN\tnslsnr.exe, depending on your Oracle Home directory.

What port does tnslsnr.exe listen on?

Default port is 1521 unless configured otherwise in listener.ora.

How do I restart the Oracle TNS Listener?

Use lsnrctl stop followed by lsnrctl start, or restart the Oracle service using Windows Services.msc.

Can I disable the listener without affecting the database?

Disabling the listener will prevent new connections; existing sessions may continue until they timeout or are closed, but best practice is to gracefully shut down applications first.

Why are there multiple tnslsnr.exe processes?

In some configurations, multiple listener services or instances may be running for different Oracle Homes or databases; ensure they are legitimate by checking listener.ora and services.msc.

Related Processes