View the permissions and related views of a user in Oracle

Source: Internet
Author: User

Query roles of a user:
Select grantee, granted_role from dba_role_privs where grantee = 'wjw ';
Query the system permissions of a user:
Select grantee, privilege from dba_sys_privs where grantee = 'wjw ';
Query the system permissions of a role:
Select privilege from role_sys_privs where role = 'resource ';
Queries the roles in a role.
Select granted_role from role_role_privs where role = 'sysdb ';

If you want a user to viewDatabaseData Dictionary permission, but you do not have the system permission or permissions for user data.ManagementUseful Personnel)
Grant create session, select_catalog_role to wjw;

Users, roles, and permissionsDBAView:
Dba_users provides user information
Dba_roles: displays all roles in the database
Dba_col_privs displays column-level object authorization
Dba_role_privs displays users and Roles
Dba_sys_privs: displays the users granted system permissions.
Dba_tab_privs displays users and their permissions on the table
Role_role_privs
Role_sys_privs displays the system permissions granted to the role
Role_tab_privs displays the table permissions granted to the role
Session_privs: displays the permissions that can be used by users.
Session_roles: displays the roles currently available to users.

Http://space.itpub.net/26194851/viewspace-711715

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.