How to find out which users in which databases have DBA Authority __ Database

Source: Internet
Author: User
Tags dba

how to find out which users have DBA authority

We sometimes need to find out which users in the database server have DBA authority for security and Rights management.
You can usually use the following simple methods to get the answer:

Select the current database, execute SQL:

Select the current database, execute SQL:

SELECT * from Dba_role_privs where granted_role= ' DBA '; Which users have DBA authority

SELECT * from Dba_role_privs; All users, roles, and appropriate permissions in the current library

Note: In the results of the output, the Usertype field will have the following meaning, and you can find the user of the appropriate DBA authority.

D-dba
C-connect
R-resource

Alter user SCOTT quota unlimited on users;
To give users the right to use a table space.

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.