如何Oracle查出一个用户具有的所有系统权限和对象权限
1. 系统权限
1 SELECT * 2 FROM DBA_SYS_PRIVS 3 WHERE GRANTEE = ‘LCAM_SYS_1216‘ 4 UNION ALL 5 SELECT * 6 FROM DBA_SYS_PRIVS 7 WHERE GRANTEE IN 8 (SELECT GRANTED_ROLE FROM DBA_ROLE_PRIVS WHERE GRANTEE = ‘LCAM_SYS_1216‘);
2.对象权限
1 SELECT * 2 FROM DBA_TAB_PRIVS 3 WHERE GRANTEE = ‘LCAM_SYS_1216‘ 4 UNION ALL 5 SELECT * 6 FROM DBA_TAB_PRIVS 7 WHERE GRANTEE IN 8 (SELECT GRANTED_ROLE FROM DBA_ROLE_PRIVS WHERE GRANTEE = ‘LCAM_SYS_1216‘);
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。