-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRAS_EXPORT.pks
55 lines (43 loc) · 1.84 KB
/
RAS_EXPORT.pks
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
create or replace PACKAGE "RAS_EXPORT" AS
/* first grant select on objects listed below to apex-schema */
-- grant select on dba_xs_users to HR;
-- grant select on DBA_XS_ROLES to hr
-- grant select on DBA_XS_DYNAMIC_ROLES to hr
-- grant select on DBA_XS_ROLE_GRANTS to hr
-- grant select on DBA_XS_SECURITY_CLASSES to hr
-- grant select on DBA_XS_SECURITY_CLASS_DEP to hr
-- grant select on dba_xs_privileges to hr
-- grant select on DBA_XS_IMPLIED_PRIVILEGES to hr
-- grant select on DBA_XS_POLICIES to hr
-- grant select on dba_xs_acls to hr
-- grant select on dba_xs_aces to hr
-- grant select on DBA_XS_REALM_CONSTRAINTS to hr
-- grant select on DBA_XS_POLICIES to hr
-- grant select on dba_xs_column_constraints to hr
-- grant select on DBA_XS_APPLIED_POLICIES to hr
-- grant select on dba_xs_acl_parameters to hr
-- grant select on dba_xs_ns_templates to hr
-- grant select on dba_xs_ns_template_attributes to hr
function export_all(p_delete_flag in varchar2)
return clob;
function export_xs_users(p_list in clob,
p_delete in varchar2 default 'N')
return clob;
function export_xs_regular_roles(p_list in clob,
p_delete in varchar2 default 'N')
return clob;
function export_xs_dynamic_roles(p_list in clob,
p_delete in varchar2 default 'N')
return clob;
function export_xs_grants(p_list in clob default '')
return clob;
function export_security_classes(p_list in clob,
p_delete in varchar2 default 'N')
return clob;
function export_security_classes_dep(p_list in clob)
return clob;
function is_in_list(p_list in clob,p_value in varchar2)
return varchar2;
procedure download_file(p_delete_flag in varchar2);
END RAS_EXPORT;
/