前提回现
修改了主机名,由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 localhostlocaldomain:2208 : LISTEN
tcp 0 0 :sunrpc : LISTEN
tcp 0 0 :pftp : LISTEN
tcp 0 0 localhostlocaldomain:ipp : LISTEN
tcp 0 0 localhostlocaldomain:smtp : LISTEN
tcp 0 0 localhostlocaldomain: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/pcscdcomm
unix 2 [ ACC ] STREAM LISTENING 5127 /var/run/acpidsocket
unix 2 [ ACC ] STREAM LISTENING 6197 /var/run/cups/cupssock
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/pcscdcomm
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/acpidsocket
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/acpidsocket
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
127001 hyldb localhostlocaldomain localhost
::1 localhost6localdomain6 localhost6
19216856101 hyl
~
~
~
--由于修改了主机名(hyldb修改为hyl),将之前配置中hyldb内容删除
修改为:
# Do not remove the following line, or various programs
# that require network functionality will fail
127001 localhostlocaldomain localhost
::1 localhost6localdomain6 localhost6
19216856101 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/modprobeconf
在其中加入下面这一行,
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建库成功。
一般分为以下几个步骤:
1、建立系统账户:oracle,用户组:oinstall,dba;
2、安装依赖包;
3、修改系统内核参数文件:sysctlconf;
4、修改用户资源限制文件:limitsconf;
5、创建安装目录(CentOS下测试发现不需要)、配置系统变量(可以安装完成后配置);
6、安装Oracle软件;
首先确认一点,你实体机和虚拟机链接方式和IP配置方式。
实体机和虚拟机胡同是必须的,还有一点虚拟机建议采用是固定IP,如果是自动获取IP可能会有问题!
确认后 在安装Oracle。另外,Linux中安装Oracle需要准备的东西很多,不知道你配置的是否有问题。
*** 作方法如下:
1将secureCRT连接到数据库所在的linux机器,然后切换到oracle用户模式下;
2接下来用sqlplus登录到数据库,然后再关闭数据库;
3然后起动监听;
4最后客户端连接。
工具和原料:linux安装,oracle数据库,SecureCRT,任意ssh连接工具都可以。
以上就是关于oracle linux配置监听时报错端口占用全部的内容,包括:oracle linux配置监听时报错端口占用、如何在linux suse中安装Oracle 11g创建监听、通过vmware安装linux虚拟机,在虚拟机上装完oracle后,配置了监听,但是无法在本地连接数据库等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)