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
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
To start and stop container
docker start db-FOO
docker stop db-FOO
To invoke interactive shell in the running container
docker exec -it db-FOO /bin/bash
- DB SID can not contain dashes and other illegal characters - consult Oracle docs for more info.