mycat->oracle報java.sql.SQLException: 無法從通訊端讀取更多的資料

來源:互聯網
上載者:User

標籤:com   分享圖片   兩台   image   sha   app   奇葩   方案   except   

今天下午,測試環境清算的時候又出現了之前的一個異常,這次把錯誤資訊全部打出來了,java.sql.SQLException: 無法從通訊端讀取更多的資料,是使用mycat串連oracle的,如下所示:

ORA-17410: No more data to read from socket 

Your database connection has timed out, either due to network problems or due to Oracle reaching the IDLE_TIME profile limit. 

Your application however tried to use the connection, but as the connection has closed, failed to do so. 
This error mostly happens when using connection pools. Normally, when a connection is timed out or gone, the application should automatically reconnect. 
Failure to do so results in this error.

經查,oracle後台以及alert.log沒有任何異常,也不應該是oracle jdbc驅動的問題,trace檔案也沒有異常。

看了下mycat.log,13:00之後,心跳就沒發了,如下:

重啟mycat之後,應用沒有重啟,再次運行,就沒有這個問題了。之前也是,mycat經常遇到各種奇葩問題,因為我們是兩台虛擬機器,不排除網路不穩定,但是都沒有解決方案。看下用的是dataHost的串連數都很大,應該不是這個問題,只有三個心跳日誌是因為配置了三個dataHost。

不過我們已經打算切換sharding-jdbc了。

參考:

70227040

78968181

http://www.iteye.com/problems/38600

25797885

mycat->oracle報java.sql.SQLException: 無法從通訊端讀取更多的資料

聯繫我們

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