How to view Oracle user permissions

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, the information of the object created by the user is added with the object created by other users, but the user has the right to access the information DBA _ *: information about the entire database

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 is added with the object created by other users, but the user has the right to access the information DBA _ *: information about the entire database

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. grant specific permissions to 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 ';

9. Check which users have sysdba or sysoper system permissions (the corresponding permissions are required for query)

Select * from V $ PWFILE_USERS

Note:

1. Run the following statement to view the system permissions provided by Oracle:

Select name from sys. system_privilege_map

2. View All system permissions of a user (including the system permissions of the role)

select privilege from dba_sys_privs where grantee='DATAUSER'unionselect privilege from dba_sys_privs where grantee in (select granted_role from dba_role_privs where grantee='DATAUSER' ); 

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.