zoukankan      html  css  js  c++  java
  • ORACLE的监听日志太大,客户端无法连接 BUG:9879101

    检查步骤:
    1、进入sqlplus查看数据库的状态,显示当前数据库的状态为OPEN
    脚本:select status from v$Instance;
    2、检查数据库的监听服务,登录的时候发现进入监听程序的速度非常慢
    脚本:lsnrctl status 
    3、查看监听日志的大小,位置如下:
    $ORACLE_BASEdiag nslsnr<hostname>listener race
     
    4、发现ORACLE的日志已经达到4G了,印象中ORACLE在windows平台有bug,从操作系统里面的服务关闭,然后就可以删除或重命名该日志了
     
    5、重启启动监听即可;
    lsnrctl stop  停止
    lsnrctl start  启动
    6、当前的问题已经解决了,保证系统能够正常运行,但是这是一个治标不治本的方法,因此又登录metalink查找相应的解决方法,以下摘自Metalink:
    1)问题的原因:当 listener.log大小达到4G

     

    The listener.log has reached the file size limit (on Windows) of 4G. This issue is described in published bug:
    Bug:9879101 THE CONNECT THROUGH LISTENER WAS SLOW WHEN LISTENER LOG GREW to 4GB

     

    2) 出现该BUG问题的平台
    Oracle Net Services - Version 11.1.0.7 to 11.2.0.4 [Release 11.1 to 11.2]

     

    Microsoft Windows (32-bit)
    Microsoft Windows x64 (64-bit)
    This issue is limited to the Windows OS.
    ***Checked for relevance on 14-OCT-2013***

     

     
    3)出现该BUG的症状

     

    The listener is hung or is extremely slow to respond.
    Tnspings to the listener take a very long time (seconds) to respond or the ping hangs completely.
    Lsnrctl utility commands are either hanging or slow to respond.
    ADR Diagnostics are enabled in this environment and the flat file TNSListener log file is at or approaching the size of 4 gigabytes. 

     

     
    4)解决方法:关闭监听写日志
    脚本:

     

    LSNRCTL>set current_listener <listener_name>
    LSNRCTL>set log_status OFF
    LSNRCTL>save_config
     
  • 相关阅读:
    WPF线程调用UI元素
    WPF使用阿里巴巴矢量图标图ttf
    WPF读取Excel表格数据到DataGrid
    WPF开发的软件在触摸屏当操作遇到边界时
    WPF 全局样式(滚动条)
    WPF TextBox文本自动换行
    Maven : Cannot download sources
    nginx关闭后仍然能够访问localhost:80
    微信公众号开发总结
    CAT window10 本地安装
  • 原文地址:https://www.cnblogs.com/zyanrong/p/11315526.html
Copyright © 2011-2022 走看看