Query the permissions or roles of a user in oracle db.

Source: Internet
Author: User

Query the permissions or roles of a user in oracle db.

The simplest method is to log on to the database with the user and execute the following statement:


Select * from session_privsselect * from session_roles


In oracle, how does one find all roles and permissions of a user?

(1) check em, that is, dbconsole, open the user, select the user you want to query, edit it, view its role and object permissions, and system permissions.
(2) dba_tab_privs, dba_sys_privs, and dba_role_privs respectively.

How can I query Oracle user permissions?

1. oracle users view their permissions and Roles
Select * from user_tab_privs;
Select * from user_role_privs;
2. View permissions and roles of any user as a sys user
Select * from dba_tab_privs;
Select * from dba_role_privs;

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.