You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create user $UT3_TESTER identified by "$UT3_TESTER_PASSWORD" default tablespace $UT3_TABLESPACE quota unlimited on $UT3_TABLESPACE;
75
75
grant create session, create procedure, create type, create table to $UT3_TESTER;
76
76
77
-
PROMPT Additional grants for disabling DDL trigger and testing parser without trigger enabled/present
78
-
79
-
grant alter any trigger to $UT3_TESTER;
80
-
grant administer database trigger to $UT3_TESTER;
81
77
grant execute on dbms_lock to $UT3_TESTER;
82
78
83
79
PROMPT Granting $UT3_OWNER code to $UT3_TESTER
@@ -98,7 +94,7 @@ end;
98
94
PROMPT Granting $UT3_OWNER tables to $UT3_TESTER
99
95
100
96
begin
101
-
for i in ( select table_name from all_tables t where owner = 'UT3' and nested = 'NO' and IOT_NAME is NULL)
97
+
for i in ( select table_name from all_tables t where owner = 'UT3' and nested = 'NO' and iot_name is null)
102
98
loop
103
99
execute immediate 'grant select on UT3.'||i.table_name||' to UT3_TESTER';
104
100
end loop;
@@ -124,8 +120,33 @@ grant create public database link to $UT3_TESTER_HELPER;
124
120
grant drop public database link to $UT3_TESTER_HELPER;
125
121
126
122
PROMPT Grants for testing coverage outside of main UT3 schema.
127
-
grant create any procedure, drop any procedure, execute any procedure, create any type, drop any type, execute any type, under any type, select any table, update any table, insert any table, delete any table, create any table, drop any table, alter any table, select any dictionary, create any synonym, drop any synonym to $UT3_TESTER_HELPER;
123
+
grant create any procedure, drop any procedure, execute any procedure, create any type, drop any type, execute any type, under any type,
124
+
select any table, update any table, insert any table, delete any table, create any table, drop any table, alter any table,
125
+
select any dictionary, create any synonym, drop any synonym,
126
+
grant any object privilege, grant any privilege
127
+
to $UT3_TESTER_HELPER;
128
+
128
129
grant create job to $UT3_TESTER_HELPER;
129
130
131
+
PROMPT Additional grants for disabling DDL trigger and testing parser without trigger enabled/present
132
+
133
+
grant alter any trigger to $UT3_TESTER_HELPER;
134
+
grant administer database trigger to $UT3_TESTER_HELPER;
135
+
grant execute on dbms_lock to $UT3_TESTER_HELPER;
136
+
137
+
create user ut3_cache_test_owner identified by ut3;
138
+
grant create session, create procedure to ut3_cache_test_owner;
139
+
140
+
create user ut3_no_extra_priv_user identified by ut3;
141
+
grant create session, create procedure to ut3_no_extra_priv_user;
142
+
143
+
create user ut3_select_catalog_user identified by ut3;
144
+
grant create session, create procedure, select_catalog_role to ut3_select_catalog_user;
145
+
146
+
create user ut3_select_any_table_user identified by ut3;
147
+
grant create session, create procedure, select any table to ut3_select_any_table_user;
148
+
149
+
create user ut3_execute_any_proc_user identified by ut3;
150
+
grant create session, create procedure, execute any procedure to ut3_execute_any_proc_user;
Copy file name to clipboardExpand all lines: docs/userguide/install.md
-7Lines changed: 0 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -138,13 +138,6 @@ cd source
138
138
sqlplus sys/sys_pass@db as sysdba @install_headless_with_trigger.sql utp3 my_verySecret_password utp3_tablespace
139
139
```
140
140
141
-
**Note:**
142
-
>When installing utPLSQL into database with existing unit test packages, utPLSQL will not be able to already-existing unit test packages. When utPSLQL was installed with DDL trigger, you have to do one of:
143
-
>- Recompile existing Unit Test packages to make utPLSQL aware of their existence
144
-
>- Invoke `exec ut_runner.rebuild_annotation_cache(a_object_owner=> ... );` for every schema containing unit tests in your database
145
-
>
146
-
> Steps above are required to assure annotation cache is populated properly from existing objects. Rebuilding annotation cache might be faster than code recompilation.
147
-
148
141
# Recommended Schema
149
142
It is highly recommended to install utPLSQL in it's own schema. You are free to choose any name for this schema.
150
143
Installing uPLSQL into shared schema is really not recommended as you loose isolation of framework.
0 commit comments