標籤: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預設上限)