【发布时间】:2014-01-19 20:09:51
【问题描述】:
我在我的 linux 虚拟机上安装 oracle 11g R2 时遇到问题。我正在为学校做这个,所以我是这个东西的初学者。教练告诉我们运行 ifconfig
然后运行 cat /etc/hosts。
首先他说我们的输出应该如下所示:
eth0 Link encap:Ethernet HWaddr 00:0C:29:88:22:36
inet addr:192.168.1.57 Bcast:192.168.1.255 Mask:255.255.255.0
:
[root@OraLinux ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.57 oralinux oralinux.localdomain
这里的 IP 地址匹配。
我的看起来像这样:
eth2 Link encap:Ethernet HWaddr 00:0C:29:B2:E2:A9
inet addr:192.168.102.129 Bcast:192.168.102.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:feb2:e2a9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:21 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10247 (10.0 KiB) TX bytes:2250 (2.1 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:136 errors:0 dropped:0 overruns:0 frame:0
TX packets:136 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11488 (11.2 KiB) TX bytes:11488 (11.2 KiB)
[oracle@OraLinux ~]$ cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.153.131 oralinux oralinux.localdomain**
然后他说如果 IP 地址不匹配,请运行 netca 并在 1521 上添加端口侦听器。 当我尝试执行此操作时,netca 向我抛出一条消息,指出端口 1521 已在使用中,并且在解决问题之前我无法正确配置。谁能帮帮我。
【问题讨论】:
标签: linux oracle oracle11g port