天天看點

Listener refused the connection with the following error 錯誤解決

web應用連接配接oracle資料庫時,經常在查詢資料時發生

Listener refused the connection with the following error: ORA-12519, TNS:no appropriate service handler found The Connection descriptor used by the client was: ip位址:1521:資料庫名

這是資料庫連接配接數量的問題,12519錯誤為監聽不能提供服務,通常為資料庫程序達到上限導緻。

可以先執行下 select count(*) from v$process ,看下現在系統有多少連接配接數,然後再查詢 select value from v$parameter where name = 'processes' ,看下oracle設定中設定了多少連接配接數,一般一個應用都會使用20個,是以如果你開了幾個應用的話(web、pl/sql、……)就會出這個問題了,這時隻需要執行下

alter system set processes = 300 scope = spfile;------這一步是關鍵

就可以了,當然300可以根據實際情況設定。