@@ -5,36 +5,36 @@ cd $(dirname $(readlink -f $0))
55PROJECT_FILE=" utPLSQL-demo-project"
66git clone -b develop --single-branch https://github.com/utPLSQL/utPLSQL-demo-project.git
77
8- cat > demo_project.sh.tmp << EOF
9- sqlplus -S -L sys/oracle@//localhost:1521/${SERVICE_NAME} AS SYSDBA <<SQL
10- PROMPT Creating Database User ${DB_USER}
11- PROMPT create user ${DB_USER} identified by ${DB_PASS} quota unlimited on USERS default tablespace USERS;
12- PROMPT grant create session, create procedure, create type, create table, create sequence, create view to ${DB_USER} ;
13- PROMPT grant connect to ${DB_USER} ;
14- PROMPT grant select any dictionary to ${DB_USER} ;
15- create user ${DB_USER} identified by ${DB_PASS} quota unlimited on USERS default tablespace USERS;
16- grant create session, create procedure, create type, create table, create sequence, create view to ${DB_USER} ;
17- grant connect to ${DB_USER} ;
18- grant select any dictionary to ${DB_USER} ;
19- exit
20- SQL
8+ cat > demo_project.sh.tmp << - EOF
9+ sqlplus -S -L sys/oracle@//localhost:1521/${SERVICE_NAME} AS SYSDBA <<- SQL
10+ PROMPT Creating Database User ${DB_USER}
11+ PROMPT create user ${DB_USER} identified by ${DB_PASS} quota unlimited on USERS default tablespace USERS;
12+ PROMPT grant create session, create procedure, create type, create table, create sequence, create view to ${DB_USER} ;
13+ PROMPT grant connect to ${DB_USER} ;
14+ PROMPT grant select any dictionary to ${DB_USER} ;
15+ create user ${DB_USER} identified by ${DB_PASS} quota unlimited on USERS default tablespace USERS;
16+ grant create session, create procedure, create type, create table, create sequence, create view to ${DB_USER} ;
17+ grant connect to ${DB_USER} ;
18+ grant select any dictionary to ${DB_USER} ;
19+ exit
20+ SQL
2121
22- cd /${PROJECT_FILE}
23- sqlplus -S -L ${DB_USER} /${DB_PASS} @//localhost:1521/${SERVICE_NAME} <<SQL
24- whenever sqlerror exit failure rollback
25- whenever oserror exit failure rollback
26- PROMPT Installing sources of demo project into schema ${DB_USER}
27- @source/install.sql
28- exit
29- SQL
22+ cd /${PROJECT_FILE}
23+ sqlplus -S -L ${DB_USER} /${DB_PASS} @//localhost:1521/${SERVICE_NAME} <<- SQL
24+ whenever sqlerror exit failure rollback
25+ whenever oserror exit failure rollback
26+ PROMPT Installing sources of demo project into schema ${DB_USER}
27+ @source/install.sql
28+ exit
29+ SQL
3030
31- sqlplus -S -L ${DB_USER} /${DB_PASS} @//localhost:1521/${SERVICE_NAME} <<SQL
32- whenever sqlerror exit failure rollback
33- whenever oserror exit failure rollback
34- PROMPT Installing tests for demo project into schema ${DB_USER}
35- @test/install.sql
36- exit
37- SQL
31+ sqlplus -S -L ${DB_USER} /${DB_PASS} @//localhost:1521/${SERVICE_NAME} <<- SQL
32+ whenever sqlerror exit failure rollback
33+ whenever oserror exit failure rollback
34+ PROMPT Installing tests for demo project into schema ${DB_USER}
35+ @test/install.sql
36+ exit
37+ SQL
3838EOF
3939
4040docker cp ./${PROJECT_FILE} oracle:/${PROJECT_FILE}
0 commit comments