Skip to content

Commit b21dbaa

Browse files
committed
Added back grant administer database trigger to &&ut3_owner;
This is only needed for the duration of the install process. We also re-enable this privilege to allow for tests to disable/enable trigger.
1 parent 8620240 commit b21dbaa

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.travis/install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ time "$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
6363
set feedback off
6464
whenever sqlerror exit failure rollback
6565
66+
--------------------------------------------------------------------------------
67+
PROMPT Adding back create-trigger privilege to $UT3_OWNER for testing
68+
grant administer database trigger to $UT3_OWNER;
69+
6670
--------------------------------------------------------------------------------
6771
PROMPT Creating $UT3_TESTER - Power-user for testing internal framework code
6872

source/install_ddl_trigger.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@
1818
@@define_ut3_owner_param.sql
1919

2020
@@check_sys_grants.sql "'ADMINISTER DATABASE TRIGGER','CREATE TRIGGER'"
21-
@@install_component.sql 'core/annotations/ut_trigger_annotation_parsing.trg'
2221

22+
grant administer database trigger to &&ut3_owner;
23+
@@install_component.sql 'core/annotations/ut_trigger_annotation_parsing.trg'
24+
revoke administer database trigger from &&ut3_owner;

source/install_headless_with_trigger.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
@@install.sql &&ut3_owner
2222
@@create_synonyms_and_grants_for_public.sql &&ut3_owner
2323

24-
@@install_ddl_trigger.sql
24+
@@install_ddl_trigger.sql &&ut3_owner
2525

2626
exit

0 commit comments

Comments
 (0)