|
1 | | -create table ut_output_buffer_tmp( |
| 1 | +create table ut_output_buffer_tmp$( |
2 | 2 | /* |
3 | 3 | utPLSQL - Version X.X.X.X |
4 | 4 | Copyright 2016 - 2017 utPLSQL Project |
@@ -27,4 +27,63 @@ create table ut_output_buffer_tmp( |
27 | 27 | ) nologging nomonitoring initrans 100 |
28 | 28 | ; |
29 | 29 |
|
30 | | -create index ut_output_buffer_tmp_i on ut_output_buffer_tmp(start_date) initrans 100 nologging; |
| 30 | +create index ut_output_buffer_tmp_i on ut_output_buffer_tmp$(start_date) initrans 100 nologging; |
| 31 | + |
| 32 | +-- This is needed to be EBR ready as editioning view can only be created by edition enabled user |
| 33 | +declare |
| 34 | + ex_nonedition_user exception; |
| 35 | + ex_view_doesnt_exist exception; |
| 36 | + pragma exception_init(ex_nonedition_user,-42314); |
| 37 | + pragma exception_init(ex_view_doesnt_exist,-942); |
| 38 | +begin |
| 39 | + begin |
| 40 | + execute immediate 'drop view ut_output_buffer_tmp'; |
| 41 | + exception |
| 42 | + when ex_view_doesnt_exist then |
| 43 | + null; |
| 44 | + end; |
| 45 | + |
| 46 | + execute immediate 'create or replace editioning view ut_output_buffer_tmp as |
| 47 | +/* |
| 48 | +utPLSQL - Version X.X.X.X |
| 49 | +Copyright 2016 - 2017 utPLSQL Project |
| 50 | +Licensed under the Apache License, Version 2.0 (the "License"): |
| 51 | +you may not use this file except in compliance with the License. |
| 52 | +You may obtain a copy of the License at |
| 53 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 54 | +Unless required by applicable law or agreed to in writing, software |
| 55 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 56 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 57 | +See the License for the specific language governing permissions and |
| 58 | +limitations under the License. |
| 59 | +*/ |
| 60 | +select reporter_id |
| 61 | + ,message_id |
| 62 | + ,text |
| 63 | + ,is_finished |
| 64 | + ,start_date |
| 65 | + from ut_output_buffer_tmp$'; |
| 66 | +exception |
| 67 | + when ex_nonedition_user then |
| 68 | + execute immediate 'create or replace view ut_output_buffer_tmp as |
| 69 | +/* |
| 70 | +utPLSQL - Version X.X.X.X |
| 71 | +Copyright 2016 - 2017 utPLSQL Project |
| 72 | +Licensed under the Apache License, Version 2.0 (the "License"): |
| 73 | +you may not use this file except in compliance with the License. |
| 74 | +You may obtain a copy of the License at |
| 75 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 76 | +Unless required by applicable law or agreed to in writing, software |
| 77 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 78 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 79 | +See the License for the specific language governing permissions and |
| 80 | +limitations under the License. |
| 81 | +*/ |
| 82 | +select reporter_id |
| 83 | + ,message_id |
| 84 | + ,text |
| 85 | + ,is_finished |
| 86 | + ,start_date |
| 87 | + from ut_output_buffer_tmp$'; |
| 88 | +end; |
| 89 | +/ |
0 commit comments