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' );