-当前的数据库连接数
select count(*) from v$process;
-数据库允许的最大连接数:
select value from v$parameter where name = 'processes';
-修改数据库最大连接数:
alter system set processes = 400 scope =spfile;
-关闭/重启数据库:
shutdown immediate;
startup;
-查询Oracle会话的方法:
select * from v$session;
-当前的session连接数:
select count(*) from v$session;
-当前并发连接数:
select count(*) from v$session where status='ACTIVE';
-查看当前数据库服务器的用户和机器所占用的连接数:
select username,count(username) ,machine from v$session group by username,machine;
查询目前连接数(linux)
show parameter processes;
会话:
select * from v$session;
连接:
select * from v$process;
select count(*) from v$process;
-数据库允许的最大连接数:
select value from v$parameter where name = 'processes';
-修改数据库最大连接数:
alter system set processes = 400 scope =spfile;
-关闭/重启数据库:
shutdown immediate;
startup;
-查询Oracle会话的方法:
select * from v$session;
-当前的session连接数:
select count(*) from v$session;
-当前并发连接数:
select count(*) from v$session where status='ACTIVE';
-查看当前数据库服务器的用户和机器所占用的连接数:
select username,count(username) ,machine from v$session group by username,machine;
查询目前连接数(linux)
show parameter processes;
会话:
select * from v$session;
连接:
select * from v$process;