View User Rights

Source: Internet
Author: User

1. View All Users:
SELECT * from Dba_users;
SELECT * from All_users;

2. View the currently logged-on User:
SELECT * from User_users;


3. View system permissions for all users:
SELECT * from Dba_sys_privs;

4. View the system permissions that the currently logged-on user has
SELECT * from User_sys_privs;

5. View the system permissions for the roles and roles owned by the currently logged-on user

SELECT * from Role_sys_privs;


6. View all user-owned object permissions:
SELECT * from Dba_tab_privs;
SELECT * from All_tab_privs;

7. View the object permissions that the currently logged-on user has:
SELECT * from User_tab_privs;


8. View all roles:
SELECT * from Dba_roles;


9. View the roles of all users

SELECT * from Dba_role_privs;

10. View the roles owned by the currently logged-on User:
SELECT * from User_role_privs;

11. See which users have SYSDBA or sysoper system privileges

SELECT * FROM V$pwfile_users

12. View all system permissions:

Select name from Sys.system_privilege_map

13. View system permissions for the system permissions that a user has and the roles they have:

SELECT privilege
From Dba_sys_privs
WHERE grantee = ' APPS '
UNION
SELECT privilege
From Dba_sys_privs
WHERE grantee in
(SELECT granted_role from dba_role_privs WHERE grantee = ' APPS ');

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.