Giter VIP home page Giter VIP logo

docker-oracle11g's Introduction

docker-oracle11g

Docker + Oracle Linux 6.5 + Oracle Database 11gR2 (Enteprise Edition) setup. Does not include the DB11g binary. You need to download that from the official site beforehand.

This little repo started out as a clone of Guillaume Cusnieux's dockerisation of Oracle. However, while I rely on a lot of the work he has done, I've changed the approach to building the container image quite a lot. --hedlund

Download

Clone this repository to a local directory. Move the "database" directory to the same folder.

$ git clone https://github.com/hedlund/docker-oracle11g

Then download the database binary (11.2.0) from below.

http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html

  • linux.x64_11gR2_database_1of2.zip
  • linux.x64_11gR2_database_2of2.zip

Move these two zip-files into the repository clone (don't worry, they're gitignored).

Image build

As I've changed things around quite a bit compared to the original version, building the thing is quite straightforward:

$ cd docker-oracle11g
$ ./build.sh

This will build an image called hedlund/oracle11g. In case you want to build the image with a different tag, simply run:

$ docker build -t whatever_you_want .

Please note that this takes quite some time (it can take up to 10+ minutes), plus that you might run out of disk space in case you're running Boot2Docker. In that case you need to resize your Boot2Docker volume.

Running a container

Running a container is straightforward:

$ docker run -p 1521:1521 hedlund/oracle11g

This will start the container, map the database port to 1521 so that you can access it, and then simply tail the Oracle listener log to stdout.

I've chosen to not install & run an SSH daemon (which was the case in the original repository), but you can easily add that if you want it.

Accessing the database is easy, simply connect to the container using whatever software you like. The hostname depends on your local setup - it could be localhost, boot2docker, 192.168.59.103, or another IP address:

Host: <depends - see above>
Port: 1521
SID: oracl
Username: system
Password: oracle

You can also start a shell inside the container and access the database locally:

$ docker exec -it <container id> bash
$ sqlplus system/oracle@localhost:1521/orcl

Enjoy!

docker-oracle11g's People

Watchers

 avatar

Forkers

montge

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.