ORA-12519, TNS:no appropriate service handler found

有時候連得上數據庫,有時候又連不上.

可能是數據庫上當前的連接數目已經超過了它能夠處理的最大值.

首先得使用DBA角色登錄


select count(*) from v$process --當前的連接數
select value from v$parameter where name = 'processes' --數據庫允許的最大連接數
修改最大連接數:
alter system set processes = 300 scope = spfile;
重啓數據庫:
shutdown immediate;
startup;
--查看當前有哪些用戶正在使用數據
SELECT osuser, a.username,cpu_time/executions/1000000||'s', sql_fulltext,machine
from v$session a, v$sqlarea b
where a.sql_address =b.address order by cpu_time/executions desc;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章