TNS:connection closed

原创 2016年06月01日 08:09:25

<p>
连接数据库时出现TNS:connection closed .</p><p>
</p><p>tnsping,也出现<span style="font-family: monospace; white-space: pre; background-color: rgb(240, 240, 240);">TNS:connection closed.</span></p>
C:\Users\Administrator>tnsping orcl


TNS Ping Utility for 64-bit Windows: Version 11.2.0.2.0 - Production on 01-JUN-2016 00:08:59


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


Used parameter files:
D:\app\Administrator\product\11.2.0\client_1\NETWORK\ADMIN\sqlnet.ora




Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST =127.0.0.1)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME =XE)))
TNS-12537: TNS:connection closed

首先怀疑监听器出了问题

在启动监听时,出现了异常

Service "xe" has 1 instance(s).
  Instance "xe", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully


解决方案:

找到监听的ora文件:Listener Parameter File   D:\app\Administrator\product\11.2.0\client_1\NETWORK\ADMIN\listener.ora

核对以下配置内容

SID_LIST_LISTENER =
  (SID_LIST =
     (SID_DESC =
      (GLOBAL_DBNAME = xe)
      (ORACLE_HOME =d:\app\Administrator\product\11.2)
      (SID_NAME = xe) 
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST =127.0.0.1)(PORT = 1521))
    )
  )

ADR_BASE_LISTENER = d:\app\Administrator

注:xe为数据库实例名


重启后恢复正常





Oracle 11gR2 RAC 数据库不能连接(ORA-12537: TNS:connection closed)的解决

Oracle 11gR2 RAC 数据库不能连接(ORA-12537: TNS:connection closed)的解决   [oracle@rac01 ~]$ sqlplus /nolog ...
  • gyming
  • gyming
  • 2012年08月29日 21:29
  • 9683

ORA-12537: TNS:connection closed

环境:Oracle linux 5.8 + Oracle 11g rac 问题描述:客户端PLSQL与服务器端SQLplus都无法连接数据库,报错ORA-12537:TNS:Connection cl...

ORA-12537: TNS:connection closed错误处理过程

1,同事说oracle测试换了连接不上了,报错如下[oracle@pldb236 admin]$ rlwrap sqlplus powerdesk/pd141118@PD236SQL*Plus: Re...
  • mchdba
  • mchdba
  • 2015年11月24日 21:07
  • 9596

11G RAC 权限不对登陆时遇到监听报错:ORA-12537 TNS:connection closed/TNS-12518

一个群友遇到了监听的错误:ORA-12537: TNS:connection closed 搜索发现可能原因是: ORA-12537 if Listener (including SCAN Liste...

TNS-12547: TNS:lost contact TNS-12537: TNS:connection closed as a result of ORA-609

检查alert日志发现如下报错:  Tue Nov 17 01:04:49 2015  ********************************************************...

ssh 提示Connection closed by * 的解决方案

ssh 提示Connection closed by * 的解决方案
  • lile777
  • lile777
  • 2017年06月20日 17:19
  • 1150

SSH无法连接:Connection closed by foreign host

Connection closed by foreign host 解决方法 连接管理终端,执行如下命令: 最后重启sshd的路径不一定和教程一样,要找到自己的sshd路径进行重启。...

nutz连接mysql异常处理:MySQLNonTransientConnectionException: No operations allowed after connection closed

异常信息(部分): 2014-11-26 12:01:47,815 [http-6888-6] WARN  com.mchange.v2.c3p0.impl.NewPooledConnection -...

ssh问题:ssh_exchange_identification: Connection closed by remote host

启动sshd服务时,报如下的错误信息: 引用 # /usr/local/sbin/sshd Could not load host key: /usr/local/etc/ssh/ssh_h...
  • dssxk
  • dssxk
  • 2011年09月09日 10:02
  • 2779

No operations allowed after connection closed. 解决办法

Java与数据库(Mysql)打交道的时候,经常会出现一个错误:No operations allowed after connection closed.字面意思是:连接关闭后,不允许执行任何操作。...
  • zlj1217
  • zlj1217
  • 2017年02月04日 22:57
  • 3782
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:TNS:connection closed
举报原因:
原因补充:

(最多只允许输入30个字)