环境: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