标签:mic bin ali registry docker code href aliyun gre
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
helowin
passwd root
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
helowin
, 或通过执行env | grep SID
得到, 连接时用得到vi ~oracle/.bashrc
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2 export ORACLE_SID=helowin export PATH=$ORACLE_HOME/bin:$PATH
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";
yourpwd00
为你的密码, 可自定义标签:mic bin ali registry docker code href aliyun gre
原文地址:https://www.cnblogs.com/edhg/p/11531475.html