Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d84e96d

Browse files
committed
Updated privileges in doc
1 parent 4ec39b3 commit d84e96d

1 file changed

Lines changed: 20 additions & 12 deletions

File tree

docs/userguide/install.md

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Downloading latest version of utPLSQL
22

3-
It is quite easy to download latest version of utPLSQL from github on both Unix/Linux as well as Windows machines.
4-
Below are little snippets that can be handy for downloading latest version.
3+
To download latest version of utPLSQL from github on both Unix/Linux as well as Windows machines use the below smippets.
54

65
## Unix/Linux
76

@@ -52,42 +51,51 @@ foreach ($i in $urlList) {
5251

5352
# Headless installation
5453

55-
To simply install the utPLSQL into a new database schema and grant it to public, execute the script `install_headless.sql` as SYSDBA.
54+
To install the utPLSQL into a new database schema and grant it to public, execute the script `install_headless.sql` as SYSDBA.
5655

57-
This will create a new user `UT3` with password `XNtxj8eEgA6X6b6f`, grant all needed privileges to that user and create PUBLIC synonyms needed to use the utPLSQL framework.
56+
The script accepts three optional parameters that define:
57+
- username to create as owner of utPLSQL (default `ut3`)
58+
- password for owner of utPLSQL (default `XNtxj8eEgA6X6b6f`)
59+
- tablespace to use for storage of profiler data (default `users`)
5860

5961
Example invocation of the script from command line:
6062
```bash
6163
cd source
6264
sqlplus sys/sys_pass@db as sysdba @@install_headless.sql
6365
```
6466

65-
SYSDBA is needed to grant access to DBMS_LOCK.
67+
Invoking script with parameters:
68+
```bash
69+
cd source
70+
sqlplus sys/sys_pass@db as sysdba @@install_headless.sql utp3 my_verySecret_password utp3_tablespace
71+
```
72+
73+
The script needs to be executed by SYSDBA, in order to grant access to DBMS_LOCK system package.
6674

6775

6876
# Recommended Schema
69-
It is recommended to install utPLSQL in it's own schema. You are free to choose any name for this schema.
77+
It is highly recommended to install utPLSQL in it's own schema. You are free to choose any name for this schema.
78+
Installing uPLSQL into shared schema is really not recommended as you loose isolation of framework.
7079

71-
The installation user/schema must have the following Oracle system permissions during the installation.
80+
If the installation and utPLSQL owner user is one and the same, the user must have the following Oracle system permissions before you can proceed with the installation.
7281

7382
- CREATE SESSION
7483
- CREATE PROCEDURE
7584
- CREATE TYPE
7685
- CREATE TABLE
86+
- CREATE SEQUENCE
7787
- CREATE VIEW
7888
- CREATE SYNONYM
7989
- ALTER SESSION
8090

81-
In addition it must be granted execute to the following system packages.
82-
83-
- DBMS_LOCK
91+
In addition the user must be granted the execute privilege on `DBMS_LOCK` package.
8492

8593
utPLSQL is using [DBMS_PROFILER tables](https://docs.oracle.com/cd/E18283_01/appdev.112/e16760/d_profil.htm#i999476) for code coverage. The tables required by DBMS_PROFILER will be created in the installation schema unless they already exist.
8694
The uninstall process will **not** drop profiler tables, as they can potentially be shared and reused for profiling PLSQL code.
8795

8896
It is up to DBA to maintain the storage of the profiler tables.
89-
90-
# Installation Procedure
97+
98+
# Manual installation procedure
9199

92100
### Creating schema for utPLSQL
93101
To create the utPLSQL schema and grant all the needed privileges execute script `create_utplsql_owner.sql` from the `source` directory with parameters:

0 commit comments

Comments
 (0)