Home > Database > Mysql Tutorial > Oracle TNS-12535: TNS: 操作超时

Oracle TNS-12535: TNS: 操作超时

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:17:20
Original
1825 people have browsed it

最近一直碰到 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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template