Skip to content

Oracle 19.9

Sean Scott edited this page Oct 20, 2020 · 4 revisions

Run an Oracle 19.9 Database in Docker

Stage Assets

Clone the Repo

git clone https://github.com/oraclesean/docker-oracle

Download Oracle

Download either oracle-database-ee-19c-1.0-1.x86_64.rpm or LINUX.X64_193000_db_home.zip from https://www.oracle.com/database/technologies/oracle-database-software-downloads.html#19c and place the file in ./19.9/install/.

Download OPatch

Download the latest OPatch software from MOS and place the file p6880880_190000_Linux-x86-64.zip in ./19.9/install/.

Download the 19.9 RU

Download the 19.9 RU from MOS and place it in ./19.9/install/patches/001/.

Build an Image

docker build --force-rm=true --no-cache=true --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') -t <IMAGE_NAME> -f Dockerfile.19.9 .

Run Containers

Simple Container with Defaults (ORACLE_SID = ORCLCDB, PDB = ORCLPDB)

docker run -d --name o199 <IMAGE_NAME>

Set the SID and create 3 PDB named "o199p"

docker run -d --name o199 -e ORACLE_SID=o199 -e PDB_COUNT=3 -e ORACLE_PDB=o199p <IMAGE_NAME>

Create a Non-Container Database

docker run -d --name o199 -e PDB_COUNT=0 <IMAGE_NAME>

Create a Container Database with SID = o199 and Named Pluggable Databases TEST, DEV and QA

docker run -d --name o199 -e ORACLE_SID=o199 -e PDB_LIST="TEST,DEV,QA" <IMAGE_NAME>

Create a Standard Edition Database

docker run -d --name o199 -e ORACLE_EDITION=SE <IMAGE_NAME>