How to view oracle user permissions

Source: Internet
Author: User

How to view the permissions of oracle users 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, the information of the object created by the user plus the object created by other users, but the information DBA _ * that the user has the right to access: 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; www.2cto.com 2. View user 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 the user's role select * from dba_role_privs; select * from user_role_privs; www.2cto.com 6. view the current user's default tablespace select username, default_tablespace from user_users; 7. view the specific permissions of a role, such as grant connect, resource, create session, and create view to TEST; 8. view the permissions of a RESOURCE using SELECT * FROM DBA_SYS_PRIVS where grantee = 'resource'; Author: jianhuili

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.