Αποτελέσματα Αναζήτησης
21 Μαρ 2012 · Figure out how to do this for current user without DBA privileges. Probably involves USER_SYS_PRIVS (directly granted system privileges), USER_TAB_PRIVS (directly granted object privs) USER_ROLE_PRIVS (user's directly granted roles), ROLE_ROLE_PRIVS (for getting inherited roles), ROLE_SYS_PRIVS (system privs through roles) and ROLE_TAB_PRIVS ...
List all users who can SELECT on a particular table (either through being given a relevant role or through a direct grant (ie grant select on atable to joe))? The result of this query should also show through which role the user has this access or whether it was a direct grant.
The GRANT statement assigns privileges and roles to MySQL user accounts and roles.
Learn to retrieve user privileges and view tables owned by users within Oracle using basic and advanced SQL query methods with this step-by-step tutorial.
This statement displays the privileges and roles that are assigned to a MySQL user account or role, in the form of GRANT statements that must be executed to duplicate the privilege and role assignments. Note. To display nonprivilege information for MySQL accounts, use the SHOW CREATE USER statement.
The MySQL SHOW GRANTS statement returns all privileges and roles granted to an account user or role. Here’s the basic syntax of the SHOW GRANTS statement: SHOW GRANTS [ FOR { user | role } [ USING role [, role ] ...]]
28 Αυγ 2012 · Use common_schema's sql_show_grants view. For example, you can query: SELECT sql_grants FROM common_schema.sql_show_grants; Or you can query for particular users, for example: SELECT sql_grants FROM common_schema.sql_show_grants WHERE user='app'; To install common_schema, follow the instructions here. Disclaimer: I am author of this tool.