ora 12170 tns 连接超时

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 ~]#

虚拟机里面可以ping通

查看防火墙开启的

关闭防火墙即可

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值