第十节 Linux使用Docker安装Oracle11
docker search oracle

docker pull jaspeen/oracle-11g

docker run --name oracle -p 1521:1521 -d registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g

docker ps 获取到了oracle容器的ID

有了容器ID 203eb7821f1c,就进入容器
docker exec -it 容器ID /bin/bash

加载Oracle环境变量
source /home/oracle/.bash_profile

登录sqlplus
sqlplus /nolog

connect /as sysdba

创建用户 test test
create user test identified by test;

授权
grant connect,resource,dba to test;

Oracle服务名是固定的“helowin”


浙公网安备 33010602011771号