在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.
if (hexo-config('comment.enable') == true && hexo-config('comment.system') != "") { if (hexo-config('comment.system') == "waline") { @require "./waline.styl" } else if (hexo-config('comment.system') == "gitalk") { @require "./gitalk.styl" } else if (hexo-config('comment.system') == "twikoo") { @require "./twikoo.styl" } } .comments-container display inline-block margin-top $spacing-unit width 100% #comment-anchor width 100% height 10px .comment-area-title width 100% margin 10px 0 font-size 1.38rem color var(--default-text-color) font-family 'Consolas', '宋体', sans-serif font-weight bold i color var(--default-text-color) +redefine-tablet() margin 5px 0 font-size 1.2rem
On this page