docker:在docker上安装oracle11g
2020-04-06 本文已影响0人
淼哥1986
时间略长
- 拉镜像
docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
- 运行
docker run -p 1521:1521 --name oracle_11g -d --restart=always registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
- 进入容器
docker exec -it 容器id /bin/bash
- 切换root用户,密码:helowin
vi /etc/profile
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
export ORACLE_SID=helowin
export PATH=$ORACLE_HOME/bin:$PATH
- 刷新配置文件
source /home/oracle/.bash_profile
- 修改账户
alter user system identified by oracle;
alter user sys identified by oracle;