• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 3 pages
Summary

Summary Containerizing oracle 19c database using docker

Document preview thumbnail
Preview 1 out of 3 pages

We appreciate you sharing your experience with containerizing Oracle 19c databases using Docker. It is a valuable contribution to our collective understanding of database management in modern environments. Your detailed steps will undoubtedly be helpful to others exploring similar solutions. Thank you for providing this insight into your process. We look forward to learning from your expertise.

Content preview

Dockerfile :-
-----------------------------------------
from oraclelinux:8
run dnf update -y
run dnf install vim-enhanced -y
run SELINUX=permissive


--------------------------------------------------------
for creating docker volume to store database files

docker volume create volume-oracledb --opt type=none --opt device=/u01 --opt o=bind
cd /u01/docker <---- will all data stored

docker run -d --privileged -v volume-oracledb:/u02 ol8 sleep 500000
docker run --privileged -d -m 6g -v /dev/shm:/dev/shm --shm-size=2g -v volume-
oracledb:/u02 ora_ol8 sleep 500000
-- to enable systemd
docker run -d -m 4g -v /sys/fs/cgroup/:/sys/fs/cgroup:ro --cap-add SYS_ADMIN -v
volume-oracledb:/u02 ol8 /sbin/init sleep 50000


docker exec -u 0 -it $(docker ps -q) /bin/bash

dnf install -y oracle-database-preinstall-19c
echo "oracle:k" | chpasswd

chown -R oracle:oinstall /u02
exit;
docker exec -u oracle -it $(docker ps -q) /bin/bash

sed -i '$a\
export TMP=/tmp\
export TMPDIR=$TMP\
export ORACLE_BASE=/u02/app/oracle\
export ORACLE_HOME=$ORACLE_BASE/product/19c/dbhome_1\
export ORACLE_SID=pune\
export ORACLE_TERM=xterm\
export BASE_PATH=/usr/sbin:$PATH\
export PATH=$ORACLE_HOME/bin:$BASE_PATH\
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib\
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib'
home/oracle/.bash_profile

mkdir -p /u02/app/oracle &&
mkdir -p /u02/app/oracle/product/19c/dbhome_1 &&
mkdir -p /u02/app/oraInventory &&
chown -R oracle:oinstall /u02 &&
chmod -R 775 /u02

exit
docker exec -u 0 -it $(docker ps -q) bash


docker cp /media/sf_All_Softwares/LINUX.X64_193000_db_home.zip $(docker ps
-q):/u02/app/oracle/product/19c/dbhome_1


chown oracle:oinstall

Document information

Uploaded on
May 12, 2026
Number of pages
3
Written in
2025/2026
Type
Summary
$8.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
3
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions