報錯如題:ORA-12519: TNS:no appropriate service handler found,應該是項目中的有些算法把全部鏈接都佔用了,沒辦法只能增大數據的鏈接,具體作法以下:算法
select count(*) from v$process --當前的鏈接數 sql
select value from v$parameter where name = 'processes' --數據庫容許的最大鏈接數 數據庫
修改最大鏈接數: session
alter system set processes = 300 scope = spfile; app
重啓數據庫: 大數據
shutdown immediate; io
startup; class
--查看當前有哪些用戶正在使用數據 file
SELECT osuser, a.username,cpu_time/executions/1000000||'s', sql_fulltext,machine select
from v$session a, v$sqlarea b
where a.sql_address =b.address order by cpu_time/executions desc;