從在Linux上安裝Oracle到投入使用才幾天,碰到的問題就成百上千的。在使用客戶端連接遠程Oracle數據庫服務器時,出現了listener refused the connection with the following error ora-12519 Listener refused the connection with the following error:ORA-12519, TNS:no appropriate service handler foundThe Connection descriptor used by the client was: xxx
剛開始以爲是客戶端listener沒搞好,搞了好長時間還是不能連接成功。
後來就登錄數據庫服務器,執行sqlplus看看數據庫是否正常,但卻出現了ORA-00020: maximum number of processes (%s) exceeded的錯誤,這才恍然大悟。哎 有浪費這麼多時間。
到網上搜了一把,找到了解決方法。
1. 以先把你的應用程序關閉,這樣就降低了oracle的連接數
2. 以sysdba身份登錄數據庫
3. 執行show parameter process, 看看processes的值是多少
4. 執行 alter system set processes = <比你剛纔看到的processes值大的數字> scope=spfile
5. shutdown immediate
6. startup
再試一下連接,應該不會出現上述錯誤了