ubuntu 如何利用docker安装 oracle

1,更新一下依赖

sudo apt update
sudo apt dist-upgrade

2,首先安装docker

sudo apt install docker.io
#利用直接pull oracle 镜像可以参考我的另一个博客地址,提供一个加速下载通道
#https://www.cnblogs.com/shi-qi/articles/8989230.html
sudo docker pull sath89/oracle-xe-11g

 3,开启docker 并配置oracle配置信息

#然后开启一个新的oracle 并且命名为 xu
sudo docker run -d -p 8080:8080 -p 1521:1521 -e DEFAULT_SYS_PASS=sYs-p@ssw0rd --name xu sath89/oracle-xe-11g
#连接docker
sudo docker exec -it xe bash
#配置信息,配置过程之中的用户名为systerm 密码自己设定
#配置systerm用户,其他的用户都是给予systerm用户登录后创建的 
/etc/init.d/oracle-xe configure

4,终端启动oracle操作

#切换到超级权限
su
#开启docker xu
docker start xu
#连接docker
docker exec -it xu bash
sqlplus / as sysdba

5,ubuntu有着与oralce 配套使用的软件的DataGrip,在我的其他博客也有说明,以及破解

'''
#破解
https://www.cnblogs.com/shi-qi/articles/9000059.html
#DataGrip使用方式
https://www.cnblogs.com/shi-qi/articles/8960823.html
'''

 

posted @ 2018-05-25 21:50  十七楼的羊  阅读(248)  评论(0编辑  收藏  举报