欢迎来到代码驿站!

Oracle

当前位置:首页 > 数据库 > Oracle

解决ORA-12170:TNS connect timeout occurred问题

时间:2021-04-04 10:15:01|栏目:Oracle|点击:

公司服务器周末要加硬盘,周一来后应用连不上了。报错如下 报错: ORA-12170:TNS connect timeout occurred 

第一反应是监听没开:

1. 测试了一下, 连接超时没用ping 通

C:\Users\Administrator>tnsping brorcl

TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 15-6月 -2015 09:45:43

Copyright (c) 1997, 2010, Oracle.  All rights reserved.

已使用的参数文件:

D:\oracle\product\11.2.0\dbhome_1\network\admin\sqlnet.ora

已使用 TNSNAMES 适配器来解析别名

尝试连接 (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.14.147.112)(PORT = 42525)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = brorcl)))
TNS-12535: TNS: 操作超时

2. 我登陆到远程服务器上,查看了一下监听的状态

C:\Documents and Settings\Administrator>lsnrctl status

LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 15-6月 -2015 09:52:54

Copyright (c) 1991, 2010, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
Start Date                15-6月 -2015 09:36:02
Uptime                    0 days 0 hr. 16 min. 55 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   F:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora
Listener Log File         F:\app\Administrator\product\11.2.0\dbhome_1\network\log\listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=x3650m3)(PORT=47512)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=47512)))
Services Summary...
Service "BANKASSIST" has 1 instance(s).
  Instance "brorcl", status READY, has 1 handler(s) for this service...
Service "CLRExtProc" has 1 instance(s).
  Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "brorcl" has 2 instance(s).
  Instance "brorcl", status UNKNOWN, has 1 handler(s) for this service...
  Instance "brorcl", status READY, has 1 handler(s) for this service...
Service "brorclXDB" has 1 instance(s).
  Instance "brorcl", status READY, has 1 handler(s) for this service...
The command completed successfully

看到监听也正常,本地连接进去也很正常。

3.  我想了一下本地能访问远程连接不上是不是防火墙问题,于是我关闭了windows防火墙,果然在远程tnsping 能ping通了;

4. 结果:应该是防火墙有改动了,最后把 服务器防火墙的 ip和端口添加为例外,应用恢复正常了。

总结:

一般遇到tns 的问题通常都是监听或者是网络问题

          1. 查看监听是否正常
          2. 查看 ip 或端口有没有改动
          3. 查看防火墙

以上所述是小编给大家介绍的解决ORA-12170:TNS connect timeout occurred问题,希望对大家有所帮助!

上一篇:Oracle用户连续登录失败次数限制如何取消

栏    目:Oracle

下一篇:Oracle数据库"记录被另一个用户锁住"解决方法(推荐)

本文标题:解决ORA-12170:TNS connect timeout occurred问题

本文地址:http://www.codeinn.net/misctech/94308.html

推荐教程

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:914707363 | 邮箱:codeinn#126.com(#换成@)

Copyright © 2020 代码驿站 版权所有