-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathut_run_info.tpb
More file actions
48 lines (40 loc) · 1.88 KB
/
ut_run_info.tpb
File metadata and controls
48 lines (40 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
create or replace type body ut_run_info as
/*
utPLSQL - Version 3
Copyright 2016 - 2026 utPLSQL Project
Licensed under the Apache License, Version 2.0 (the "License"):
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions andTEST_GET_REPORTERS_LIST
limitations under the License.
*/
constructor function ut_run_info(self in out nocopy ut_run_info) return self as result is
l_ut_owner varchar2(250) := ut_utils.ut_owner;
begin
self.self_type := $$plsql_unit;
execute immediate
'select /*+ no_parallel */ '||l_ut_owner||'.ut.version() from dual'
into self.ut_version;
dbms_utility.db_version( self.db_version, self.db_compatibility );
db_os_type := dbms_utility.port_string();
execute immediate
'select /*+ no_parallel */ '||l_ut_owner||'.ut_key_value_pair(x.product, x.version) from product_component_version x'
bulk collect into self.db_component_version;
execute immediate
'select /*+ no_parallel */ '||l_ut_owner||'.ut_key_value_pair(x.parameter, x.value)
from nls_session_parameters x'
bulk collect into self.nls_session_params;
execute immediate
'select /*+ no_parallel */ '||l_ut_owner||'.ut_key_value_pair(x.parameter, x.value) from nls_instance_parameters x'
bulk collect into self.nls_instance_params;
execute immediate
'select /*+ no_parallel */ '||l_ut_owner||'.ut_key_value_pair(x.parameter, x.value) from nls_database_parameters x'
bulk collect into self.nls_db_params;
return;
end;
end;
/