当前位置:  数据库>oracle

ORA-12537: TNS:connection closed

    来源: 互联网  发布时间:2017-05-15

    本文导语: 报错:ORA-12537: TNS:connection closed 。 环境: Oracle:11.2.0.2 OS:LINUX 5.6 环境:RAC NODE1:10.20.31.36 NODE2:10.20.31.38   [oracle@ract1 ~]$ sqlplussys/oracle@10.20.31.36:1521/racdbas sysdba SQL*Plus: Release 11.2.0.2.0 Production on Tue Jan 15 16:19:04 2013 Copyright (c) 1982, 2...

报错:ORA-12537: TNS:connection closed 。

环境:

Oracle:11.2.0.2

OS:LINUX 5.6

环境:RAC

NODE1:10.20.31.36

NODE2:10.20.31.38

 

[oracle@ract1 ~]$ sqlplussys/oracle@10.20.31.36:1521/racdbas sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Tue Jan 15 16:19:04 2013

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

ERROR:
ORA-12537: TNS:connection closed

 

使用同样的监听,登陆ASM实例却可以

[oracle@ract1 ~]$ sqlplussys/oracle@10.20.31.36:1521/+ASMas sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Tue Jan 15 16:32:29 2013

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options

SQL>


登陆到节点二也没问题

[oracle@ract1 ~]$ sqlplussys/oracle@10.20.31.38:1521/racdbas sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Tue Jan 15 16:33:46 2013

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL>

 


监听的配置:

[oracle@ract1 admin]$ cat sqlnet.ora
# sqlnet.ora.ract1 Network Configuration File: /grid/product/11.2.0/network/admin/sqlnet.ora.ract1
# Generated by Oracle configuration tools.

NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)

ADR_BASE = /grid/app


#tcp.validnode_checking = yes


[oracle@ract1 admin]$ cat listener.ora
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
# listener.ora.ract1 Network Configuration File: /grid/product/11.2.0/network/admin/listener.ora.ract1
# Generated by Oracle configuration tools.

ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1 = ON

ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON

LISTENER_SCAN1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER_SCAN1))
)
)

 

监听状态:

[oracle@ract1 ~]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 15-JAN-2013 16:40:42

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

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 15-JAN-2013 16:06:59
Uptime 0 days 0 hr. 33 min. 43 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /grid/product/11.2.0/network/admin/listener.ora
Listener Log File /grid/app/diag/tnslsnr/ract1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.20.31.36)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.20.31.37)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1", status READY, has 1 handler(s) for this service...
Service "racdb" has 1 instance(s).
Instance "racdb1", status READY, has 1 handler(s) for this service...
Service "racdbXDB" has 1 instance(s).
Instance "racdb1", status READY, has 1 handler(s) for this service...
The command completed successfully

 


报ORA-12537: TNS:connection closed 时候的日志如下:


[grid@ract1 alert]$ pwd
/grid/app/diag/tnslsnr/ract1/listener/alert
[grid@ract1 alert]$ cat log.xml

15-JAN-2013 16:43:01 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=ract1)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186647040)) * status * 0



15-JAN-2013 16:43:03 * (CONNECT_DATA=(SERVICE_NAME=racdb)(CID=(PROGRAM=sqlplus@ract1)(HOST=ract1)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.20.31.36)(PORT=47268)) * establish * racdb * 12518



TNS-12518: TNS:listener could not hand off client connection
TNS-12547: TNS:lost contact
TNS-12560: TNS:protocol adapter error
TNS-00517: Lost contact
Linux Error: 32: Broken pipe



15-JAN-2013 16:43:05 * service_update * racdb1 * 0

 

 


[grid@ract1 ~]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.BACKUP.dg ora....up.type ONLINE ONLINE ract1
ora.DATA.dg ora....up.type ONLINE ONLINE ract1
ora....FILE.dg ora....up.type ONLINE ONLINE ract1
ora....ER.lsnr ora....er.type ONLINE ONLINE ract1
ora....N1.lsnr ora....er.type ONLINE ONLINE ract2
ora.asm ora.asm.type ONLINE ONLINE ract1
ora.cvu ora.cvu.type ONLINE ONLINE ract2
ora.gsd ora.gsd.type OFFLINE OFFLINE
ora....network ora....rk.type ONLINE ONLINE ract1
ora.oc4j ora.oc4j.type ONLINE ONLINE ract2
ora.ons ora.ons.type ONLINE ONLINE ract1
ora.racdb.db ora....se.type ONLINE ONLINE ract1
ora....SM1.asm application ONLINE ONLINE ract1
ora....T1.lsnr application ONLINE ONLINE ract1
ora.ract1.gsd application OFFLINE OFFLINE
ora.ract1.ons application ONLINE ONLINE ract1
ora.ract1.vip ora....t1.type ONLINE ONLINE ract1
ora....SM2.asm application ONLINE ONLINE ract2
ora....T2.lsnr application ONLINE ONLINE ract2
ora.ract2.gsd application OFFLINE OFFLINE
ora.ract2.ons application ONLINE ONLINE ract2
ora.ract2.vip ora....t1.type ONLINE ONLINE ract2
ora....ry.acfs ora....fs.type ONLINE ONLINE ract1
ora.scan1.vip ora....ip.type ONLINE ONLINE ract2


    
 
 
 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • 出现ORA-01401和ORA-01008错误?
  • Eclipse连接Oracle数据库的ORA-00604 ORA-12705错误
  • oracle ORA-01114、ORA-27067错误解决方法
  • Oracle不能删除表 ORA-00604 ORA-01422 错误
  • 如何得到带有ora的行的下一行
  • ORA-12514及ORA-28547错误解决方案
  • 如何配置 linux 下 oracle 的 listener .ora 和
  • 浅析如何在tnsnames.ora中配置监听
  • Orcle的package中访问其它Schema的表报错ORA-00942解决方法
  • oracle远程连接服务器出现 ORA-12170 TNS:连接超时 解决办法
  • [Oracle] 浅析令人抓狂的ORA-01555问题
  • 解决报错ora-32035的方法分析
  • aq.executeQuery: ORA-00020: maximum number of processes (59) exceeded
  • Oracle 数据库闪回功能设置出现ORA-19809和ORA-19804错误
  • ORA-00947:Not enough values (没有足够的值)的深入分析
  • solaris10 安装 ora9.2.0.1 时报错
  • 在UNIX下,我的ORA817该怎么样才可以自己启动呀?
  • 基于ORA-12170 TNS 连接超时解决办法详解
  • plsql连接oracle数据库报ora 12154错误解决方法
  • 安装oracle出现error:ora-01031:insufficient privilleges的解决


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,