ora 12170 tns 连接超时Last login: Mon Oct 23 15:11:08 2017
[root@itcast ~]# sqlplus system/123456
SQL*Plus: Release 11.2.0.2.0 Production on Mon Oct 23 15:17:09 2017
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
SQL> ^H^H^Hexit
SP2-0042: unknown commanexit" - rest of line ignored.
SQL> quit
Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
[root@itcast ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:5B:D6:0C
inet addr:192.168.177.130 Bcast:192.168.177.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe5b:d60c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:417 errors:0 dropped:0 overruns:0 frame:0
TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30096 (29.3 KiB) TX bytes:11657 (11.3 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:16436 Metric:1
RX packets:646 errors:0 dropped:0 overruns:0 frame:0
TX packets:646 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:48640 (47.5 KiB) TX bytes:48640 (47.5 KiB)
[root@itcast ~]# sqlplus system/123456@192.168.177.130:1521/xe
SQL*Plus: Release 11.2.0.2.0 Production on Mon Oct 23 15:20:44 2017
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
SQL> sqlplus system/123456@192.168.177.130:1521/xe
SP2-0734: unknown command beginning "sqlplus sy..." - rest of line ignored.
SQL> exit
Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
[root@itcast ~]# service iptables stop
iptables:将链设置为政策 ACCEPT:filter [确定]
iptables:清除防火墙规则:[确定]
iptables:正在卸载模块:[确定]
[root@itcast ~]# ^C
[root@itcast ~]# ^C
[root@itcast ~]# sqlplus system/123456
SQL*Plus: Release 11.2.0.2.0 Production on Mon Oct 23 15:17:09 2017
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
SQL> ^H^H^Hexit
SP2-0042: unknown commanexit" - rest of line ignored.
SQL> quit
Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
[root@itcast ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:5B:D6:0C
inet addr:192.168.177.130 Bcast:192.168.177.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe5b:d60c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:417 errors:0 dropped:0 overruns:0 frame:0
TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30096 (29.3 KiB) TX bytes:11657 (11.3 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:16436 Metric:1
RX packets:646 errors:0 dropped:0 overruns:0 frame:0
TX packets:646 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:48640 (47.5 KiB) TX bytes:48640 (47.5 KiB)
[root@itcast ~]# sqlplus system/123456@192.168.177.130:1521/xe
SQL*Plus: Release 11.2.0.2.0 Production on Mon Oct 23 15:20:44 2017
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
SQL> sqlplus system/123456@192.168.177.130:1521/xe
SP2-0734: unknown command beginning "sqlplus sy..." - rest of line ignored.
SQL> exit
Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
[root@itcast ~]# service iptables stop
iptables:将链设置为政策 ACCEPT:filter [确定]
iptables:清除防火墙规则:[确定]
iptables:正在卸载模块:[确定]
[root@itcast ~]# ^C
[root@itcast ~]# ^C
[root@itcast ~]#
虚拟机里面可以ping通
查看防火墙开启的
关闭防火墙即可