Kill or Release PORT of LISTENER which is already in use

Port No. : 1521 


sudo kill -9 $(sudo lsof -t -i :1521)



OR



[root@test ~]# sudo netstat -tulnp | grep 1521
tcp        0      0 127.0.0.1:1521          0.0.0.0:*               LISTEN      3168/tnslsnr


[root@test ~]# sudo ss -tulnp | grep 1521
tcp   LISTEN 0      128         127.0.0.1:1521       0.0.0.0:*    users:(("tnslsnr",pid=3168,fd=8))

[root@test ~]# sudo kill -9 3168

[root@test ~]# sudo ss -tulnp | grep 1521



Comments

Popular posts from this blog

Enabling Autostart during server reboot of Oracle Database 19c filesystem on Oracle / Redhat Linux 7

Management of Users and privilleges in Oracle Database 12c / 19c in container & Pluggable database

Oracle Temporary Tablespace Resize