查看一个用户的所有权限包含其角色的权限
select privilege from dba_sys_privs where grantee='IMES_SLAB' union
select privilege from dba_sys_privs where grantee in (select granted_role from dba_role_privs where grantee='IMES_SLAB' );
查看所有用户
select * from dba_users;
查看用户下是否有对象
select object_type,count(*) from all_objects where owner='JACK' group by object_type;