Oracle 11g不能串連報ORA-12537

來源:互聯網
上載者:User

一個Windows上安裝Oracle 11g資料庫,運行一段時間後,突然出現ORA-12537錯誤,應用不能串連了。檢查了alert.log記錄檔,發現錯誤資訊如下:
 
Fatal NI connect error 12537, connecting to:
  (LOCAL=NO)
 
  VERSION INFORMATION:
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 11.2.0.1.0 - Production
    Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 11.2.0.1.0 - Production
  Time: 20-3月 -2013 09:08:24
  Tracing not turned on.
  Tns error struct:
    ns main err code: 12537
   
 TNS-12537: TNS: 串連關閉
    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 (6032) as a result of ORA-609
 
Wed Mar 20 09:08:34 2013

記錄檔alert.log中不斷地出現此錯誤資訊。出錯之前沒有系統任何改動。

因為是windows系統,有些發怵,不知道系統會怎麼樣。但資料庫又是正常的,即使重啟,使用sysdba還是能登入的。問題肯定是出在監聽器上。監聽器不能和資料庫進程建立串連了。
 
使用lsnrctl status命令檢查監聽器狀態,結果是沒響應。
 

根據oracle提示,說將listener.ora檔案和sqlnet.ora檔案修改一下參數。
 
Sqlnet.ora: SQLNET.INBOUND_CONNECT_TIMEOUT=180
 Listener.ora: INBOUND_CONNECT_TIMEOUT_LISTENER=120
 
將建立串連的逾時時間設定大點,預設是60秒。
 
但是,還是不管用。這個過程中,不知道重啟了多少次伺服器。windows嘛,沒辦法的。
 
後來,又看一下listener.log檔案,突然發現這個檔案大小有4GB了。不再寫如新的內容進來了。
 
會不會是記錄檔滿了,監聽器就不工作了。於是,清理掉該檔案,一切恢複正常。

我記得,在linux下oracle 10g中,該記錄檔一旦滿了,就會不記錄日誌但監聽器正常。沒想到在windows下,11g就因此而掛了。
 
唉,細節,注意細節啊。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.