Docker测试11G

2023-10-07  本文已影响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;
上一篇 下一篇

猜你喜欢

热点阅读