Description of Oracle Data Dictionary attempts

Source: Internet
Author: User

The types of Oracle Data Dictionary views are: User, all, and DBA.

User _ *: Information about objects owned by users, that is, information about objects created by users

All _ *: Information about objects accessible to users, that is, information about the objects created by users plus

Information about objects created by other users but accessed by the user

DBA _ *: Information about objects in the entire database

(Here, * Can be tables, indexes, objects, and users .)

1. View All Users

Select * From dba_user;

Select * From all_users;

Select * From user_users;

2. view the user's system Permissions

Select * From dba_sys_privs;

Select * From all_sys_privs;

Select * From user_sys_privs;

3. View user object permissions

Select * From dba_tab_privs;

Select * From all_tab_privs;

Select * From user_tab_privs;

4. view all roles

Select * From dba_roles;

5. view User Roles

Select * From dba_role_privs;

Select * From user_role_privs;

6. view the default tablespace of the current user

Select username, default_tablespace from user_users;

7. view the specific permissions of a role

Such as grant connect, resource, create session, create view to test;

8. view the permissions of a resource.

Use select * From dba_sys_privs where grantee = 'resource ';

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.