ORA-12519: TNS:no appropriate service handler found 解決


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

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

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;


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM