oracle 登入資料庫時報 無監聽 的一種解決方式(監聽記錄檔達到4g預設上限)

來源:互聯網
上載者:User

標籤:body   檢查   adr   version   步驟   mic   log   for   bit   

問題:登入伺服器時 報無監聽服務

 

檢查步驟:

1、進入sqlplus查看資料庫的狀態,顯示當前資料庫的狀態為OPEN

指令碼:select status from v$Instance;

 

2、檢查資料庫的監聽服務,登入的時候發現進入監聽程式的速度非常慢

指令碼:lsnrctl status 

 

3、查看監聽日誌的大小,位置如下:

$ORACLE_BASE\diag\tnslsnr\<hostname>\listener\trace\

 

 

 

 

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

 

 

oracle 登入資料庫時報 無監聽 的一種解決方式(監聽記錄檔達到4g預設上限)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.