select count(*)from v$process--当前的连接数
select value from v$parameter where name='processes'--数据库允许的最大连接数