GetYour
Dockerized Oracle
Sandbox Running
in the Cloud or On-
Premises
Martin Knazovicky
Dbvisit Software
§ 20 + years IT experience
§ San Francisco Bay Area 10 years
§ Auckland, New Zealand 10 years
§ Oracle, MS SQL, IBM Certified DBA
§ Logical and Physical Replication
§ Dbvisit Software since 2013
§ Oversee Dbvisit Services
@knazo
martin@dbvisit.com
• New Zealand-based, US office, Asia sales office, EU office (Prague)
• Low cost solutions; flexible licensing
• Full lifecycle DR application for Oracle Standard Edition
• ”Oracle-aware” replication vs “block level copy”
• Cloud Ready (AWS, Azure, Oracle etc.)
• Keeps standby (DR) database ready to go 24/7
§ Dbman = calm under pressure; responds to crises; remains
calm under pressure; typical of most DBAs today
§ Visit him at our kiosk; take a photo #DBAhero; share your
qualities as a DBA
§ Take a Dbman sticker
• Intro to containers and
Docker
• Oracle DB running in the
Oracle’s Cloud
Container Services
• Oracle Database
running on your local
server/laptop
• Demo Oracle DB – in
Docker
Martin Knazovicky @knazo
• Open Container
Initiative,
• Kubernetes,
• CoreOS - rkt,
• Apache Mesos and
Mesosphere,
• Canonical - LXD
Martin Knazovicky @knazo
Martin Knazovicky @knazo
Martin Knazovicky @knazo
• Lightweight virtualization = Speed + Space
• Embraced by majority of clouds
• Test against the same image as production.
• Automate and speed up your build process.
• Distribute and deploy scalable services.
Martin Knazovicky @knazo
• Increase setup, configuration complexity
• Containers share the same kernel
• Elevated OS privileges may be needed.
• Containers not made for GUI systems
Martin Knazovicky @knazo
Capabilities
Community
Edition
Enterprise
Edition Basic
Enterprise
Edition
Standard
Enterprise
Edition
Advanced
Container engine
and built in
orchestration,
networking,
security
Certified
infrastructure,
plugins and ISV
containers
Image
management
Container app
management
Image security
scanning
Martin Knazovicky @knazo
• Docker Store
• Docker Documentation
• Docker Hands on Guides
• Docker Training
• Docker Certification
Martin Knazovicky @knazo
Martin Knazovicky @knazo
App
1
App
2
App
3
App
4
App
5
App
6
Docker
Host Operating System
Infrastructure
VM1 VM2 VM3
APP 1 APP2 APP3
Guest OS Guest OS Guest OS
Host Operating System
Infrastructure
Martin Knazovicky @knazo
The Docker software as a service has three components:
• The Docker daemon – “dockerd”
• Objects
• Docker Container
• Docker Image
• Docker Services
• Registries – repository for Docker images
Martin Knazovicky @knazo
• Docker Swarm
• Docker Stack
• Docker Compose
Martin Knazovicky @knazo
Permanently stored image of the environment that Docker uses to create an container
Martin Knazovicky @knazo
By default all files created inside a container are stored on a writable container layer
Martin Knazovicky @knazo
94ec11b80c22 0B
98ec43b80c25 1.8KB
92ec80c80c35 194.5KB
4ab0d9120945 188.7MB
Thin R/W Layer Thin R/W Layer Thin R/W Layer Thin R/W Layer
Martin Knazovicky @knazo
docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]
Martin Knazovicky @knazo
https://docs.docker.com/storage/images/types-of-mounts-volume.png
docker stats
Martin Knazovicky @knazo
Martin Knazovicky @knazo
Martin Knazovicky @knazo
Martin Knazovicky @knazo
Martin Knazovicky @knazo
Martin Knazovicky @knazo
Martin Knazovicky @knazo
Martin Knazovicky @knazo
Martin Knazovicky @knazo
Martin Knazovicky @knazo
to log onto the host:
ssh -i oowdemo_rsa opc@xxx xxx xxx xxx
Martin Knazovicky @knazo
root@xxx-occs-wkr-1 ~]# docker exec -it 0.OracleDB12.2.OracleDB12.2-
20134906-135245 bash -c "source /home/oracle/.bashrc; sqlplus /nolog"
SQL*Plus: Release 12.2.0.1.0 Production on Thu Sep 6 02:46:19 2018
Copyright (c) 1982, 2016, Oracle. All rights reserved.
SQL> connect sys /as sysdba
Enter password:
Connected.
Martin Knazovicky @knazo
Martin Knazovicky @knazo

Oracle Database and Docker Containers