mac docker desktop 安装 oracle
1.登录 oracle 官网,选择镜像 https://container-registry.oracle.com/ords/f?2.登录认证 oracle 账号。
·
1.登录 oracle 官网,选择镜像 https://container-registry.oracle.com/ords/f?p=113:1:6104693702564::::FSP_LANGUAGE_PREFERENCE:&cs=3CAuGEkeY6APmlAELFJ0uYU5M8_O8aTEufSKZHFf12lu1sUk5fsdbCzJAni9jVaCYXf-SNM_8e3VYr1V4QMBq1A
2.登录认证 oracle 账号
docker login \
--username your.oracle.email@example.com \
--password your_oracle_password \
container-registry.oracle.com
3.拉取镜像
docker pull
container-registry.oracle.com/database/enterprise:latest
4.启动容器
docker run -d --name oracle19 \
-p 1521:1521 \
-p 5500:5500 \
-e ORACLE_SID=ORCLCDB \
-e ORACLE_PDB=ORCLPDB1 \
-e ORACLE_PWD=yourpassword \
-e ORACLE_EDITION=enterprise \
-e ORACLE_CHARACTERSET=AL32UTF8 \
-e ENABLE_ARCHIVELOG=false \
-v /data/oracle:/opt/oracle/oradata \
your containerid
5.进入容器
docker exec -it oracle19 /bin/bash
sqlplus system/oracle@localhost:1521/ORCLCDB
alter session set container = ORCLPDB1

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐
所有评论(0)