oracle12542,【Oracle 11Gr1监听报错 TNS-12542 12560 00512】

在Oracle 11Gr1和Linux Redhat 5环境下,重启后遇到监听器启动错误TNS-12542和TNS-12560,原因是1521端口被sshd进程占用。通过netstat命令检查端口使用情况,发现sshd配置文件中包含了1521端口。修改sshd_config文件,删除不必要的端口,保持22端口开放,重启监听和sshd服务,问题得到解决。
摘要由CSDN通过智能技术生成

环境:Oracle 11Gr1+Linux Redhat 5

重启机器后,数据库监听启动报错如下:

TNS-12542: TNS:address already in useTNS-12560: TNS:protocol adapter errorTNS-00512: Address already in useLinux Error: 98: Address already in use

经过查看listener,ora 和日志 都说是地址被占用

可以用命令查看1521端口是否被程序占用

netstat -ntulp|grep 1521

结果看到 4078/sshd 进程在占用1521端口

想起前两天为了测试java进程,把1521端口加到sshd里面的

查看/etc/ssh/sshd_conf

[root@localhost conf]# more /etc/ssh/sshd_config

#       $OpenBSD: sshd_config,v 1.73 2005/12/06 22:38:28 reyk Exp $

# This is the sshd server system-wide configuration file.  See

# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin

# The strategy used for options in the default sshd_config shipped with

# OpenSSH is to specify options with their default value where

# possibl

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值