Docker中安装Oracle
2019-02-02 本文已影响0人
dusty_giser
前置条件:
1、完成docker安装并启动
2、Docker所在的主机能进行外网访问
开始
1、搜索Oracle镜像包。如果无法搜索,请检查网络配置。

2、选择安装镜像包
Docker pull sath89/oracle-xe-11g
一定要选sath89/oracle-xe-11g 不要选wnameless/oracle-xe-11g
Pull完成后,可在本地看到镜像包。

3、启动Oracle 持久化命令
docker run -d -p 1521:1521 -v /e/odata:/u01/app/oracle --name oracle --restart=always sath89/oracle-xe-11g
4、利用pl/sql连接数据库
sid: xe
service name: xe
username: system
password: oracle