oracle 查询数据库链接数目

select * from v$session where username='XXXX' and status='ACTIVE' and osuser='XXX'

 

当我启动链接池的时候,能够看见会话数目增长了,这应该能够说明每一个线程都启动了一个connection。session

一、查询oracle的链接数
2select count(*) from v$session;
3查询oracle的并发链接数
4select count(*) from v$session where status='ACTIVE';
5三、查看不一样用户的链接数
6select username,count(username) from v$session where username is not null group by username;
7四、查看全部用户:
8select * from all_users;
9五、查看用户或角色系统权限(直接赋值给用户或角色的系统权限):
10select * from dba_sys_privs;
11select * from user_sys_privs;
12六、查看角色(只能查看登录用户拥有的角色)所包含的权限
13select * from role_sys_privs;
14七、查看用户对象权限:
15select * from dba_tab_privs;
16select * from all_tab_privs;
17select * from user_tab_privs;
18八、查看全部角色:
19select * from dba_roles;
20九、查看用户或角色所拥有的角色:
21select * from dba_role_privs;
22select * from user_role_privs;
23十、查看哪些用户有sysdba或sysoper系统权限(查询时须要相应权限)
24select * from V$PWFILE_USERS;并发

 

select count(*) from v$process --当前的链接数oracle

参考博文:spa

http://blog.itpub.net/24558279/viewspace-752293/.net

相关文章
相关标签/搜索