美文网首页
docker 安装oracle11g及配置

docker 安装oracle11g及配置

作者: 金_鹏 | 来源:发表于2019-06-12 13:30 被阅读0次

1. 下载镜像源

docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g --pull 镜像(6个多G)

2. 运行容器

docker run -d -p 1521:1521 -v /data/oracle:/data/oracle --name oracle11 registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g

3.进入容器

docker exec -it oracle11 /bin/bash

4. 加载环境变量

source /home/oracle/.bash_profile

5.创建用户

sqlplus /nolog
sql> connect /as sysdba
sql> create user test identified by test;
grant connect,resource,dba to test;

注: root:用户的密码是helowin

相关文章

网友评论

      本文标题:docker 安装oracle11g及配置

      本文链接:https://www.haomeiwen.com/subject/mcikfctx.html