暂无图片
分享
戴口罩的少侠
2022-07-08
重启监听后发现tnslsnr进程占用1521端口

数据库版本:12c    操作系统版本:redhat6.5

现象描述:监听文件中将ip地址改为域名后,重启提示“地址已经被使用”!,然后查看1521端口被tnslsnr进程占用

处理过程:将tnslsnr进程kill掉后,重启监听成功。

故障疑惑:tnslsnr的作用是什么,为什么会占用1521端口。

附图:
1.[oracle@tyydd-db admin]$ lsnrctl start

LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 08-JUL-2022 11:34:56

Copyright (c) 1991, 2016, Oracle. All rights reserved.

Starting /home/oracle/app/oracle/product/12.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 12.2.0.1.0 - Production
Log messages written to /home/oracle/app/oracle/diag/tnslsnr/tyydd-db/listener/alert/log.xml
Error listening on: (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12542: TNS:address already in use
TNS-12560: TNS:protocol adapter error
TNS-00512: Address already in use
Linux Error: 98: Address already in use

Listener failed to start. See the error message(s) above...

[oracle@tyydd-db admin]$ netstat -antup|grep 1521
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 127.0.0.1:1521 0.0.0.0:* LISTEN 25911/tnslsnr

[oracle@tyydd-db admin]$ ps -ef|grep tnslsnr
oracle 20123 19612 0 11:35 pts/1 00:00:00 grep tnslsnr
oracle 25911 1 0 Feb10 ? 00:02:48 /home/oracle/app/oracle/product/12.2.0/dbhome_1/bin/tnslsnr LISTENER -inherit

收藏
分享
2条回答
默认
最新
Kubee

tnslsnr进程就是来监听数据库端口,默认就是1521

暂无图片 评论
暂无图片 有用 0
暂无图片
戴口罩的少侠
问题已关闭: 问题已经得到解决
暂无图片 评论
暂无图片 有用 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏