Skip to content

Commit

Permalink
Migrate oracle to 21.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
javiertuya committed Dec 3, 2023
1 parent 905e005 commit 71029ac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
-e ORACLE_PASSWORD=$TEST_ORACLE_PWD \
-e TEST_ORACLE_PWD="$TEST_ORACLE_PWD" \
-v ${GITHUB_WORKSPACE}/setup/oracle:/container-entrypoint-initdb.d \
gvenzl/oracle-xe:11.2.0.2-slim-faststart
gvenzl/oracle-xe:21.3.0-slim
chmod u+x setup/wait-container-ready.sh && ./setup/wait-container-ready.sh test-oracle "DATABASE IS READY TO USE!"
# Run the tests, a step for those that use a DBMS, other for core
Expand Down
2 changes: 1 addition & 1 deletion setup/container-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ docker run -d -p 1521:1521 --name test-oracle --restart unless-stopped \
-e ORACLE_PASSWORD=$TEST_ORACLE_PWD \
-e TEST_ORACLE_PWD="$TEST_ORACLE_PWD" \
-v /${PWD}/oracle:/container-entrypoint-initdb.d \
gvenzl/oracle-xe:11.2.0.2-slim-faststart
gvenzl/oracle-xe:21.3.0-slim
./wait-container-ready.sh test-oracle "DATABASE IS READY TO USE!"

#docker exec -it test-oracle sqlplus sampledb/${TEST_ORACLE_PWD}@XE
6 changes: 6 additions & 0 deletions setup/oracle/oracle-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ sqlplus system/${TEST_ORACLE_PWD}@XE <<-EOSQL
grant create table to tdstorerdb2;
grant create procedure to tdstorerdb2;
grant create view to tdstorerdb2;
-- migration from 11 to 21 requires granting access to tablespace
grant unlimited tablespace to tdstorerdb2;
-- special databases (0 and 1) to check visibility of schemas
create user tdstorerdb0 identified by "$TEST_ORACLE_PWD" ACCOUNT UNLOCK;
grant connect to tdstorerdb0;
Expand All @@ -18,6 +21,8 @@ sqlplus system/${TEST_ORACLE_PWD}@XE <<-EOSQL
grant create procedure to tdstorerdb0;
grant create view to tdstorerdb0;
grant dba to tdstorerdb0;
grant unlimited tablespace to tdstorerdb0;
create user tdstorerdb1 identified by "$TEST_ORACLE_PWD" ACCOUNT UNLOCK;
grant connect to tdstorerdb1;
grant create session to tdstorerdb1;
Expand All @@ -26,5 +31,6 @@ sqlplus system/${TEST_ORACLE_PWD}@XE <<-EOSQL
grant create procedure to tdstorerdb1;
grant create view to tdstorerdb1;
grant dba to tdstorerdb1;
grant unlimited tablespace to tdstorerdb1;
EOSQL
echo "-- End setup"

0 comments on commit 71029ac

Please sign in to comment.