oracle中如何查找用戶具有哪些權(quán)限?
一確定角色的權(quán)限:
select*fromrole_tab_privs;包含了授予角色的對(duì)象權(quán)限select*fromrole_role_privs;包含了授予另一角色的角色select*fromrole_sys_privs;包含了授予角色的系統(tǒng)權(quán)限二確定用戶帳戶所授予的權(quán)限:
select*fromDBA_tab_privs;直接授予用戶帳戶的對(duì)象權(quán)限select*fromDBA_role_privs;授予用戶帳戶的角色select*fromDBA_sys_privs;授予用戶帳戶的系統(tǒng)權(quán)限三查看當(dāng)前用戶權(quán)限及角色:SQL>select*fromsession_privs;SQL>select*fromuser_role_privs;四查詢某一角色的具體權(quán)限:例如查看RESOURCE具有那些權(quán)限SQL>SELECT*FROMDBA_SYS_PRIVSWHEREGRANTEE='RESOURCE';