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

Skip to content

Commit d5dfbbe

Browse files
committed
Added ut.version and ut_run_info() onto documentation.
Added grant and synonym for `ut_run_info`. Resolves #822
1 parent 40573c1 commit d5dfbbe

4 files changed

Lines changed: 22 additions & 2 deletions

File tree

docs/userguide/install.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Downloading latest version of utPLSQL
44

5-
To download latest version of utPLSQL from github on both Unix/Linux as well as Windows machines use the below smippets.
5+
To download latest version of utPLSQL from github on both Unix/Linux as well as Windows machines use the below snippets.
66

77
## Unix/Linux
88

@@ -51,6 +51,20 @@ foreach ($i in $urlList) {
5151
}
5252
```
5353

54+
# Checking environment and utPLSQL version
55+
56+
To check the framework version execute the following query:
57+
```sql
58+
select substr(ut.version(),1,60) as ut_version from dual;
59+
```
60+
61+
Additionally you may retrieve more information about your environment by executing the following query:
62+
```sql
63+
select
64+
xmlserialize( content xmltype(ut_run_info()) as clob indent size = 2 )
65+
from dual;
66+
```
67+
5468
# Supported database versions
5569

5670
The utPLSQL may be installed on any supported version of Oracle Database [see](http://www.oracle.com/us/support/library/lifetime-support-technology-069183.pdf#page=6)
@@ -187,9 +201,11 @@ If you have extended any utPLSQL types such as a custom reporter, these will nee
187201

188202
The uninstall script does not drop the schema.
189203

190-
In order for the uninstall to be successful, you need to use the uninstall script that was provided with the exact utPLSQL version installed on your database.
204+
**In order for the uninstall to be successful, you need to use the uninstall script that was provided with the exact utPLSQL version installed on your database.**
191205
i.e. the uninstall script provided with version 3.0.1 will probably not work if you want to remove version 3.0.0 from your database.
192206

207+
Alternatively you can drop the user that owns utPLSQL and re-create it using headless install.
208+
193209
# Version upgrade
194210

195211
Currently, the only way to upgrade version of utPLSQL v3.0.0 and above is to remove the previous version and install the new version.

source/create_synonyms_and_grants_for_public.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ grant select, insert, delete, update on &&ut3_owner..dbmspcc_runs to public;
106106
grant select, insert, delete, update on &&ut3_owner..dbmspcc_units to public;
107107
grant execute on &&ut3_owner..ut_matcher_options to public;
108108
grant execute on &&ut3_owner..ut_matcher_options_items to public;
109+
grant execute on &&ut3_owner..ut_run_info to public;
109110

110111
prompt Creating synonyms for UTPLSQL objects in &&ut3_owner schema to PUBLIC
111112

@@ -165,3 +166,4 @@ create public synonym ut_realtime_reporter for &&ut3_owner..ut_realtime_reporter
165166
create public synonym dbmspcc_blocks for &&ut3_owner..dbmspcc_blocks;
166167
create public synonym dbmspcc_runs for &&ut3_owner..dbmspcc_runs;
167168
create public synonym dbmspcc_units for &&ut3_owner..dbmspcc_units;
169+
create public synonym ut_run_info for &&ut3_owner..ut_run_info;

source/create_user_grants.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,5 @@ grant select, insert, delete, update on &&ut3_owner..dbmspcc_runs to &ut3_user;
125125
grant select, insert, delete, update on &&ut3_owner..dbmspcc_units to &ut3_user;
126126
grant execute on &&ut3_owner..ut_matcher_options to &ut3_user;
127127
grant execute on &&ut3_owner..ut_matcher_options_items to &ut3_user;
128+
grant execute on &&ut3_owner..ut_run_info to &ut3_user;
128129

source/create_user_synonyms.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,4 @@ create or replace synonym &ut3_user..ut_realtime_reporter for &&ut3_owner..ut_re
108108
create or replace synonym &ut3_user..dbmspcc_blocks for &&ut3_owner..dbmspcc_blocks;
109109
create or replace synonym &ut3_user..dbmspcc_runs for &&ut3_owner..dbmspcc_runs;
110110
create or replace synonym &ut3_user..dbmspcc_units for &&ut3_owner..dbmspcc_units;
111+
create or replace synonym &ut3_user..ut_run_info for &&ut3_owner..ut_run_info;

0 commit comments

Comments
 (0)