美文网首页
Docker测试11G

Docker测试11G

作者: 古飞_数据 | 来源:发表于2023-10-07 09:11 被阅读0次
docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
docker run -d -p 1521:1521 --name oracle11g --restart=always --mount source=oracle_vol,target=/home/oracle/app/oracle/oradata registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g

sudo docker exec -it oracle11g bash
vi /home/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 /home/oracle/.bashrc

sqlplus /nolog
conn / as sysdba

su - oracle
sqlplus /nolog
conn / as sysdba
select instance_name from v$instance;
show user;

相关文章

网友评论

      本文标题:Docker测试11G

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