在Docker上运行Oracle Database

在Docker上运行Oracle Database

严少安 Lv.6

Run OracleDatabase on Docker

Info

Oracle Database 11.2.0.2 XE

host swap space size need more than 2048M

Step

  • 拉取基础镜像
1
docker pull oraclelinux:7-slim
  • 下载xe安装包
1
http://download.oracle.com/otn/linux/oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip

IMPORTANT: You will have to provide the installation binaries of Oracle Database and put them into the dockerfiles/<version> folder.

1
2
cd OracleDatabase/dockerfiles
./buildDockerImage.sh -v 11.2.0.2 -x
  • 运行docker
1
2
3
4
5
6
docker run --name <container name> \
--shm-size=1g \
-p 1521:1521 -p 8080:8080 \
-e ORACLE_PWD=<your database passwords> \
-v [<host mount point>:]/u01/app/oracle/oradata \
oracle/database:11.2.0.2-xe
1
2
3
4
5
6
docker run --name oracle11g \
--shm-size=1g \
-p 1521:1521 -p 8080:8080 \
-e ORACLE_PWD=password \
-v /u01/app/oracle/oradata \
oracle/database:11.2.0.2-xe
  • Title: 在Docker上运行Oracle Database
  • Author: 严少安
  • Created at: 2018-02-20 20:20:01
  • Updated at: 2018-02-20 20:20:01
  • Link: https://shawnyan.cn/2018/docker/docker-with-oracle/
  • License: This work is licensed under CC BY-NC-SA 4.0.
 Comments
On this page