今天来记录一下最简单的使用docker部署oracle 11g的过程
1.下载镜像
docker pull registry.cn-hangzhou.aliyuncs.com/catarc/adc:my_oracle_11g
2.启动容器
docker run -d -p 1521:1521 --restart=always --privileged=true -v /home/oracleData/:/home/oracleData/:rw registry.cn-hangzhou.aliyuncs.com/catarc/adc:my_oracle_11g
3.进入容器
docker exec -it 5666a9736cd3 /bin/bash
4.配置参数
进入root,密码为helowin
su root
su - oracle
sqlplus /nolog
conn /as sysdba
alter user system identified by system;
alter user sys identified by sys;
create user test identified by test;
grant connect,resource,dba to test;
搞定!
测试连接: