-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfinger.sql
More file actions
40 lines (31 loc) · 741 Bytes
/
Copy pathfinger.sql
File metadata and controls
40 lines (31 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
col privilege for A30
set verify off
select granted_role, admin_option
from dba_role_privs
where grantee=upper('&1')
order by 1;
select privilege, admin_option
from dba_sys_privs
where grantee=upper('&1')
order by 1;
select owner, privilege, count(*)
from dba_tab_privs
where grantee=upper('&1')
and table_name not like 'BIN$%'
group by owner, privilege
order by owner, privilege;
select owner, table_name, column_name, privilege
from dba_col_privs
where grantee=upper('&1')
and table_name not like 'BIN$%'
order by 1,2,3;
select object_type, count(*)
from dba_objects
where owner=upper('&1')
and object_name not like 'BIN$%'
group by object_type
order by 1;
select name, ptime
from sys.user$
where name =upper('&1');
set verify on