docker 安装 oracle
docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
docker run -d -p 1521:1521 --name oracle11g registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
docker start oracle11g
docker exec -it oracle11g bash
su root
vi /etc/profile
vi ~oracle/.bashrc
source /etc/profile
ln -s $ORACLE_HOME/bin/sqlplus /usr/bin
su oracle
sqlplus /nolog
- 执行不成功则
source ~oracle/.bashrc
, 然后再执行一次
conn /as sysdba
ALTER USER SYSTEM IDENTIFIED BY "yourpwd00";
![](https://img2018.cnblogs.com/blog/1043898/201909/1043898-20190917085643176-996061845.png)
- 参考链接: https://blog.csdn.net/qq_38380025/article/details/80647620
原文地址:https://www.cnblogs.com/edhg/p/11531475.html