How To Use Oracle Database Docker Image To Supercharge Your DevOps Learning | Pazikas.com

What is Docker?

Useful Docker Commands

## Stop Docker Image
docker container stop oracle19.3
##Start docker container
docker container start oracle19.3
## Show running Docker containers
docker ps
## List All Docker Images
docker images
## Delete Docker Image
docker image rm "image_id_here"

Oracle Database Docker Image

git clone https://github.com/oracle/docker-images.git
cd ~/docker-images/OracleDatabase/SingleInstance/19.3.0
cp $HOME/Downloads/LINUX.X64_193000_db_home.zip .
ARG SLIMMING=false
cd ~/docker-images/OracleDatabase/SingleInstance ./buildDockerImage.sh -v 19.3.0 -e
docker run --name "oracle19.3" -p 1521:1521 -p 5500:5500 -e ORACLE_PDB=orapdb1 -e ORACLE_PWD=topsecretpass -e ORACLE_MEM=3000 -v /opt/oracle/oradata -d oracle/database:19.3.0-ee
docker exec -it oracle19.3 /bin/bash ps -ef |grep pmon . oraenv sqlplus / as sysdba

Patching Oracle Database Docker Image

git clone https://github.com/oracle/docker-images.git
cd ~/docker-images/OracleDatabase/SingleInstance/19.3.0/samples/applypatch
19.3.0.0 patches 001 (patch directory) pNNNNNN_RRRRRR.zip (patch zip file) 002 (optional) 00N (optional, Nth patch directory) p6880880*.zip (optional, OPatch zip file)
./buildPatchedDockerImage.sh -e -v 19.3.0 -p Oct2020
docker run --name "oracle19.9" -p 1521:1521 -p 5500:5500 -e ORACLE_PDB=orapdb1 -e ORACLE_PWD=topsecretpass -e ORACLE_MEM=3000 -v /opt/oracle/oradata -d oracle/database:19.3.0-ee-Oct2020
docker exec -it oracle19.9 /bin/bash ps -ef | grep pmon . oraenv sqlplus / as sysdba

Conclusions

Database Administrator, Oracle Engineer, Tech Enthusiast & Crypto Mavrick

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store