-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshow_descrip.sql
More file actions
38 lines (33 loc) · 1.26 KB
/
show_descrip.sql
File metadata and controls
38 lines (33 loc) · 1.26 KB
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
---------------------------------------------------------------------
--
-- Copyright(C) 2013 Tim St. Hilaire
-- All Rights Reserved
--
---------------------------------------------------------------------
SET PAGESIZE 1000
set serverout on
PROMPT ================================================================================
PROMPT == ACL Descriptions
PROMPT ==
PROMPT == Description of ACL Files.
PROMPT == Note: ACL files with no host assignment can still be used.
PROMPT ================================================================================
COLUMN ACL HEADING 'ACL File' FORMAT A30
COLUMN DESCRIP HEADING 'ACL Description' FORMAT A40
COLUMN PRIVS HEADING 'Privs' FORMAT A5
SELECT distinct
PATH as ACL,
XDBUriType(ACL).getXML().extract('/acl/@description').getStringVal() as DESCRIP,
NVL2(ACL,'Yes','No') as PRIVS
from
dba_network_acls full outer join PATH_VIEW on PATH = ACL
where REGEXP_LIKE (PATH, '^/sys/acls/([^/]*.xml)')
and PATH NOT IN
(-- seeded XMLDB ACL LIST
'/sys/acls/bootstrap_acl.xml',
'/sys/acls/all_owner_acl.xml',
'/sys/acls/all_all_acl.xml',
'/sys/acls/ro_all_acl.xml',
'/sys/acls/ro_anonymous_acl.xml'
);
PROMPT ================================================================================