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
Copy file name to clipboardExpand all lines: docs/userguide/install.md
+25-14Lines changed: 25 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,10 +89,23 @@ The headless scripts accept three optional parameters that define:
89
89
90
90
The scripts need to be executed by `SYSDBA`, in order to grant access to `DBMS_LOCK` and `DBMS_CRYPTO` system packages.
91
91
92
-
*Note:* Grant on `DBMS_LOCK` is required only for installation on Oracle versions below 18c. For versions 18c and above, utPLSQL uses `DBMS_SESSION.SLEEP` so access to `DBMS_LOCK` package is no longer needed.
93
-
94
-
*Note:* The user performing the installation must have the `ADMINISTER DATABASE TRIGGER` privilege. This is required for installation of trigger that is responsible for parsing annotations at at compile-time of a package.
95
-
92
+
**Note:**
93
+
> Grant on `DBMS_LOCK` is required only for installation on Oracle versions below 18c. For versions 18c and above, utPLSQL uses `DBMS_SESSION.SLEEP` so access to `DBMS_LOCK` package is no longer needed.
94
+
95
+
**Note:**
96
+
> The user performing the installation must have the `ADMINISTER DATABASE TRIGGER` privilege. This is required for installation of trigger that is responsible for parsing annotations at at compile-time of a package.
97
+
98
+
**Note:**
99
+
> When installing with DDL trigger, utPLSQL will not be registering unit tests for any of oracle-maintained schemas.
> For Oracle 12c and above the users returned by below query are excluded by utPLSQL:
104
+
>
105
+
>```sql
106
+
>select username from all_users where oracle_maintained='Y';
107
+
>```
108
+
96
109
## Installation without DDL trigger
97
110
98
111
To install the utPLSQL into a new database schema and grant it to public, execute the script `install_headless.sql` as SYSDBA.
@@ -125,15 +138,12 @@ cd source
125
138
sqlplus sys/sys_pass@db as sysdba @install_headless_with_trigger.sql utp3 my_verySecret_password utp3_tablespace
126
139
```
127
140
128
-
*Note:*
129
-
130
-
When installing utPLSQL into database with existing unit test packages, utPLSQL will not be able to already-existing unit test packages.
131
-
When utPSLQL was installed with DDL trigger, you have to do one of:
132
-
- Recompile existing Unit Test packages to make utPLSQL aware of their existence
133
-
- Invoke `exec ut_runner.rebuild_annotation_cache(a_schema_name=> ... );` for every schema containing unit tests in your database
134
-
135
-
Steps above are required to assure annotation cache is populated properly from existing objects.
136
-
Rebuilding annotation cache might be faster than code recompilation.
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_schema_name=> ... );` 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.
137
147
138
148
# Recommended Schema
139
149
It is highly recommended to install utPLSQL in it's own schema. You are free to choose any name for this schema.
0 commit comments