select * from v$session where username is not null數據庫
#查看不一樣用戶的鏈接數session
select username,count(username) from v$session where username is not null group by username 併發
select count(*) from v$session #鏈接數
spa
Select count(*) from v$session where status='ACTIVE' #併發鏈接數
io
show parameter processes #最大鏈接
file
alter system set processes = value scope = spfile;重啓數據庫 #修改鏈接
select
1。查看當前會話數、processes和sessions值,發現session數和2個參數的值已經很是逼近im
SQL> conn / as sysdba已鏈接。數據
SQL> select count(*) from v$session;db
SQL> show parameter processes;
SQL> show parameter sessions;
2。修改processes和sessions值
SQL> alter system set processes=300 scope=spfile;
系統已更改。
SQL> alter system set sessions=300 scope=spfile;
系統已更改。
3。查看processes和sessions參數,但更改並未生效
4。重啓數據庫,使更改生效
SQL> shutdown immediate
SQL> startup
SQL> show parameter processes
SQL> show parameter sessions