這篇文章主要講解了“怎么解決windows下oracle監(jiān)聽(tīng)故障”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來(lái)研究和學(xué)習(xí)“怎么解決windows下oracle監(jiān)聽(tīng)故障”吧!
成都創(chuàng)新互聯(lián)公司制作網(wǎng)站網(wǎng)頁(yè)找三站合一網(wǎng)站制作公司,專注于網(wǎng)頁(yè)設(shè)計(jì),做網(wǎng)站、成都網(wǎng)站設(shè)計(jì),網(wǎng)站設(shè)計(jì),企業(yè)網(wǎng)站搭建,網(wǎng)站開(kāi)發(fā),建網(wǎng)站業(yè)務(wù),680元做網(wǎng)站,已為成百上千服務(wù),成都創(chuàng)新互聯(lián)公司網(wǎng)站建設(shè)將一如既往的為我們的客戶提供最優(yōu)質(zhì)的網(wǎng)站建設(shè)、網(wǎng)絡(luò)營(yíng)銷推廣服務(wù)!現(xiàn)象:數(shù)據(jù)庫(kù)服務(wù)及監(jiān)聽(tīng)運(yùn)行正常,但打開(kāi)功能模塊非常慢;
處理過(guò)程:
一 檢查數(shù)據(jù)庫(kù)alert_oaxx.log日志
日志切換并不高,無(wú)報(bào)錯(cuò);數(shù)據(jù)庫(kù)負(fù)載不大;
二 檢查數(shù)據(jù)庫(kù)狀態(tài)
服務(wù)和監(jiān)聽(tīng)均運(yùn)行正常,sqlplus / as sysdba登陸正常,會(huì)話數(shù)正常 .
檢查系統(tǒng)啟動(dòng)時(shí)間
初始安裝日期: 2015/5/13, 12:09:51
系統(tǒng)啟動(dòng)時(shí)間: 2018/6/14, 3:11:06
檢查網(wǎng)絡(luò)連接,發(fā)現(xiàn)大量close_wait,由進(jìn)程327000引起,經(jīng)判斷為360tray
TCP 10.25.136.5:52667 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52668 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52669 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52672 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52674 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52675 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52676 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52677 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52678 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52680 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52681 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52682 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52683 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52684 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52686 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52688 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52690 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52691 221.130.200.53:80 CLOSE_WAIT 327000 TCP 10.25.136.5:52692 221.130.200.53:80 CLOSE_WAIT 327000
三 檢查數(shù)據(jù)庫(kù)等待事件
無(wú)等待 ;
四 做tnsping發(fā)現(xiàn):
C:\Users\Administrator>tnsping oadb TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 08-5月 - 2019 15:05:04 Copyright (c) 1997, 2010, Oracle. All rights reserved. 已使用的參數(shù)文件: Y:\oracle\product\11.2.0\dbhome_1\network\admin\sqlnet.ora 已使用 TNSNAMES 適配器來(lái)解析別名 嘗試連接 (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =10.xx.1xx.5)(PORT = 15 22)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = oadb))) OK (51910 毫秒)
延遲很高,停用360tray
C:\Users\Administrator>tnsping oadb TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 08-5月 - 2019 14:58:23 Copyright (c) 1997, 2010, Oracle. All rights reserved. 已使用的參數(shù)文件: Y:\oracle\product\11.2.0\dbhome_1\network\admin\sqlnet.ora 已使用 TNSNAMES 適配器來(lái)解析別名 嘗試連接 (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = WIN-5K0CGNM3EQV)(PORT = 1522)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = oadb))) OK (24950 毫秒)
降至25秒,但還是很高,ping 主機(jī),發(fā)現(xiàn)延遲很低,禁用ipv6,效果還是一樣;
C:\Users\Administrator>ping 10.25.136.5
正在 Ping 10.25.136.5 具有 32 字節(jié)的數(shù)據(jù):
來(lái)自 10.25.136.5 的回復(fù): 字節(jié)=32 時(shí)間<1ms TTL=64
來(lái)自 10.25.136.5 的回復(fù): 字節(jié)=32 時(shí)間<1ms TTL=64
另發(fā)現(xiàn)應(yīng)用日志存在網(wǎng)絡(luò)連接超時(shí)
url=jdbc:oracle:thin:@10.2x.1x6.x:xxx:oadb;user=bxxx;pwd=xxx java.sql.SQLException: Io 異常: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=186 646784)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4)))) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:231)
檢查sqlnet.ora無(wú)明顯異常;
五 檢查數(shù)據(jù)庫(kù)監(jiān)聽(tīng),重啟監(jiān)聽(tīng),無(wú)改善,查看監(jiān)聽(tīng)日志發(fā)現(xiàn),日志在2019-04-06 2 點(diǎn)以后無(wú)更新
產(chǎn)生有大量trace:
** DBGRL Error: Text Alert Log ** DBGRL Error: SLERC_OERC, 48184 ** DBGRL Error: OSD-00002: 附加錯(cuò)誤信息 O/S-Error: (OS 87) 參數(shù)錯(cuò)誤。 ** DBGRL Error: 06-4月 -2019 02:01:39 * (CONNECT_DATA=(SID=xxdb)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=1xxxxx)(PORT=60839)) * establish * oadb * 0 Trace file y:\oracle\diag\tnslsnr\WIN-5K0CGNM3EQV\listener\trace\ora_895324_893720.trc ** DBGRL Error: Text Alert Log ** DBGRL Error: SLERC_OERC, 48184 ** DBGRL Error: OSD-00002: 附加錯(cuò)誤信息 O/S-Error: (OS 87) 參數(shù)錯(cuò)誤。 ** DBGRL Error: 系統(tǒng)參數(shù)文件為Y:\oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
查看listner.log發(fā)現(xiàn)其有4GB,在win 下存在如下問(wèn)題:
WINDOWS: Listener Hangs & Lsnrctl Commands Are Slow or Hang (文檔 ID 1319797.1)
Bug 9879101 : THE CONNECT THROUGH LISTENER WAS SLOW WHEN LISTNER LOG GROWED 4GB
處理辦法:
停上監(jiān)聽(tīng),重命名原監(jiān)聽(tīng)文件,
y:\oracle\diag\tnslsnr\WIN-5K0CGNM3EQV\listener\trace\ listener.bak.log
新建一個(gè)listener.log
感謝各位的閱讀,以上就是“怎么解決windows下oracle監(jiān)聽(tīng)故障”的內(nèi)容了,經(jīng)過(guò)本文的學(xué)習(xí)后,相信大家對(duì)怎么解決windows下oracle監(jiān)聽(tīng)故障這一問(wèn)題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。