Data dictionary tables for Oracle users, roles, permissions (System permissions, object permissions)

Source: Internet
Author: User

1? Dictionary Table of the three

1.1? User

Select? *? From? dba_users;

Select? *? From? all_users;

Select? *? From? user_users;

1.2? role

Select? *? From? dba_roles;

1.3? Permissions

Divided into system permissions and object permissions:

Select? *? From? system_privilege_map;

Select? *? From? table_privilege_map;

2? A dictionary table of the relationships between three people

The table name suffix for this type of relational dictionary table contains "_privs"

2.1? Users and Roles

User-owned roles:

Select? *? From? dba_role_privs;

Select? *? From? user_role_privs;

Select? *? From? role_role_privs;

r Ole_role_privs and role_role_ Privs? dba_role_privs

d Ba_role_privs grantee fields include user name and role name

u Ser_role_privs username fields include user name of the operating user

Role_role_privs of the The role field is just a character name .

Note:? role_all_privs, huh? Why didn't you understand ? .

2.2? Users and Permissions

User-owned system permissions:

Select? *? From? dba_sys_privs;

Select? *? From? user_sys_privs;

Note:? all_sys_privs, huh? Why didn't you understand ? .

??

User-owned object permissions:

Select? *? From? dba_tab_privs;

Select? *? From? all_tab_privs;

Select? *? From? user_tab_privs;

Select? *? From? dba_col_privs;

Select? *? From? all_col_privs;

Select? *? From? user_col_privs;

2.3? Roles and Permissions

Query granted object permissions (usually owned by the owner)

Select? *? From? role_sys_privs;

Select? *? From? role_tab_privs;

3? other

Query granted object permissions (usually owned by the owner)

Select? *? From? user_tab_privs_made;

Select? *? From? all_tab_privs_made;

User-owned object permissions

Select? *? From? user_tab_privs_recd;

Select? *? From? all_tab_privs_recd;

Object permissions for user-assigned columns

Select? *? From? user_col_privs_made;

Select? *? From? all_col_privs_made;

User-owned object permissions on the column

Select? *? From? user_col_privs_recd;

Select? *? From? all_col_privs_recd;

?

Transferred from: http://blog.csdn.net/huang_xw/article/details/6527762

Data dictionary tables for Oracle users, roles, permissions (System permissions, object permissions)

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.