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,
QT Delete directory and file Java aggregate ------LinkedHashMap Underlying principle I've been drinking soft water for three years ? What is the use of soft water and water softener Java Xiao Ming A+B About wechat payment body( Product description ) Problems encountered Digital rolling lottery program 3 species Python data structure ,13 Creation methods , This is the conclusion , Great ! Huawei Mate 40 Pro+ 5G exposure : Leica film lens , Ceramic body What's the difference in server prices ? Operators Website visitors' mobile phone number capture