天天看點

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

公司的系統使用的oracle資料庫,自己個人比較懶不想安裝oracle的企業版。

是以就安裝oracle xe版本,但是在使用過程中,程式經常出現如下的錯誤資訊:

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

listener refused the connection with the following error:ora-12519,tns:no appropriate service handler found. the connection descriptor used by the client was:127.0.0.1:1521:xe

因為本機使用不是固定ip,在公司使用靜态ip,在家使用無線ip位址不固定。是以本機的oracle位址我使用的一直是127.0.0.1。

經過一番百度。查到如下的相關資訊:

xe預設的并發連接配接數是40。當超過這個連接配接數後,資料庫就會決絕其他的連接配接。

查詢我現在資料庫的實際連接配接數,如下:

select count(*) from v$process;

查詢我現在資料庫程序數的上限,如下:

select value from v$parameter where name =‘processes’;

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

可以看到現在資料庫連接配接的最大上限為40,而目前的連接配接數已經達到了39,已經無法在進行新的連接配接。

我們隻需修改initsid.ora中的processes的大小,即可。

alter system set processes = 300 scope = spfile;

其中的300可以根據自己的實際資料庫連接配接數,進行調整。

修改完畢後,我們隻需重新開機啟動資料庫即可。