File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 matrix :
3636 - ORACLE_VERSION="12c-se-r1" CONNECTION_STR='127.0.0.1:1521/ORCLPDB1'
3737 - ORACLE_VERSION="11g-xe-r2" CONNECTION_STR='127.0.0.1:1521/XE' DOCKER_OPTIONS='--shm-size=1g'
38-
38+ - ORACLE_VERSION="12c-se2-r2" CONNECTION_STR='127.0.0.1:1521/ORCLPDB1'
3939
4040cache :
4141 pip : true
Original file line number Diff line number Diff line change 1515docker pull $DOCKER_BASE_TAG :$ORACLE_VERSION
1616docker run -d --name $ORACLE_VERSION $DOCKER_OPTIONS -p 1521:1521 $DOCKER_BASE_TAG :$ORACLE_VERSION
1717docker logs -f $ORACLE_VERSION | grep -m 1 " DATABASE IS READY TO USE!" --line-buffered
18+
19+ if [ " $ORACLE_VERSION " == " 12c-se2-r2" ]; then
20+ " $SQLCLI " sys/oracle@//127.0.0.1:1521/ORCLCDB as sysdba << EOF
21+ CREATE PLUGGABLE DATABASE ORCLPDB1 ADMIN USER PDBADMIN IDENTIFIED BY "$ORACLE_PWD "
22+ FILE_NAME_CONVERT=('/opt/oracle/oradata/ORCLCDB/pdbseed/','/opt/oracle/oradata/ORCLPDB1/');
23+ ALTER PLUGGABLE DATABASE ORCLPDB1 SAVE STATE;
24+ ALTER PLUGGABLE DATABASE ORCLPDB1 OPEN READ WRITE;
25+ ALTER SESSION SET CONTAINER = ORCLPDB1;
26+ CREATE TABLESPACE users DATAFILE '/opt/oracle/oradata/ORCLPDB1/users01.dbf' SIZE 1M AUTOEXTEND ON NEXT 1M;
27+ exit;
28+ EOF
29+ fi
You can’t perform that action at this time.
0 commit comments