Not to be confused with the Oracle multitenant container database (CDB).
Oracle Database can be run in a container, using a container engine such as Podman or Docker.
Images can be built from source but there are community maintained Oracle XE images available.
-
Run a container, providing a password through
ORACLE_PASSWORD
, which will be used for theSYS
andSYSTEM
users.podman run -d -p 1521:1521 -e ORACLE_PASSWORD=<your_password> gvenzl/oracle-xe:slim
-
Check the container is running.
$ podman ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 6c5800535262 docker.io/gvenzl/oracle-xe:slim 8 seconds ago Up 8 seconds ago 0.0.0.0:1521->1521/tcp pensive_khorana
-
Connect to the database, e.g. using SQLcl.