11、查询的连接数
2select count(*) from v$session;32、查询oracle的并发连接数4select count(*) from v$session where status='ACTIVE';53、查看不同用户的连接数6select username,count(username) from v$session where username is not null group by username;74、查看所有用户:8select * from all_users;95、查看用户或角色系统权限(直接赋值给用户或角色的系统权限):10select * from dba_sys_privs;11select * from user_sys_privs;126、查看角色(只能查看登陆用户拥有的角色)所包含的权限13select * from role_sys_privs;147、查看用户对象权限:15select * from dba_tab_privs;16select * from all_tab_privs;17select * from user_tab_privs;188、查看所有角色:19select * from dba_roles;209、查看用户或角色所拥有的角色:21select * from dba_role_privs;22select * from user_role_privs;2310、查看哪些用户有sysdba或sysoper系统权限(查询时需要相应权限)24select * from V$PWFILE_USERS;