TNSPING1521速度慢 数据库登录速度慢的解决办法

来源:互联网 发布:spotlight on mysql 编辑:程序博客网 时间:2024/06/11 21:48
今天在日志中看到连续的报TNS-12537错误

***********************************************************************
Fatal NI connect error 12537, connecting to:
(LOCAL=NO)

  VERSION INFORMATION:
TNS for Linux: Version 11.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
  Time: 19-JAN-2011 20:48:44
  Tracing not turned on.
  Tns error struct:
    ns main err code: 12537
    
TNS-12537TNS:connection closed
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
opiodr aborting process unknown ospid (5497) as a result of ORA-609
Wed Jan 19 20:49:04 2011


***********************************************************************
Fatal NI connect error 12537, connecting to:
(LOCAL=NO)

  VERSION INFORMATION:
TNS for Linux: Version 11.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
  Time: 19-JAN-2011 20:49:04
  Tracing not turned on.
  Tns error struct:
    ns main err code: 12537
    
TNS-12537TNS:connection closed
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
opiodr aborting process unknown ospid (5502) as a result of ORA-609
Wed Jan 19 20:51:24 2011


***********************************************************************
Fatal NI connect error 12537, connecting to:
(LOCAL=NO)

  VERSION INFORMATION:
TNS for Linux: Version 11.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
  Time: 19-JAN-2011 20:51:24
  Tracing not turned on.
  Tns error struct:
    ns main err code: 12537
    
TNS-12537TNS:connection closed
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
opiodr aborting process unknown ospid (5541) as a result of ORA-609

Wed Jan 19 20:52:04 2011


C:\Users>TNSPING 10.64.52.20 1521

TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 10-10月-
2012 13:40:19

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

已使用的参数文件:
D:\app\Administrator\product\11.2.0\client_1\network\admin\sqlnet.ora

已使用 EZCONNECT 适配器来解析别名
尝试连接 (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST
=10.64.52.20)(PORT=1521)))


速度非常慢  基本上没反应 。

同时,监听无响应。


数据库通过sqlplus / as sysdba能够正常登录,通过sqlplus system/password@orcl 无法登录。所以基本上可以确定是监听程序出现问题。

于是检查listener日志,在D:/app/Administrator/diag/tnslsnr/orcl/listener/trace下发现listner.log 已达4G。于是删除listerner.log日志,重启listener,一切恢复正常。

使用tnsping返回时间10msec。


为了避免以后再出现类似的情况,可以在listener.ora中加入

LOGGING_LISTENER = OFF

重启listner,oracle将不再产生listener.log。




原创粉丝点击