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
  • 9542

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

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

ORA-12537: TNS:connection closed

问题描述: 1、就在刚才,遇到了一个小问题,通过服务名怎么也连接不上数据库: [oracle@rac1 ~]$ sqlplus system/oracle@rac SQL*Plus: Release ...

ORA-12537: TNS:connection closed

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

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 * 的解决方案

SSH无法连接:Connection closed by foreign host

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

cygwin connection closed by ::1

Cygwin 1.7.1版本ssh问题 解决办法一 在安装好Cygwin 1.7.1后,进入Cygwin会遇到mkpasswd和mkgroup提示,强行做ssh配置,执行ssh...

解决 OpenSSH - “ Error: Connection closed by server with exitcode 128 ” 错误(ZT)

解决 OpenSSH - “ Error: Connection closed by server with exitcode 128 ” 错误(ZT) 昨晚,使用 FileZilla ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

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