數據庫報錯:
Caused by: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12519, TNS:no appropriate service handler found
The Connection descriptor used by the client was:
localhost:1521:XE
操作數據庫的時候報這個錯誤
在StackOverflow看了國外的一些人的分析,最后解決了:
我的解決過程:
1.我在用mybatis操作數據庫的時候session使用不當,一些session沒有close
如果你有類似問題最好檢查一下你應用中是不是操作session不當,比如在某個循環里開啟了session,沒關閉
2.以防萬一,我還是 將oracle切換到了system用戶執行 alter system set processes = 300 scope = spfile;
然后重啟數據庫,這個問題就解決了