Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.14 KB

container-engine.md

File metadata and controls

23 lines (15 loc) · 1.14 KB

Container Engine

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.

  1. Run a container, providing a password through ORACLE_PASSWORD, which will be used for the SYS and SYSTEM users.

    podman run -d -p 1521:1521 -e ORACLE_PASSWORD=<your_password> gvenzl/oracle-xe:slim
  2. 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
  3. Connect to the database, e.g. using SQLcl.