Thursday, June 27, 2013
Query to find user privileges and roles
SQL> SELECT * FROM DBA_SYS_PRIVS WHERE GRANTEE='HOLDWIND';
GRANTEE PRIVILEGE ADM
------------------------------ ---------------------------------------- ---
HOLDWIND UNLIMITED TABLESPACE NO
SQL> SELECT * FROM DBA_SYS_PRIVS WHERE GRANTEE='DHOLDWIN';
GRANTEE PRIVILEGE ADM
------------------------------ ---------------------------------------- ---
DHOLDWIN CREATE TABLE NO
DHOLDWIN UNLIMITED TABLESPACE NO
SQL>
SQL> SELECT * FROM DBA_ROLE_PRIVS WHERE GRANTEE = 'HOLDWIND';
GRANTEE GRANTED_ROLE ADM DEF
------------------------------ ------------------------------ --- ---
HOLDWIND DBA NO YES
HOLDWIND ICS_USER NO YES
SQL> SELECT * FROM DBA_ROLE_PRIVS WHERE GRANTEE = 'DHOLDWIN';
GRANTEE GRANTED_ROLE ADM DEF
------------------------------ ------------------------------ --- ---
DHOLDWIN DBA NO YES
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment