Skip to content

Commit 3de595e

Browse files
author
Jacek Gębal
committed
Investigation of pipeline issue
1 parent 322c6d2 commit 3de595e

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/scripts/create_api_user.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
#!/bin/bash
22
set -ev
33

4+
echo Running command: sqlplus -S -L sys/oracle@${DB_URL} AS SYSDBA
45
sqlplus -S -L sys/oracle@${DB_URL} AS SYSDBA <<EOF
56
create user api identified by api
67
quota unlimited on USERS
78
default tablespace USERS;
8-
grant create session,
9-
create procedure,
10-
create type,
11-
create table,
12-
create sequence,
13-
create view
14-
to api;
9+
grant create session, create procedure, create type, create table, create sequence, create view to api;
1510
grant select any dictionary to api;
1611
exit;
1712
EOF

.github/scripts/install_demo_project.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ git clone -b develop --single-branch https://github.com/utPLSQL/utPLSQL-demo-pro
77

88
cat > demo_project.sh.tmp <<- EOF
99
sqlplus -S -L sys/oracle@${DB_URL} AS SYSDBA <<- SQL
10+
PROMPT Connected to ${DB_URL}
1011
PROMPT Creating Database User ${DB_USER}
1112
PROMPT create user ${DB_USER} identified by ${DB_PASS} quota unlimited on USERS default tablespace USERS;
1213
PROMPT grant create session, create procedure, create type, create table, create sequence, create view to ${DB_USER};
@@ -23,6 +24,7 @@ cat > demo_project.sh.tmp <<- EOF
2324
sqlplus -S -L ${DB_USER}/${DB_PASS}@${DB_URL} <<- SQL
2425
whenever sqlerror exit failure rollback
2526
whenever oserror exit failure rollback
27+
PROMPT Connected to ${DB_URL}
2628
PROMPT Installing sources of demo project into schema ${DB_USER}
2729
@source/install.sql
2830
exit
@@ -31,6 +33,7 @@ cat > demo_project.sh.tmp <<- EOF
3133
sqlplus -S -L ${DB_USER}/${DB_PASS}@${DB_URL} <<- SQL
3234
whenever sqlerror exit failure rollback
3335
whenever oserror exit failure rollback
36+
PROMPT Connected to ${DB_URL}
3437
PROMPT Installing tests for demo project into schema ${DB_USER}
3538
@test/install.sql
3639
exit

0 commit comments

Comments
 (0)