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

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/userguide/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The installation user/schema must have the following Oracle system permissions d
- CREATE PROCEDURE
- CREATE TYPE
- CREATE TABLE
- CREATE VIEW
- CREATE SYNONYM
- ALTER SESSION

Expand Down
37 changes: 35 additions & 2 deletions source/core/ut_output_buffer_tmp.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
create table ut_output_buffer_tmp(
create table ut_output_buffer_tmp$(
/*
utPLSQL - Version X.X.X.X
Copyright 2016 - 2017 utPLSQL Project
Expand Down Expand Up @@ -27,4 +27,37 @@ create table ut_output_buffer_tmp(
) nologging nomonitoring initrans 100
;

create index ut_output_buffer_tmp_i on ut_output_buffer_tmp(start_date) initrans 100 nologging;
create index ut_output_buffer_tmp_i on ut_output_buffer_tmp$(start_date) initrans 100 nologging;

-- This is needed to be EBR ready as editioning view can only be created by edition enabled user
declare
ex_nonedition_user exception;
ex_view_doesnt_exist exception;
pragma exception_init(ex_nonedition_user,-42314);
pragma exception_init(ex_view_doesnt_exist,-942);
begin
begin
execute immediate 'drop view ut_output_buffer_tmp';
exception
when ex_view_doesnt_exist then
null;
end;

execute immediate 'create or replace editioning view ut_output_buffer_tmp as
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the copyright banner to the views too.

select reporter_id
,message_id
,text
,is_finished
,start_date
from ut_output_buffer_tmp$';
exception
when ex_nonedition_user then
execute immediate 'create or replace view ut_output_buffer_tmp as
select reporter_id
,message_id
,text
,is_finished
,start_date
from ut_output_buffer_tmp$';
end;
/
2 changes: 1 addition & 1 deletion source/create_utplsql_owner.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ define ut3_tablespace = &3

create user &ut3_user identified by &ut3_password default tablespace &ut3_tablespace quota unlimited on &ut3_tablespace;

grant create session, create sequence, create procedure, create type, create table, create synonym to &ut3_user;
grant create session, create sequence, create procedure, create type, create table, create view, create synonym to &ut3_user;

grant execute on dbms_lock to &ut3_user;

Expand Down