oracle檢視允許的最大連線數
阿新 • • 發佈:2019-01-28
select count(*) from v$session where status='ACTIVE'; --併發連線數
show parameter processes; --最大連線
select count(*) from v$session; --當前的session連線數
alter system set processes = 300 scope = spfile;--修改最大連線數:
select value from v$parameter where name ='processes'--資料庫允許的最大連線數
select count(*) from v$process where program='ORACLE.EXE(SHAD)'; --當前的資料庫連線數
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;--檢視當前有哪些使用者正在使用資料
提醒:
進入安裝ORACLE電腦的cmd,輸入sqlplus,輸入賬戶和密碼然後進行操作
show parameter processes; --最大連線
select count(*) from v$session; --當前的session連線數
alter system set processes = 300 scope = spfile;--修改最大連線數:
select value from v$parameter where name ='processes'--資料庫允許的最大連線數
select count(*) from v$process where program='ORACLE.EXE(SHAD)'; --當前的資料庫連線數
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;--檢視當前有哪些使用者正在使用資料
提醒:
進入安裝ORACLE電腦的cmd,輸入sqlplus,輸入賬戶和密碼然後進行操作