docker 部署 oracle 19c

docker-compose.yml
version: "3.7"

services:
  oracle:
    image: 'registry.cn-hangzhou.aliyuncs.com/zhuyijun/oracle:19c'
    restart: always
    ports:
      - '1521:1521'
      - '5500:5500'
    environment:
      - ORACLE_SID=ORCLCDB
      - ORACLE_PDB=ORCLPDB1
      - ORACLE_PWD=123456
      - ORACLE_EDITION=standard
      - ORACLE_CHARACTERSET=AL32UTF8
    volumes:
      - db_data:/opt/oracle/oradata

volumes:
  db_data:
初次运行时安装的时间比较久,需要耐心等待。

登录设置:
  - SID: ORCLCDB 或者 Service Name: ORCLCDB 或者 Service Name: ORCLPDB1
  - 用户名密码: sys/123456(SYSDBA) 或者 system/123456(Normal)
  - 默认表空间为: SYSTEM