DevOps/DBA n°1: Oracle database EE 19c on Docker Image based on Oracle Linux 7u7

Enjoy Oracle database EE 19c on Docker Image based on Oracle Linux 7u7, it is our first docker Image.
It is our first DevOps/DBA article, ping to DBA and DevOps Fun.

1. The Docker Image specifications:

  • Server Oracle Linux 7u7
  • Server Linux hostname: oracle19c
  • Memory: 3Go
  • Swap memory: 3Go
  • Shared Memory: 1Go
  • Oracle database Enterprise Edition 19c
  • Oracle Home: /u01/app/oracle/product/19.3.0.0/dbhome_1/
  • Base name: orcl
  • Password for sys & system: oracle_4U
  • Oracle Alert file: /u01/app/oracle/diag/rdbms/orcl/orcl/trace/alert_orcl.log
  • digest: sha256:f5096c182d3b73e9baa6b914cf9c12ebfa841c43fc157aabe79d3f870d79eac8

2. Enjoy the Oracle EE 19c Docker Image:

  • Search Docker Image Oracle database EE 19c:
# docker search oracle19c
docker.io wadhahdaouehi/oracle19c Oracle 19c EE Docker image on Oracle Linux 7… 0
  • Download the Oracle database Docker Image: version: 19.3.0.0
# docker pull wadhahdaouehi/oracle19c:19.3.0.0

  • Check you Docker Images list:
# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wadhahdaouehi/oracle19c 19.3.0.0 895edddc6188 32 hours ago 10.5GB
  • Run your Docker Image as container:
# docker run --name oracle19c --hostname oracle19c -t -i --shm-size=1g --memory=3g --memory-swap=3g 895edddc6188 /bin/bash

=> If you want, you can change some specifications:

  • –shm-size: Shared Memory size
  • –memory: Memory size
  • –memory-swap: Shared memory
  • –name: Container name
  • –hostname: Hostname

Note: If you want to change hostname, don’t forget to update the listener.ora file.

  • To check the Docker container IP adress:
# docker inspect -f {{.NetworkSettings.IPAddress}} oracle19c
172.17.0.2
  • To start database; there are the script /home/oracle/db19c_start.sh
# docker exec --user oracle oracle19c /home/oracle/db19c_start.sh
  • To stop database; there are the script /home/oracle/db19c_stop.sh
# docker exec --user oracle oracle19c /home/oracle/db19c_stop.sh

Conclusion:

Enjoy your Oracle database EE 19c Docker Image on Docker Hub based On Oracle Linux 7u7.

Bookmark the permalink.
Loading Facebook Comments ...

One Response to DevOps/DBA n°1: Oracle database EE 19c on Docker Image based on Oracle Linux 7u7

  1. Pingback: DevOps/DBA n°2: Oracle database EE 18c on Docker Image based on Oracle Linux 7u7 | Wadhah DAOUEHI

Leave a Reply