大家好,又见面了,我是你们的朋友全栈君。
声明:原创作品,出自 “深蓝的blog” 博客,欢迎转载,转载时请务必注明出处,否则追究版权法律责任。
深蓝的blog:http://blog.csdn.net/huangyanlong/article/details/43935361
前提回现
修改了主机名,由hyldb修改为hyl。
问题现象
配置监听,警告提示,如下所示:
解决方法
1、检查1521端口
[root@hyl ~]# netstat -a
–查看端口占用情况,查明1521端口并未被占用
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
补充:关闭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建库成功。
声明:原创作品,出自 “深蓝的blog” 博客,欢迎转载,转载时请务必注明出处,否则追究版权法律责任。
深蓝的blog:http://blog.csdn.net/huangyanlong/article/details/43935361
系列链接_20150523:
蓝的成长记——追逐DBA(2):安装!安装!久违的记忆,引起我对DBA的重新认知
蓝的成长记——追逐DBA(3):古董上操作,数据导入导出成了问题
蓝的成长记——追逐DBA(4):追忆少年情愁,再探oracle安装(Linux下10g、11g)
蓝的成长记——追逐DBA(5):不谈技术谈业务,恼人的应用系统
蓝的成长记——追逐DBA(6): 做事与做人:小技术,大为人
蓝的成长记——追逐DBA(8):重拾SP报告,回忆oracle的STATSPACK实验
蓝的成长记— —追逐DBA(9):国庆渐去,追逐DBA,新规划,新启程
蓝的成长记——追逐DBA(10):飞刀防身,熟络而非专长:摆弄中间件Websphere
蓝的成长记——追逐DBA(11):回家后的安逸,晕晕乎乎醒了过来
蓝的成长记——追逐DBA(13):协调硬件厂商,六个故事:所见所感的“服务器、存储、交换机……”
蓝的成长记——追逐DBA(14):难忘的“云”端,起步的hadoop部署
蓝的成长记——追逐DBA(15):以为FTP很“简单”,谁成想一波三折
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/135351.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...