Installation guide for deploying Oracle Database 21c Enterprise Edition in Docker containers, covering image access, connections, custom parameters, and…
This document explains how to install Oracle Database Enterprise Edition or Standard Edition on Docker using the Oracle Database 21c Enterprise Edition image, which runs on Oracle Linux 7 (x86-64) and includes a default multitenant database with one pluggable database. It covers deployment options, connecting to the database from inside and outside the container, changing administrative passwords, and using custom configuration parameters.
The guide also describes how to start a database instance with the docker run command, including port mappings, environment variables, and data volumes, and how to run scripts after setup and on startup. It notes restrictions and minimum requirements for the Docker image.
| Database edition | Oracle Database 21c Enterprise Edition, with the option to deploy Enterprise Edition or Standard Edition |
|---|---|
| Operating system | Oracle Linux 7 (x86-64) |
| Default database configuration | Multitenant configuration with one pluggable database |
| Default port for Oracle client connections | 1521 |
| OEM Express port | 5500 |
| Default ORACLE_SID | ORCLCDB |
| Default ORACLE_PDB | ORCLPDB1 |
| Default ORACLE_EDITION | enterprise |
| Default ORACLE_CHARACTERSET | AL32UTF8 |
| Default ENABLE_ARCHIVELOG | false |
| Oracle user ID for data volume | 54321 |
Start the container with the -p option, then connect using the default port 1521 or the exposed port. Clients can use SQL*Plus or any JDBC interface.
Use the setPassword.sh script provided in the container with the Docker exec command. The container must be running.
A single random password is generated for the administrative users, and it appears in the database logs as the ORACLE PASSWORD FOR SYS, SYSTEM AND PDBADMIN line.
ORACLE_SID changes the Oracle system identifier of the database, and ORACLE_PDB modifies the name of the pluggable database. Both are optional.