oracle user privs

maojinyu發表於2011-07-14

select * from dba_role_privs s where s.GRANTEE='MAO';

select * from dba_sys_privs where GRANTEE='MAO';

select * from dba_col_privs where GRANTEE='MAO';

select * from dba_tab_privs tp where tp.grantee='MAO'

[@more@]SELECT dbms_metadata.get_ddl('USER','MAO') FROM dual;
SELECT DBMS_METADATA.GET_GRANTED_DDL('ROLE_GRANT','MAO') from dual;
SELECT DBMS_METADATA.GET_GRANTED_DDL('OBJECT_GRANT','MAO') from dual;
SELECT DBMS_METADATA.GET_GRANTED_DDL('SYSTEM_GRANT','MAO') from dual;
SELECT dbms_metadata.get_ddl('ROLE','DBA') from dual;
SELECT DBMS_METADATA.GET_GRANTED_DDL('SYSTEM_GRANT','DBA') from dual;

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9907339/viewspace-1052462/,如需轉載,請註明出處,否則將追究法律責任。

相關文章