/
install_grants_syns.sql
52 lines (41 loc) · 2.01 KB
/
install_grants_syns.sql
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
-- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
--------------------------------------------------------------------------------
--
-- Author: Tanel Poder
-- Copyright: (c) http://www.tanelpoder.com
--
-- Notes: This software is provided AS IS and doesn't guarantee anything
-- Proofread before you execute it!
--
--------------------------------------------------------------------------------
-- grants for procs & types
grant execute on sesspack to sesspack_user_role;
grant execute on sawr$sidlist to sesspack_user_role;
-- grants for sequences
grant select on sawr$snapid_seq to sesspack_user_role;
-- grants for tables
grant select, insert on sawr$snapshots to sesspack_user_role;
grant select, insert on sawr$sessions to sesspack_user_role;
grant select, insert on sawr$session_events to sesspack_user_role;
grant select, insert on sawr$session_stats to sesspack_user_role;
grant select on sawr$session_stat_mode to sesspack_user_role;
-- grants for views
grant select on sawr$sess_event to sesspack_user_role;
--grant select on sawr$sess_event_delta to sesspack_user_role;
grant select on sawr$sess_stat to sesspack_user_role;
-- synonyms for procs & types
create public synonym sesspack for sesspack;
create public synonym sawr$sidlist for sawr$sidlist;
-- synonyms for sequences
create public synonym sawr$snapid_seq for sawr$snapid_seq;
-- synonyms for tables
create public synonym sawr$snapshots for sawr$snapshots;
create public synonym sawr$sessions for sawr$sessions;
create public synonym sawr$session_events for sawr$session_events;
create public synonym sawr$session_stats for sawr$session_stats;
create public synonym sawr$session_stat_mode for sawr$session_stat_mode;
-- synonyms for views
create public synonym sawr$sess_event for sawr$sess_event;
--create public synonym sawr$sess_event_delta for sawr$sess_event_delta;
create public synonym sawr$sess_stat for sawr$sess_stat;