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

Check the Oracle Database size of non CDB, CDB and PDB

Creation of BIGFILE TABLESPACE

Delete Old Trace file & Alert log older in RAC or Single Instance