要查询Oracle用户的权限,可以使用以下几种方法:
SELECT * FROM DBA_SYS_PRIVS WHERE GRANTEE = '用户名';
SELECT * FROM DBA_TAB_PRIVS WHERE GRANTEE = '用户名';
SELECT * FROM DBA_ROLE_PRIVS WHERE GRANTEE = '用户名';
SELECT * FROM DBA_TAB_PRIVS WHERE GRANTEE = '用户名'
UNION
SELECT * FROM DBA_SYS_PRIVS WHERE GRANTEE = '用户名'
UNION
SELECT * FROM DBA_ROLE_PRIVS WHERE GRANTEE = '用户名';
SELECT * FROM SESSION_PRIVS;
请注意,上述查询语句中的“用户名”需要替换为要查询权限的具体用户。另外,执行以上查询需要具有相应的权限,如具有DBA角色或SELECT_CATALOG_ROLE角色。