Showing posts with label Oracle. Show all posts
Showing posts with label Oracle. Show all posts

Monday, May 2, 2016

Oracle 12c docker container



open VirtualBox and goto settting, in Shared folders

add folder, permission and naming

Press OK and finish in VirtualBox

To ensure shared folder can access by Docker container restarting

docker-machine stop default
docker-machine start default

Babun shell:

docker-machine ssh default

sudo mkdir -p /cygdrive/d/TEMP
sudo mount -t vboxsf temp /cygdrive/d/TEMP

docker@default:~$ df -k
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   896.3M    164.5M    731.8M  18% /
tmpfs                   497.9M         0    497.9M   0% /dev/shm
/dev/sda1                17.9G    807.9M     16.1G   5% /mnt/sda1
cgroup                  497.9M         0    497.9M   0% /sys/fs/cgroup
/dev/sda1                17.9G    807.9M     16.1G   5% /mnt/sda1/var/lib/docker/aufs
temp                    419.5G    200.0G    219.5G  48% /cygdrive/d/TEMP


 docker run -it --privileged -v /cygdrive/d/TEMP:/test oraclelinux:7.2 bash

Install database
/vagrant/database/runInstaller -silent -showProgress -ignorePrereq -responseFile /vagrant/db_install.rsp

Listener configuration
netca -silent -responseFile $ORACLE_HOME/assistants/netca/netca.rsp

Database creation
dbca -silent -createDatabase -responseFile /vagrant/dbca.rsp