Public Repository

Last pushed: a year ago
Short Description
Use this image to run Oracle 12c EE database within a Docker container.
Full Description

Running the database

To run a container use:

docker run --shm-size=256m -it \
    -p 1521:1521 \
    --name db-FOO embedit/oracle /bin/bash

Note that on MS Windows --shm-size needs to be bigger (on Win7 it needs at least 364 MB, but the setting may differ).

This will run a docker container and name it db-FOO.

No database has yet been created. To create a database, run following scripts in the container:

ORACLE_SID=FOO
/home/oracle/run/bin/db-create.sh
/home/oracle/run/bin/db-post-create.sh
/home/oracle/run/bin/db-start.sh

The database creation takes a while, so please be patient.

After the listener has been started you should be able to connect to the database using
system/password@localhost:1521/FOO.

More

To start and stop container db-FOO:

docker start db-FOO
docker stop db-FOO

To invoke interactive shell in the running container db-FOO:

docker exec -it db-FOO /bin/bash

Troubleshooting

  • DB SID can not contain dashes and other illegal characters - consult Oracle docs for more info.

Remarks

Docker Pull Command
Owner
embedit

Comments (0)