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

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

You can find Oracle database EE 19c on Docker Image based on Oracle Linux 7u7

1. This Image specifications:

  • Server Oracle Linux 7u7
  • Server Linux hostname: oracle18c
  • Memory: 3Go
  • Swap memory: 3Go
  • Shared Memory: 1Go
  • Oracle database Enterprise Edition 18c
  • Base name: orcl
  • Password for sys & system: oracle_4U
  • digest: sha256:f85f7bb1c60ec3eef75eda62ffe7f64b59046615169eb41888bf2330e549abc4

2. Enjoy the Oracle EE 18c Docker Images

  • Search Docker Image Oracle database EE 18c:
# docker search oracle18c
...
docker.io wadhahdaouehi/oracle18c Oracle Database EE 18c Docker Image on Oracl… 1
...
  • Download the Oracle database Docker Image:
# docker pull wadhahdaouehi/oracle18c:18.3.0.0
  • Check you Docker Images list:
# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wadhahdaouehi/oracle18c 18.3.0.0 aaff1894de0c 47 hours ago 12.9GB
  • Run your Docker Image as container:
# docker run --name oraclel18c -h oracle18c -t -i --shm-size=1g --memory=3g --memory-swap=3g aaff1894de0c /bin/bash

If you want, you can change some specification:

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

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

  • To check the Docker container IP adress:
# docker inspect -f {{.NetworkSettings.IPAddress}} oraclel18c
  • To start database; there are the script /home/oracle/db18c_start.sh
# docker exec --user oracle oraclel18c /home/oracle/db18c_start.sh
  • To start database; there are the script /home/oracle/db18c_stop.sh
# docker exec --user oracle oraclel18c /home/oracle/db18c_stop.sh

Conclusion:

Enjoy your Oracle database EE 18c Docker Image.

Bookmark the permalink.
Loading Facebook Comments ...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.