oracle rac ora 12537,ORA-12537: TNS:connection closed

ORA-12537: TNS:connection closed

报错: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

type='UNKNOWN' level='16' host_id='ract1'

host_addr='10.20.31.36' version='1'>

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

type='UNKNOWN' level='16' host_id='ract1'

host_addr='10.20.31.36'>

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

type='UNKNOWN' level='16' host_id='ract1'

host_addr='10.20.31.36'>

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

type='UNKNOWN' level='16' host_id='ract1'

host_addr='10.20.31.36'>

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

本文原创发布php中文网,转载请注明出处,感谢您的尊重!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值