Skip to content

Docker

Oracle Database Express 镜像大小, 10 GB 以上。运行容器,命名 xe ,替换 <passowrd> 为实际密码,设置中文字符集。指定密码后,密码将作为容器环境变量可见并不可更改,不指定密码将随机生成密码。

docker run -d \
  --name xe \
  -p 1521:1521 \
  -p 5500:5500 \
  -e ORACLE_PWD=<password> \
  -e NLS_LANG='SIMPLIFIED CHINESE_CHINA.AL32UTF8' \
  container-registry.oracle.com/database/express:21.3.0-xe

进入容器 xe ,交互模式。

docker exec -it xe sqlplus / as sysdba
SQL*Plus

连接到:
Oracle Database Express Edition Release Production

SQL>

退出交互模式。

exit
从 Oracle Database Express Edition Release - Production
断开

退出容器。

exit

进入容器 xe ,使用 bash 。

docker exec -it xe bash
bash$

进入交互模式。

sqlplus / as sysdba
SQL*Plus

连接到:
Oracle Database Express Edition Release Production

SQL>

联系 math@baima.site