This repository provides a small docker compose.yml file to work with Oracle Enterprise 19c using Docker. This Repository is not affiliated with Oracle in any way.
- You have Docker+Docker Desktop installed.
- You have the minimum RAM and Disk Space as specified by Oracle.
An extensive write-up is available at the linked blog post. A quickstart is provided in this README.
- Clone this repository to your local system.
- Download the Oracle Database 19c for LINUX (Enterprise Edition) ZIP file for your Architecture (ARM or AMD64) and place it in the
docker-images/OracleDatabase/SingleInstance/dockerfiles/19.3.0folder. - Run the
docker-images/OracleDatabase/SingleInstance/dockerfiles/buildContainerImage.shshell script with the appropriate command line tags:./buildContainerImage.sh -e -v 19.3.0(-eforenterprise,-v 19.3.0for the appropriate version) - Wait for the Build to complete.
- Set the appropriate
ORACLE_PWD(oracle database administrator password) and other environment variables etc in thecompose.ymlfile. - Place your
SQLprograms in theprogramsfolder. This folder will be available as the/home/oracle/programsfolder inside the docker container. - Run
docker compose up. And wait for the database to finish creation/startup. - Open up the
Docker Desktopand open theexectab of the created Docker container.- You can treat this as the shell of a virtual machine.
- Move into the
programsdirectory from within the Container, and runsqlplus sys/oracle@//localhost:1521/ORCL as sysdbareplacingoraclewith the password you set and replacing other changed environment variables appropriately. - Now you can run SQL commands and programs!
Since port 1521 is exposed, you should also be able to run programs that connect to the database using the JDBC.
- Remove this repository (its folder) from your computer.
- Delete the created Docker container
- Delete the created Docker image.
This docker-run-to-compose converter was used to convert a version of the Docker run command from this README from Oracle's Github Repository to a compose.yml file.
This repository is not affiliated with Docker Inc. or Oracle in any way.