oracle linux配置监听时报错端口占用
环境情况:oraclelinux7数据库:oracle12c配置监听时,默认端口报错已被占用,换其他没被占用的端口同样报错。如图:查询监听状态是又发现有监听,如图,但是我...
环境情况:oracle linux 7数据库: oracle 12c配置监听时,默认端口报错已被占用,换其他没被占用的端口同样报错。如图:查询监听状态是又发现有监听,如图,但是我从来未配置过这个监听。安装数据库时查看到的这个监听又不能使用。。。不知道怎么回事,删除现在这个监听重新配置又不无法删除,也无法配置新的监听。求高手指点!
展开
2个回答
2016-12-24 · 知道合伙人互联网行家
关注
展开全部
前提回现
修改了主机名,由hyldb修改为hyl。
问题现象
配置监听,警告提示,如下所示:
解决方法
1、检查1521端口
[root@hyl ~]# netstat -a
--查看端口占用情况,查明1521端口并未被占用
[plain] view plain copy 在CODE上查看代码片派生到我的代码片
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 localhost.localdomain:2208 *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 *:pftp *:* LISTEN
tcp 0 0 localhost.localdomain:ipp *:* LISTEN
tcp 0 0 localhost.localdomain:smtp *:* LISTEN
tcp 0 0 localhost.localdomain:2207 *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
getnameinfo failed
getnameinfo failed
tcp 0 132 [UNKNOWN]:ssh [UNKNOWN]:51492 ESTABLISHED
udp 0 0 *:spmp *:*
udp 0 0 *:659 *:*
udp 0 0 *:37437 *:*
udp 0 0 *:mdns *:*
udp 0 0 *:sunrpc *:*
udp 0 0 *:ipp *:*
udp 0 0 *:mdns *:*
udp 0 0 *:32372 *:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 4226 @ISCSIADM_ABSTRACT_NAMESPACE
unix 2 [ ACC ] STREAM LISTENING 4938 /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 7578 @/tmp/fam-root-
unix 2 [ ACC ] STREAM LISTENING 5021 /var/run/sdp
unix 2 [ ACC ] STREAM LISTENING 5102 /var/run/pcscd.comm
unix 2 [ ACC ] STREAM LISTENING 5127 /var/run/acpid.socket
unix 2 [ ACC ] STREAM LISTENING 6197 /var/run/cups/cups.sock
unix 2 [ ACC ] STREAM LISTENING 6633 /var/run/avahi-daemon/socket
unix 2 [ ACC ] STREAM LISTENING 6473 /dev/gpmctl
unix 2 [ ACC ] STREAM LISTENING 4212 @ISCSID_UIP_ABSTRACT_NAMESPACE
unix 2 [ ] DGRAM 1102 @/org/kernel/udev/udevd
unix 2 [ ACC ] STREAM LISTENING 6509 /tmp/.font-unix/fs7100
unix 2 [ ACC ] STREAM LISTENING 7135 /tmp/.gdm_socket
unix 2 [ ACC ] STREAM LISTENING 7165 /tmp/.X11-unix/X0
unix 2 [ ] DGRAM 5161 @/org/freedesktop/hal/udev_event
unix 17 [ ] DGRAM 4527 /dev/log
unix 2 [ ACC ] STREAM LISTENING 5152 @/var/run/hald/dbus-R5ibTGYpjn
unix 2 [ ACC ] STREAM LISTENING 5153 @/var/run/hald/dbus-1m4p21ErfG
unix 2 [ ACC ] STREAM LISTENING 4482 /var/run/audispd_events
unix 2 [ ] DGRAM 7618
unix 3 [ ] STREAM CONNECTED 7581 @/tmp/fam-root-
unix 3 [ ] STREAM CONNECTED 7580
unix 3 [ ] STREAM CONNECTED 7571 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 7570
unix 3 [ ] STREAM CONNECTED 7448 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 7447
unix 3 [ ] STREAM CONNECTED 7364 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 7363
unix 3 [ ] STREAM CONNECTED 7261 /tmp/.font-unix/fs7100
unix 3 [ ] STREAM CONNECTED 7260
unix 3 [ ] STREAM CONNECTED 7217 /var/run/pcscd.comm
unix 3 [ ] STREAM CONNECTED 7216
unix 3 [ ] STREAM CONNECTED 7264 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 7190
unix 3 [ ] STREAM CONNECTED 7177 /var/run/acpid.socket
unix 3 [ ] STREAM CONNECTED 7176
unix 2 [ ] DGRAM 7163
unix 3 [ ] STREAM CONNECTED 6636 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 6635
unix 3 [ ] STREAM CONNECTED 6630
unix 3 [ ] STREAM CONNECTED 6629
unix 2 [ ] DGRAM 6627
unix 2 [ ] DGRAM 6467
unix 2 [ ] DGRAM 6426
unix 2 [ ] DGRAM 6379
unix 2 [ ] DGRAM 6324
unix 2 [ ] DGRAM 6109
unix 2 [ ] DGRAM 6068
unix 2 [ ] DGRAM 5958
unix 3 [ ] STREAM CONNECTED 5930 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 5929
unix 3 [ ] STREAM CONNECTED 5903 @/var/run/hald/dbus-R5ibTGYpjn
unix 3 [ ] STREAM CONNECTED 5902
unix 3 [ ] STREAM CONNECTED 5896 @/var/run/hald/dbus-R5ibTGYpjn
unix 3 [ ] STREAM CONNECTED 5893
unix 3 [ ] STREAM CONNECTED 5738 @/var/run/hald/dbus-R5ibTGYpjn
unix 3 [ ] STREAM CONNECTED 5737
unix 3 [ ] STREAM CONNECTED 5714 /var/run/acpid.socket
unix 3 [ ] STREAM CONNECTED 5713
unix 3 [ ] STREAM CONNECTED 5708 @/var/run/hald/dbus-R5ibTGYpjn
unix 3 [ ] STREAM CONNECTED 5707
unix 3 [ ] STREAM CONNECTED 5156 @/var/run/hald/dbus-1m4p21ErfG
unix 3 [ ] STREAM CONNECTED 5155
unix 2 [ ] DGRAM 5101
unix 3 [ ] STREAM CONNECTED 5016 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 5015
unix 2 [ ] DGRAM 4987
unix 2 [ ] DGRAM 4977
unix 3 [ ] STREAM CONNECTED 4942
unix 3 [ ] STREAM CONNECTED 4941
unix 3 [ ] STREAM CONNECTED 4900
unix 3 [ ] STREAM CONNECTED 4899
unix 2 [ ] DGRAM 4798
unix 2 [ ] DGRAM 4543
unix 3 [ ] STREAM CONNECTED 4473
unix 3 [ ] STREAM CONNECTED 4472 <span style="font-size:14px;"> </span>
2、检查hosts
[root@hyl ~]# vi /etc/hosts
修改前:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 hyldb localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.56.101 hyl
~
~
~
--由于修改了主机名(hyldb修改为hyl),将之前配置中hyldb内容删除
修改为:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.56.101 hyl
~
~
~
~
3、检查network
# vi /etc/sysconfig/network
--确认添加了如下信息
NETWORKING=yes
HOSTNAME=hyl
4、检查ipv6是否关闭
查看ipv6状态,查看其是否被关闭
[root@hyl ~]# lsmod |grep ipv6
ipv6 435105 17 cnic
xfrm_nalgo 43333 1 ipv6
[plain] view plain copy 在CODE上查看代码片派生到我的代码片
补充:关闭ipv6方法
1) # vim /etc/modprobe.conf
在其中加入下面这一行,
install ipv6 /bin/true
保存并退出。
2)# vim /etc/sysconfig/network
在其中加入下面配置项:
NETWORKING_IPV6=no
IPV6INIT=no
重启后查询:
[root@hyl ~]# lsmod |grep ipv6
--没有显示ipv6相关信息,表示ipv6已经关闭
5、重启系统后,查看hostname
[root@hyl ~]# hostname
--查询主机名
hyl
6、再次执行netca
配置监听、dbca建库成功。
修改了主机名,由hyldb修改为hyl。
问题现象
配置监听,警告提示,如下所示:
解决方法
1、检查1521端口
[root@hyl ~]# netstat -a
--查看端口占用情况,查明1521端口并未被占用
[plain] view plain copy 在CODE上查看代码片派生到我的代码片
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 localhost.localdomain:2208 *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 *:pftp *:* LISTEN
tcp 0 0 localhost.localdomain:ipp *:* LISTEN
tcp 0 0 localhost.localdomain:smtp *:* LISTEN
tcp 0 0 localhost.localdomain:2207 *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
getnameinfo failed
getnameinfo failed
tcp 0 132 [UNKNOWN]:ssh [UNKNOWN]:51492 ESTABLISHED
udp 0 0 *:spmp *:*
udp 0 0 *:659 *:*
udp 0 0 *:37437 *:*
udp 0 0 *:mdns *:*
udp 0 0 *:sunrpc *:*
udp 0 0 *:ipp *:*
udp 0 0 *:mdns *:*
udp 0 0 *:32372 *:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 4226 @ISCSIADM_ABSTRACT_NAMESPACE
unix 2 [ ACC ] STREAM LISTENING 4938 /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 7578 @/tmp/fam-root-
unix 2 [ ACC ] STREAM LISTENING 5021 /var/run/sdp
unix 2 [ ACC ] STREAM LISTENING 5102 /var/run/pcscd.comm
unix 2 [ ACC ] STREAM LISTENING 5127 /var/run/acpid.socket
unix 2 [ ACC ] STREAM LISTENING 6197 /var/run/cups/cups.sock
unix 2 [ ACC ] STREAM LISTENING 6633 /var/run/avahi-daemon/socket
unix 2 [ ACC ] STREAM LISTENING 6473 /dev/gpmctl
unix 2 [ ACC ] STREAM LISTENING 4212 @ISCSID_UIP_ABSTRACT_NAMESPACE
unix 2 [ ] DGRAM 1102 @/org/kernel/udev/udevd
unix 2 [ ACC ] STREAM LISTENING 6509 /tmp/.font-unix/fs7100
unix 2 [ ACC ] STREAM LISTENING 7135 /tmp/.gdm_socket
unix 2 [ ACC ] STREAM LISTENING 7165 /tmp/.X11-unix/X0
unix 2 [ ] DGRAM 5161 @/org/freedesktop/hal/udev_event
unix 17 [ ] DGRAM 4527 /dev/log
unix 2 [ ACC ] STREAM LISTENING 5152 @/var/run/hald/dbus-R5ibTGYpjn
unix 2 [ ACC ] STREAM LISTENING 5153 @/var/run/hald/dbus-1m4p21ErfG
unix 2 [ ACC ] STREAM LISTENING 4482 /var/run/audispd_events
unix 2 [ ] DGRAM 7618
unix 3 [ ] STREAM CONNECTED 7581 @/tmp/fam-root-
unix 3 [ ] STREAM CONNECTED 7580
unix 3 [ ] STREAM CONNECTED 7571 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 7570
unix 3 [ ] STREAM CONNECTED 7448 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 7447
unix 3 [ ] STREAM CONNECTED 7364 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 7363
unix 3 [ ] STREAM CONNECTED 7261 /tmp/.font-unix/fs7100
unix 3 [ ] STREAM CONNECTED 7260
unix 3 [ ] STREAM CONNECTED 7217 /var/run/pcscd.comm
unix 3 [ ] STREAM CONNECTED 7216
unix 3 [ ] STREAM CONNECTED 7264 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 7190
unix 3 [ ] STREAM CONNECTED 7177 /var/run/acpid.socket
unix 3 [ ] STREAM CONNECTED 7176
unix 2 [ ] DGRAM 7163
unix 3 [ ] STREAM CONNECTED 6636 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 6635
unix 3 [ ] STREAM CONNECTED 6630
unix 3 [ ] STREAM CONNECTED 6629
unix 2 [ ] DGRAM 6627
unix 2 [ ] DGRAM 6467
unix 2 [ ] DGRAM 6426
unix 2 [ ] DGRAM 6379
unix 2 [ ] DGRAM 6324
unix 2 [ ] DGRAM 6109
unix 2 [ ] DGRAM 6068
unix 2 [ ] DGRAM 5958
unix 3 [ ] STREAM CONNECTED 5930 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 5929
unix 3 [ ] STREAM CONNECTED 5903 @/var/run/hald/dbus-R5ibTGYpjn
unix 3 [ ] STREAM CONNECTED 5902
unix 3 [ ] STREAM CONNECTED 5896 @/var/run/hald/dbus-R5ibTGYpjn
unix 3 [ ] STREAM CONNECTED 5893
unix 3 [ ] STREAM CONNECTED 5738 @/var/run/hald/dbus-R5ibTGYpjn
unix 3 [ ] STREAM CONNECTED 5737
unix 3 [ ] STREAM CONNECTED 5714 /var/run/acpid.socket
unix 3 [ ] STREAM CONNECTED 5713
unix 3 [ ] STREAM CONNECTED 5708 @/var/run/hald/dbus-R5ibTGYpjn
unix 3 [ ] STREAM CONNECTED 5707
unix 3 [ ] STREAM CONNECTED 5156 @/var/run/hald/dbus-1m4p21ErfG
unix 3 [ ] STREAM CONNECTED 5155
unix 2 [ ] DGRAM 5101
unix 3 [ ] STREAM CONNECTED 5016 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 5015
unix 2 [ ] DGRAM 4987
unix 2 [ ] DGRAM 4977
unix 3 [ ] STREAM CONNECTED 4942
unix 3 [ ] STREAM CONNECTED 4941
unix 3 [ ] STREAM CONNECTED 4900
unix 3 [ ] STREAM CONNECTED 4899
unix 2 [ ] DGRAM 4798
unix 2 [ ] DGRAM 4543
unix 3 [ ] STREAM CONNECTED 4473
unix 3 [ ] STREAM CONNECTED 4472 <span style="font-size:14px;"> </span>
2、检查hosts
[root@hyl ~]# vi /etc/hosts
修改前:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 hyldb localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.56.101 hyl
~
~
~
--由于修改了主机名(hyldb修改为hyl),将之前配置中hyldb内容删除
修改为:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.56.101 hyl
~
~
~
~
3、检查network
# vi /etc/sysconfig/network
--确认添加了如下信息
NETWORKING=yes
HOSTNAME=hyl
4、检查ipv6是否关闭
查看ipv6状态,查看其是否被关闭
[root@hyl ~]# lsmod |grep ipv6
ipv6 435105 17 cnic
xfrm_nalgo 43333 1 ipv6
[plain] view plain copy 在CODE上查看代码片派生到我的代码片
补充:关闭ipv6方法
1) # vim /etc/modprobe.conf
在其中加入下面这一行,
install ipv6 /bin/true
保存并退出。
2)# vim /etc/sysconfig/network
在其中加入下面配置项:
NETWORKING_IPV6=no
IPV6INIT=no
重启后查询:
[root@hyl ~]# lsmod |grep ipv6
--没有显示ipv6相关信息,表示ipv6已经关闭
5、重启系统后,查看hostname
[root@hyl ~]# hostname
--查询主机名
hyl
6、再次执行netca
配置监听、dbca建库成功。
浙江启扬智能科技有限公司
2023-06-12 广告
2023-06-12 广告
Android和ARM、Linux之间存在密切的联系。Android是一种基于Linux内核的嵌入式智能操作系统,它采用了ARM处理器作为其主要处理器架构。Android的内核和许多应用程序都是基于ARM架构编写的,包括处理器和内存管理器。...
点击进入详情页
本回答由浙江启扬智能科技有限公司提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询