View the number of connections to the Oracle database and the user __python

Source: Internet
Author: User

1, query the number of Oracle connections
Select COUNT (*) from v$session;
2, query Oracle's concurrent connection number
Select COUNT (*) from v$session where status= ' ACTIVE ';
3. View the number of connections for different users
Select Username,count (username) from V$session where username are not null GROUP by username;
4. View all Users:
SELECT * from All_users;
5, view the user or role system permissions (directly assigned to the user or role system permissions):
SELECT * from Dba_sys_privs;
SELECT * from User_sys_privs;
6. View the rights included in the role (see only the roles owned by the logged on user)
SELECT * from Role_sys_privs;
7, view the User object permissions:
SELECT * from Dba_tab_privs;
SELECT * from All_tab_privs;
SELECT * from User_tab_privs;
8. View all roles:
SELECT * from Dba_roles;
9. View the roles owned by the user or role:
SELECT * from Dba_role_privs;
SELECT * from User_role_privs;

10, to see which users have SYSDBA or Sysoper system permissions (the query requires appropriate permissions)
SELECT * from V$pwfile_users;

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.