1、查看当前数据库建立的会话情况:
select sid,serial#,username,program,machine,status from v$session;
2、查询数据库当前进程的连接数:
select count(*) from v$process;
3、查看数据库当前会话的连接数:
select count(*) from v$session;
4、查看数据库的并发连接数:
select count(*) from v$session where status='ACTIVE';
5、查询数据库允许的最大连接数
select value from v$parameter where name = 'processes';
6、查看当前有哪些用户正在使用数据:
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;
7、查看共享池大小
select * from v$sgastat where name = 'free memory' and pool = 'shared pool';