|
14 | 14 | See the License for the specific language governing permissions and |
15 | 15 | limitations under the License. |
16 | 16 | */ |
17 | | -prompt Installing utplsql framework |
18 | 17 |
|
19 | | -set serveroutput on size unlimited |
20 | | -set feedback on |
21 | | -set timing off |
22 | | -set verify off |
23 | | -set define & |
| 18 | +@@define_ut3_owner_param.sql |
24 | 19 |
|
25 | 20 | spool install.log |
26 | 21 |
|
27 | | -define ut3_owner = &1 |
| 22 | +prompt &&line_separator |
| 23 | +prompt Installing utPLSQL v3 framework |
| 24 | +prompt &&line_separator |
| 25 | + |
28 | 26 | whenever sqlerror exit failure rollback |
29 | 27 | whenever oserror exit failure rollback |
30 | | -set serveroutput on size unlimited format truncated |
31 | 28 |
|
32 | | -set feedback off |
33 | 29 | prompt Switching current schema to &&ut3_owner |
| 30 | +prompt &&line_separator |
34 | 31 | alter session set current_schema = &&ut3_owner; |
35 | 32 | alter session set plsql_warnings = 'ENABLE:ALL', 'DISABLE:(5004,5018,6000,6001,6003,6009,6010,7206)'; |
36 | 33 | --set define off |
@@ -89,8 +86,11 @@ alter session set plsql_warnings = 'ENABLE:ALL', 'DISABLE:(5004,5018,6000,6001,6 |
89 | 86 | @@install_component.sql 'core/ut_expectation_processor.pks' |
90 | 87 | @@install_component.sql 'core/ut_expectation_processor.pkb' |
91 | 88 |
|
92 | | ---installing profiler tabs if they dont exist |
| 89 | +prompt Installing PLSQL profiler objects into &&ut3_owner schema |
| 90 | +prompt You will see "ORA-00955" errors if they already exist |
| 91 | +prompt &&line_separator |
93 | 92 | whenever sqlerror continue |
| 93 | +set feedback on |
94 | 94 | @@core/coverage/proftab.sql |
95 | 95 | whenever sqlerror exit failure rollback |
96 | 96 |
|
@@ -266,21 +266,24 @@ column text format a100 |
266 | 266 | column error_count noprint new_value error_count |
267 | 267 |
|
268 | 268 | prompt Validating installation |
269 | | -select name, type, sequence, line, position, text, count(1) over() error_count |
| 269 | +prompt &&line_separator |
| 270 | +set heading on |
| 271 | +select type, name, sequence, line, position, text, count(1) over() error_count |
270 | 272 | from all_errors |
271 | 273 | where owner = upper('&&ut3_owner') |
272 | 274 | and name not like 'BIN$%' --not recycled |
273 | 275 | and (name = 'UT' or name like 'UT\_%' escape '\') |
274 | 276 | -- errors only. ignore warnings |
275 | 277 | and attribute = 'ERROR' |
| 278 | + order by name, type, sequence |
276 | 279 | / |
277 | 280 |
|
278 | 281 | begin |
279 | 282 | if to_number('&&error_count') > 0 then |
280 | 283 | raise_application_error(-20000, 'Not all sources were successfully installed.'); |
281 | 284 | else |
282 | 285 | dbms_output.put_line('Installation completed successfully'); |
283 | | - dbms_output.put_line('--------------------------------------------------------------'); |
| 286 | + dbms_output.put_line('&&line_separator'); |
284 | 287 | end if; |
285 | 288 | end; |
286 | 289 | / |
|
0 commit comments