Quickly deploy Oracle environments with Docker

Source: Internet
Author: User
Tags glassfish

The Oracle environment is frequently used at work, but each time it is set up, it is time-consuming to install the Oracle VM in a virtual machine template, but the environment, such as IP every time, is time intensive, so think of the images that has been done in Docker, This gives you a quick access to Oracle environments.

[Email protected]Rac1:docker Search Oracleindex NAME DESCRIPTION STARS official Automateddocker.io Docker.io/wnameless/oracle-xe-11g Oracle Express 11g R2 on Ubuntu16.04LTS417[Ok]docker.io Docker.io/oraclelinux Oracle Linux is an open-source operating s ...304[Ok]docker.io Docker.io/alexeiled/docker-oracle-xe-11g This is a working (hopefully) Oracle XE One...203[Ok]docker.io Docker.io/SATH89/ORACLE-12C Oracle Standard Edition 12c Release1With ... the[Ok]docker.io Docker.io/sath89/oracle-xe-11g Oracle XE 11g with database filesMount su... the[Ok]docker.io Docker.io/isuper/java-oracle This repository contains all Java releases ... the[Ok]docker.io Docker.io/jaspeen/oracle-11g Docker Image forOracle 11g Database -[Ok]docker.io Docker.io/oracle/oraclelinux Oracle Linux is an Open-source operating s ... the[Ok]docker.io Docker.io/INGENSI/ORACLE-JDK official Oracle JDK installed on CentOS. -[Ok]docker.io Docker.io/AIRDOCK/ORACLE-JDK Docker Image forOracle Java SDK (8and7)... -[Ok]docker.io Docker.io/ORACLE/OPENJDK Docker images containing openjdk Oracle Linux the[Ok]docker.io Docker.io/cogniteev/oracle-java Oracle JDK6,7,8, and9Based on Ubuntu ... A[Ok]docker.io Docker.io/N3ZINIUKA5/UBUNTU-ORACLE-JDK ubuntu with Oracle JDK. Check tags forVer ... A[Ok]docker.io Docker.io/andreptb/oracle-java Debian Jessie based image with Oracle JDK ...8[Ok]docker.io Docker.io/oracle/glassfish glassfish Java EE application Server on Or ...8[Ok]docker.io Docker.io/oracle/nosql Oracle NoSQL on a Docker Image with Oracle ...7[Ok]docker.io Docker.io/infogene/oracle Image forRunning Oracle Database 11g Stan ...6[Ok]docker.io Docker.io/openweb/oracle-tomcat A Fork off of official Tomcat image with O ...5[Ok]docker.io Docker.io/FLURDY/ORACLE-JAVA7 Base image containing Oracle's Java 7 JDK 4 [OK]Docker.io Docker.io/JTECH/ORACLE-JDK A Docker image based on the smallest Linux ...3[Ok]docker.io Docker.io/davidcaste/debian-oracle-java Oracle Java8(and7) over Debian Jessie2[Ok]docker.io Docker.io/kaluzki/oracle kaluzki/oracle2[Ok]docker.io Docker.io/clincase/oracle clincase Oracle DB server Image1[Ok]docker.io Docker.io/JCKRZ/DEBIAN-ORACLE-JDK Vanilla Debian + Oracle JDK1[Ok]docker.io Docker.io/publicisworldwide/oracle-core the core image based on Oracle Lin ...1[OK]

You can see that there are many versions, 11g,12c

Choose to get 12c version here

[email protected] rac1:/home/# Docker pull sath89/oracle-12cUsing default tag:latestlatest:Pulling from sath89 /oracle-12c863735b9fd15:pull Complete 4fbaa2f403df:pull complete faadd00cf98e:downloading [=======>                                          394.8 mb/2.768  gb829e2e754405:download Complete [email protected]-rac1:/home/# Docker imagesrepository TAG IMAGE ID CREATED sizedocker.io55.692 GB

Create a container with the 12g image you just downloaded and run the Oracle database on it

8080:80801521:1521 -v/my/oracle/data:/u01/app/oracle sath89/oracle-12c
[email protected] ~]# Docker logs-F ffbeb07058449672c640ddb4e59b8376dae2e3b4dd54142871da7adbc069ee79ls: Cannot access/u01/app/oracle/oradata:no suchfileor Directorydatabase not initialized. Initializing database. Starting tnslsnrcopying database Files1% CompletePanax Notoginseng%completecreating and starting Oracle instance +% Complete $% Complete +%completecompleting Database Creation the% Complete -%Completelook at the logfile "/u01/app/oracle/cfgtoollogs/dbca/xe/xe.log"  forfurther details. Configuring Apex consoledatabase initialized. Please visit http://#containeer: 8080/em http://#containeer: 8080/apex for extra configuration if neededstarting web Management Consolepl/SQL procedure successfully completed. Starting import from'/DOCKER-ENTRYPOINT-INITDB.D': Foundfile/docker-entrypoint-initdb.d//docker-entrypoint-initdb.d/*[IMPORT]/entrypoint.SH: IGNORING/DOCKER-ENTRYPOINT-INITDB.D/*Import finisheddatabase ready to use. enjoy! ;)

Here the Oracle instance is up and ready.

You can see that the created container is already running

[email protected] ~]~$ DockerPSCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS names9e893d773494 sath89/oracle-12c"/entrypoint.sh"   theMinutes ago Up theMinutes0.0.0.0:1521-1521/TCP,0.0.0.0:8080-8080/TCP Clever_chandrasekhar into Oracle Container[[email protected]-rac1 ~]~$ Docker exec-it 9e893d773494/bin/Bash[email protected]:/#suOracle[email protected]:~$ $ORACLE _home/bin/sqlplus/As Sysdbasql*plus:release12.1.0.2.0Production on Fri Feb - Geneva:Geneva:xx  .Copyright (c)1982, the, Oracle. All rights reserved. SQL>The instance name, user name, and password used by Oracle are as follows---------------------------------------------hostname: Localhostport:1521sid:xeusername:systempassword:oracle

---------------------------------------------

The next step is to quickly use the oracle12c.

For more information about Docker tutorials, see the following :

Docker installation Application (CentOS 6.5_x64) http://www.linuxidc.com/Linux/2014-07/104595.htm

Ubuntu 14.04 Installing Docker http://www.linuxidc.com/linux/2014-08/105656.htm

Ubuntu runs Docker-based desktop system using VNC http://www.linuxidc.com/Linux/2015-08/121170.htm

Install and start Docker http://www.linuxidc.com/Linux/2017-03/141714.htm under 64-bit CentOS

Install Docker http://www.linuxidc.com/Linux/2015-07/120444.htm under Ubuntu 15.04

Installing Docker http://www.linuxidc.com/Linux/2014-10/108184.htm on Ubuntu trusty 14.04 (LTS) (64-bit)

How to install Docker and basic usage on Ubuntu 15.04 http://www.linuxidc.com/Linux/2015-09/122885.htm

Ubuntu 16.04 on the use of Docker http://www.linuxidc.com/Linux/2016-12/138490.htm

more about Docker : please click here
Docker's : please click here

See Oracle Feature page for more information on Oracle HTTP://WWW.LINUXIDC.COM/TOPICNEWS.ASPX?TID=12

This article permanently updates the link address : http://www.linuxidc.com/Linux/2017-03/141760.htm

Quickly deploy Oracle environments with Docker

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.