Skip to content

Commit

Permalink
Merge pull request #5759 from peterrinehart/PPP-4776
Browse files Browse the repository at this point in the history
[PPP-4776] Do not drop quartz user if it exists, but create it if it
  • Loading branch information
ddiroma authored Oct 30, 2024
2 parents a882285 + 35b987f commit b573795
Showing 1 changed file with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,17 @@

alter session set "_ORACLE_SCRIPT"=true;

drop user quartz cascade;
declare userexist integer;
begin
select count(*) into userexist from dba_users where username='QUARTZ';
if (userexist = 0) then
execute immediate 'create tablespace pentaho_tablespace logging datafile ''ptho_ts.dbf'' size 32m autoextend on next 32m maxsize 2048m extent management local';
execute immediate 'create user quartz identified by "password" default tablespace pentaho_tablespace quota unlimited on pentaho_tablespace temporary tablespace temp quota 5M on system';
execute immediate 'grant create session, create procedure, create table to quartz';
end if;
end;
/

create tablespace pentaho_tablespace
logging
datafile 'ptho_ts.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;

create user quartz identified by "password" default tablespace pentaho_tablespace quota unlimited on pentaho_tablespace temporary tablespace temp quota 5M on system;

grant create session, create procedure, create table to quartz;

--CREATE QUARTZ TABLES

Expand Down

0 comments on commit b573795

Please sign in to comment.