dba jurisdiction :user For you dba Permission account , as sys,system, Or has been awarded dba jurisdiction

1. Query user's system permissions
SQL> SELECT GRANTEE,PRIVILEGE FROM DBA_SYS_PRIVS WHERE GRANTEE = 'SCOTT';(
dba jurisdiction )

2. Query user's object permissions
SQL> SELECT GRANTEE,TABLE_NAME,PRIVILEGE FROM DBA_TAB_PRIVS WHERE GRANTEE =
'SCOTT';(dba jurisdiction )

3. Query user owned roles
SQL> SELECT GRANTEE,GRANTED_ROLE FROM DBA_ROLE_PRIVS WHERE GRANTEE ='SCOTT';(
dba jurisdiction )

4. View the relationship between the user and the default table space
select username,default_tablespace from dba_users;(dba jurisdiction )
5.Oracle Query user table
select * from user_tables;--> View the tables that the current user can access  
select * from dba_tables;--> All tables in the database that administrators can see (dba jurisdiction )
select * from user_all_tables;--> And select * from user_tables; There are similarities, but the key value pairs displayed are different .
select * from all_tables;--> Displays all tables that the user has permission to see , Include system table
6.Oracle Query user view
select * from user_views;
7. Query all functions and stored procedures :
select * from user_source;
8. Query all users :
select * from all_users;--> View all users that can be managed
select * from dba_users;--> View all users in the database (dba jurisdiction )
select * from user_users;-- > View current user information
9. View current user connections :
select * from v$Session;(dba jurisdiction )
10. View user roles
SELECT * FROM USER_ROLE_PRIVS;
11. View current user permissions :
select * from session_privs;
12. View roles owned by all users
SELECT * FROM DBA_ROLE_PRIVS;(dba jurisdiction )
13. View all roles
select * from dba_roles;(dba jurisdiction )
14. View database name
SELECT NAME FROM V$DATABASE;(dba jurisdiction )
15. View all table space usage
select a.file_id "FileNo",
       a.tablespace_name "Tablespace_name",
       a.bytes "Bytes",
       a.bytes - sum(nvl(b.bytes, 0)) "Used",
       sum(nvl(b.bytes, 0)) "Free",
       sum(nvl(b.bytes, 0)) / a.bytes * 100 "%free"
  from dba_data_files a, dba_free_space b
 where a.file_id = b.file_id(+)
 group by a.tablespace_name, a.file_id, a.bytes
 order by a.tablespace_name;(dba jurisdiction )

Technology
©2019-2020 Toolsou All rights reserved,
The 11th Blue Bridge Cup python The real topic of the University Group National Games JavaSwing To achieve a simple Lianliankan games 【Spring Source code analysis 】42-@Conditional Detailed explanation element-ui Step on pit record 2019PHP Interview questions ( Continuously updated )PHPJava Misunderstanding —— Method overloading is a manifestation of polymorphism ? First issue 500 100 million , Set up a new Department , What is Tencent going to do ? Google chrome The browser can't open the web page , But what if other browsers can open it ? Regression of dependent variable order categories (R language )【Golang Basic series 10 】Go language On conditional sentences if