hands on 19c on docker

sudo apt update && sudo apt upgrade
sudo apt install tasksel
sudo tasksel install kubuntu-desktop
https://linoxide.com/linux-how-to/how-install-gui-ubuntu-server-guide/
sudo gpasswd -a $USER docker

https://linoxide.com/linux-how-to/use-docker-without-sudo-ubuntu/

mkdir ~/oracle
cd ~/oracle
git clone https://github.com/oracle/docker-images.git

cp LINUX.X64_193000_db_home.zip ~/oracle/docker-images/OracleDatabase/SingleInstance/dockerfiles/19.3.0/

cd ~/oracle/docker-images/OracleDatabase/SingleInstance/dockerfiles
./buildDockerImage.sh -v 19.3.0 -e
Step 16/23 : USER root
—> Running in feb1fc28f3b3
Removing intermediate container feb1fc28f3b3
—> 6cfd64469823
Step 17/23 : RUN $ORACLE_BASE/oraInventory/orainstRoot.sh && $ORACLE_HOME/root.sh
—> Running in 7da5353c31b2
/bin/sh: /opt/oracle/oraInventory/orainstRoot.sh: No such file or directory
Removing intermediate container 7da5353c31b2
The command ‘/bin/sh -c $ORACLE_BASE/oraInventory/orainstRoot.sh && $ORACLE_HOME/root.sh’ returned a non-zero code: 127

NOT ENOUGH SPACE

docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
oracle/database 19.3.0-ee 5bf25e2a107a 2 minutes ago 6.65GB
oraclelinux 7-slim 874477adb545 3 months ago 118MB

mkdir -p ~/oracle/oradata/oracle19c
ivan@ivan:~$ pwd
/home/ivan
sudo chmod 777 -R /home/ivan/oracle/oradata/oracle19c
docker run –name oracle19c -p 1521:1521 -p 5500:5500 -v /home/ivan/oracle/oradata/oracle19c:/opt/oracle/oradata oracle/database:19.3.0-ee

[ 2019-11-17 20:03:34.654 UTC ] Cannot create directory “/opt/oracle/oradata/ORCLCDB".

docker exec -it oracle19c bash

[oracle@f6a216cc67da opt]$ cd oracle
[oracle@f6a216cc67da oracle]$ ls
admin cfgtoollogs checkpoints dbca.rsp.tmpl oraInventory product runUserScripts.sh setPassword.sh
audit checkDBStatus.sh createDB.sh diag oradata runOracle.sh scripts startDB.sh
[oracle@f6a216cc67da oracle]$
[oracle@f6a216cc67da oracle]$ ll
total 84
drwxr-x— 3 oracle oinstall 4096 Nov 17 20:03 admin
drwxr-x— 2 oracle oinstall 4096 Nov 17 20:03 audit
drwxr-x— 3 oracle oinstall 4096 Nov 17 20:03 cfgtoollogs
-rwxrwxr-x 1 oracle dba 1050 Nov 17 18:59 checkDBStatus.sh
drwxr-xr-x 2 oracle dba 4096 Nov 17 19:52 checkpoints
-rwxrwxr-x 1 oracle dba 3088 Nov 17 18:59 createDB.sh
-rw-rw-r– 1 oracle dba 9204 Nov 17 18:59 dbca.rsp.tmpl
drwxrwxr-x 1 oracle dba 4096 Nov 17 19:52 diag
drwxrwx— 1 oracle dba 4096 Nov 17 20:10 oraInventory
drwxrwxrwx 4 1000 1000 4096 Nov 17 20:11 oradata
drwxr-xr-x 1 oracle dba 4096 Nov 17 19:47 product
-rwxrwxr-x 1 oracle dba 6526 Nov 17 18:59 runOracle.sh
-rwxrwxr-x 1 oracle dba 1015 Nov 17 18:59 runUserScripts.sh
drwxr-xr-x 1 oracle dba 4096 Nov 17 19:47 scripts
-rwxrwxr-x 1 oracle dba 758 Nov 17 18:59 setPassword.sh
-rwxrwxr-x 1 oracle dba 678 Nov 17 18:59 startDB.sh
[oracle@f6a216cc67da oracle]$

docker exec -u root –workdir / -ti oracle19c /bin/sh
docker exec -it odbee193 bash -c “source /home/oracle/.bashrc; sqlplus /nolog"
docker system prune -a
docker rmi -f 5bf25e2a107a
==================================
resize
==================================
cd C:\Program Files\Oracle\VirtualBox
.\VBoxManage modifyhd “C:\Users\Administrator\VirtualBox VMs\ubuntu18\ubuntu18.vdi" –resize 200000
$ sudo apt-get install gparted
$ gparted
sudo docker exec -it oracle19c /bin/bash

ORACLE PASSWORD FOR SYS, SYSTEM AND PDBADMIN: rNJ25HJm8RE=1

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com 標誌

您的留言將使用 WordPress.com 帳號。 登出 /  變更 )

Google photo

您的留言將使用 Google 帳號。 登出 /  變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 /  變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 /  變更 )

連結到 %s