Presentation is loading. Please wait.

Presentation is loading. Please wait.

Oracle DB and Docker Get Your Dockerized Oracle Sandbox Running in the Cloud or On- Premises Martin Knazovicky Dbvisit Software.

Similar presentations


Presentation on theme: "Oracle DB and Docker Get Your Dockerized Oracle Sandbox Running in the Cloud or On- Premises Martin Knazovicky Dbvisit Software."— Presentation transcript:

1 Oracle DB and Docker Get Your Dockerized Oracle Sandbox Running in the Cloud or On- Premises Martin Knazovicky Dbvisit Software

2 Martin Knazovicky Chief Services Officer – 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

3 Who is DBVISIT Software
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

4 Agenda: Intro to containers and Docker
Oracle DB running in the Oracle Cloud’s Container Services Oracle Database running on your local server/laptop Demo Oracle DB – in Docker

5 Alternatives to docker
Open Container Initiative, Kubernetes, CoreOS - rkt, Apache Mesos and Mesosphere, Canonical - LXD

6 Docker is the company driving the container movement

7 docker Solomon Hykes started Docker in France as an internal project within dotCloud An evolution of dotCloud's proprietary technology Docker was released as open source in March 2013

8 docker Lightweight virtualization = Speed + Space Easy updating
Test against the same image as production. Automate and speed up your build process. Distribute and deploy scalable services.

9 docker Increase setup, configuration complexity
Containers share the same kernel Elevated OS privileges may be needed. Containers not made for GUI systems

10 docker Enterprise Edition Community Edition

11 docker Docker Store Docker Documentation Docker Hands on Guides
Docker Training Docker Certification

12 Docker behind the scenes

13 VM Docker container vs VM

14 Docker service 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

15 Docker orchestration Tools
Docker Swarm Docker Stack Docker Compose

16 Docker image Permanently stored image of the environment that Docker uses to create a container

17 Docker container By default all files created inside a container are stored on a writable container layer

18 Image vs container

19 Docker storage Volumes are stored in a part of the host filesystem which is managed by Docker. Non-Docker processes should not modify this part of the filesystem. Volumes are the best way to persist data in Docker. Bind mounts may be stored anywhere on the host system. They may even be important system files or directories. Non-Docker processes on the Docker host or a Docker container can modify them at any time. tmpfs mounts are stored in the host system’s memory only, and are never written to the host system’s filesystem.

20 docker stats

21

22 DOCKER COMMANDS docker build docker port docker commit docker ps
docker cp docker create docker exec docker export docker import docker history docker network docker stop docker stats docker system docker port docker ps docker pull docker push docker rename docker rm docker rmi docker run docker service docker stack docker start

23 Docker container resources
Understand the risks of running out of memory It is important not to allow a running container to consume too much of the host machine’s memory. Configure the default CFS scheduler By default, each container’s access to the host machine’s CPU cycles is unlimited. You can set various constraints to limit a given container’s access to the host machine’s CPU cycles. 

24 YAML FILE dbv8: image: your_repository/name:tag
volumes: - ~/standby_releases:/install shm_size: 512M mem_limit: 1024M container_name: dbv8 hostname: dbv8 entrypoint: /home/oracle/bin/dbvs-entry.sh command: [ -i, "${INSTALL_FILE}", -g, -s] ports: "4433:4433" - "2228:22" links: - dbv1 - dbv2 - dbv3 - dbv4 - dbv5 - dbv6 - dbv7

25 Moving onto oracle container service

26 Oracle Container services

27 Oracle Container services

28 Oracle Container services

29 Oracle Container services

30 Oracle Container services

31 Oracle Container services

32 Oracle Container services

33 Oracle Container services

34 Oracle Container services
Setup new service - oracle database is located at

35 Oracle Container services

36 Oracle Container services

37 Oracle Container services

38 Oracle Container services

39 Oracle Container services

40 Oracle Container services
sqlplus as sysdba

41 Oracle Container services

42 Oracle Container services
to connect to database using your docker (for example if you don’t have an installation of oracle client on your laptop) you can use oracle’s docker instant client docker run -ti --rm store/oracle/database-instantclient: sqlplus as sysdba"

43 Oracle Container services
to log onto the host: ssh -i oowdemo_rsa xxx xxx xxx

44 Oracle Container services
~]# docker exec -it 0.OracleDB12.2.OracleDB bash -c "source /home/oracle/.bashrc; sqlplus /nolog" SQL*Plus: Release Production on Thu Sep 6 02:46: Copyright (c) 1982, 2016, Oracle. All rights reserved. SQL> connect sys /as sysdba Enter password: Connected.

45 Local Docker demo

46 Thank you @knazo


Download ppt "Oracle DB and Docker Get Your Dockerized Oracle Sandbox Running in the Cloud or On- Premises Martin Knazovicky Dbvisit Software."

Similar presentations


Ads by Google