Heim >Datenbank >MySQL-Tutorial >Oracle TNS-12535: TNS: 操作超时

Oracle TNS-12535: TNS: 操作超时

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:17:201836Durchsuche

最近一直碰到 ldquo;TNS-12535: TNS: 操作超时rdquo;的问题。linux关闭防火墙命令:service iptables stop或者 chkconfig ipta

最近一直碰到 “TNS-12535: TNS: 操作超时”的问题。

1. 首先检查服务器是不是开了防火墙。防火墙会阻止连接。
linux关闭防火墙命令:service iptables stop或者 chkconfig iptables off
2. 进入到Oracle根目录下,打开ora10g\network\admin\tnsnames.ora文件,这就是网络连接的配置文件,,检查IP等配置是否正确。比如我和IP为192.168.1.1的机子建立了一个连接,命名为Test,则你在此文件中会找到这一段:
orcl =
  (DESCRIPTION =
    (ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 10.25.30.77)(PORT = 1521)))
    (CONNECT_DATA =
        (SERVER = DEDICATED)
        (SERVICE_NAME = orcl)
    )
  )

这样应该就可以了!!

linux

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:Linux自动启动MySQLNächster Artikel:Linux非root用户安装MySQL