Starting Oracle 19.9.0.0 Docker Container

[oracle@dockerhost dockerOracle19c]$ cat createNetwork.sh
docker network create \
--driver=bridge \
--subnet=172.19.0.0/16 \
--ip-range=172.19.5.0/24 \
--gateway=172.19.5.254 \
oracledb
[oracle@dockerhost dockerOracle19c]$ cat startOracleKind.sh
docker run -dt --network=oracledb --name oracle19c --hostname dockerdb --user oracle --ip 172.19.5.10 \
-p 192.168.1.45:1521:1521 -p 192.168.1.45:5500:5500 \
-p 192.168.1.45:2484:2484 \
-e ORACLE_SID=KIND \
-e ORACLE_PDB=KINDPDB \
-v /oradrive/oradata:/opt/oracle/oradata \
oracle/database:19.3.0-ee
[oracle@dockerhost dockerOracle19c]$ docker exec -it oracle19c bash
[oracle@dockerdb /]$ cd /opt/oracle/product/19c/dbhome_1/dbs/
[oracle@dockerdb dbs]$ ls
hc_KIND.dat init.ora initKIND.ora lkKIND orapwKIND spfileKIND.ora
[oracle@dockerdb dbs]$ sftp oracle@192.168.1.45
The authenticity of host '192.168.1.45 (192.168.1.45)' can't be established.
ECDSA key fingerprint is SHA256:SnZE4OvuV1C0msN1qC6F+3GcjDK9eFy3C8uRS5kJHQs.
ECDSA key fingerprint is MD5:fb:0f:59:5e:a5:6d:26:cf:99:09:36:bc:2f:80:9e:d2.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.45' (ECDSA) to the list of known hosts.
oracle@192.168.1.45's password:
Connected to 192.168.1.45.
sftp> cd /ora
oradrave/ oradrive/
sftp> cd /oradrive/oradata/KIND/dbs/
sftp> ls
hc_KIND.dat init.ora initKIND.ora lkKIND orapwKIND spfileKIND.ora
sftp>put *
sftp>exit
[oracle@dockerhost dockerOracle19c]$ docker exec -it oracle19c bash
[oracle@dockerdb /]$ cd /opt/oracle/product/19c/dbhome_1/network/admin
[oracle@dockerdb dbs]$ ls
hc_KIND.dat init.ora initKIND.ora lkKIND orapwKIND spfileKIND.ora
[oracle@dockerdb dbs]$ sftp oracle@192.168.1.45
The authenticity of host '192.168.1.45 (192.168.1.45)' can't be established.
ECDSA key fingerprint is SHA256:SnZE4OvuV1C0msN1qC6F+3GcjDK9eFy3C8uRS5kJHQs.
ECDSA key fingerprint is MD5:fb:0f:59:5e:a5:6d:26:cf:99:09:36:bc:2f:80:9e:d2.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.45' (ECDSA) to the list of known hosts.
oracle@192.168.1.45's password:
Connected to 192.168.1.45.
sftp> cd /oradrive/oradata/KIND/network/admin
sftp> cd /oradrive/oradata/KIND/network/admin/
sftp> ls -1
tnsnames.ora listener.ora sqlnet.ora
sftp>put *
sftp>exit
[oracle@dockerhost dockerOracle19c]$ cat startOracleKind.sh
docker rm -f oracle19c
docker run -it --network=oracledb --name oracle19c --hostname dockerdb --user oracle --ip 172.19.5.10 \
-p 192.168.1.45:1521:1521 -p 192.168.1.45:5500:5500 \
-p 192.168.1.45:2484:2484 \
-e ORACLE_SID=KIND \
-e ORACLE_PDB=KINDPDB \
-v /oradrive/oradata/KIND/network/admin:/opt/oracle/product/19c/dbhome_1/network/admin \
-v /oradrive/oradata/KIND/dbs:/opt/oracle/product/19c/dbhome_1/dbs \
-v /oradrive/oradata/KIND/wallet:/opt/oracle/wallet \
-v /oradrive/fast_recovery_area:/opt/oracle/fast_recovery_area \
-v /oradrive/rman:/opt/oracle/rman \
-v /oradrive/oradata:/opt/oracle/oradata \
oracle/database:19.3.0-ee

--

--

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