**Oracle configuration**::
# create the container with the proper configuration for sqlalchemy
- docker run --rm --name oracle -p 127.0.0.1:1521:1521 -d -e ORACLE_PASSWORD=tiger -e ORACLE_DATABASE=test -e APP_USER=scott -e APP_USER_PASSWORD=tiger gvenzl/oracle-xe:21-slim
+ docker run --rm --name oracle -p 127.0.0.1:1521:1521 -d -e ORACLE_PASSWORD=tiger -e ORACLE_DATABASE=test -e APP_USER=scott -e APP_USER_PASSWORD=tiger gvenzl/oracle-free:23-slim
# enter the database container and run the command
docker exec -ti oracle bash
- >> sqlplus system/tiger@//localhost/XEPDB1 <<EOF
+ >> sqlplus system/tiger@//localhost/FREEPDB1 <<EOF
CREATE USER test_schema IDENTIFIED BY tiger;
GRANT DBA TO SCOTT;
GRANT CREATE TABLE TO scott;
GRANT UNLIMITED TABLESPACE TO scott;
GRANT UNLIMITED TABLESPACE TO test_schema;
GRANT CREATE SESSION TO test_schema;
- CREATE PUBLIC DATABASE LINK test_link CONNECT TO scott IDENTIFIED BY tiger USING 'XEPDB1';
- CREATE PUBLIC DATABASE LINK test_link2 CONNECT TO test_schema IDENTIFIED BY tiger USING 'XEPDB1';
+ CREATE PUBLIC DATABASE LINK test_link CONNECT TO scott IDENTIFIED BY tiger USING 'FREEPDB1';
+ CREATE PUBLIC DATABASE LINK test_link2 CONNECT TO test_schema IDENTIFIED BY tiger USING 'FREEPDB1';
EOF
# To stop the container. It will also remove it.
docker stop oracle
NOTE: with this configuration the url to use is
-``oracle+cx_oracle://scott:tiger@127.0.0.1:1521/?service_name=XEPDB1``. It can
-be used with pytest by using ``--dburi oracle+cx_oracle://scott:tiger@127.0.0.1:1521/?service_name=XEPDB1``.
+``oracle+cx_oracle://scott:tiger@127.0.0.1:1521/?service_name=FREEPDB1``. It can
+be used with pytest by using ``--dburi oracle+cx_oracle://scott:tiger@127.0.0.1:1521/?service_name=FREEPDB1``.
CONFIGURING LOGGING
-------------------
profile_file = test/profiles.txt
# name of a "loopback" link set up on the oracle database.
-# to create this, suppose your DB is scott/tiger@xe. You'd create it
+# to create this, suppose your DB is scott/tiger@free. You'd create it
# like:
# create public database link test_link connect to scott identified by tiger
-# using 'xe';
+# using 'free';
oracle_db_link = test_link
# create public database link test_link2 connect to test_schema identified by tiger
-# using 'xe';
+# using 'free';
oracle_db_link2 = test_link2
# host name of a postgres database that has the postgres_fdw extension.
oracle = oracle+cx_oracle://scott:tiger@oracle18c/xe
cxoracle = oracle+cx_oracle://scott:tiger@oracle18c/xe
oracledb = oracle+oracledb://scott:tiger@oracle18c/xe
-docker_oracle = oracle+cx_oracle://scott:tiger@127.0.0.1:1521/?service_name=XEPDB1
+docker_oracle = oracle+cx_oracle://scott:tiger@127.0.0.1:1521/?service_name=FREEPDB1