基于CentOS Linux release 7.1实现了Oracle Database 11g R2 企业版容器化运行

docker compose yml

xml 复制代码
version: '3' 
networks:
  oracle11g:
    ipam:
      driver: default
      config:
        - subnet: "172.11.0.0/24"

services:
  oracle11c:
    image:  /docker.io/yzd/oracle11:11.2.0.4
    container_name: oracle11g
    restart: always
    environment:
      # 时区上海
      TZ: Asia/Shanghai
      DBCA_TOTAL_MEMORY: 1024
      ORACLE_ALLOW_REMOTE: "true"
      ORACLE_EDITION: standard
      ORACLE_CHARACTERSET: AL32UTF8
    ports:
      - "28080:8080"
      - "2521:1521"
    volumes:
      # 数据挂载
      - "/etc/localtime:/etc/localtime"
    #    network_mode: host
    networks:
      oracle11g:
        ipv4_address: 172.11.0.11
前期准备
  • 安装docker
  • 安装docker compose

如需帮助请联系:121665820@qq.com

安装教程
shell 复制代码
# 启动 容器
docker-compose -f docker-compose-oracle11g.yml up -d
# 停止 容器
docker-compose -f docker-compose-oracle11g.yml down
# 删除 容器
docker-compose -f docker-compose-oracle11g.yml rm
# 删除 容器及镜像
docker-compose -f docker-compose-oracle11g.yml rm -f
运行效果
  • 查看运行状态
使用说明
  • 数据库信息

sid:orcl

port:2521

system/oracle

  • 测试

如需帮助请联系:121665820@qq.com

参与贡献
  1. 121665820@qq.com
  2. https://yzd1206.blog.csdn.net
相关推荐
skywalk81632 分钟前
clonos web界面使用cbsd创建一个bhyve ubuntu server虚拟机(未成功)
linux·运维·服务器·freebsd
allen sue3 分钟前
Moltbot(Clawdbot)
人工智能·docker
程序猿编码5 分钟前
深入浅出Linux内核级防火墙:IP/端口黑白名单的高性能实现
linux·c语言·c++·tcp/ip·内核
RisunJan6 分钟前
Linux命令-lnstat(显示 Linux 网络统计信息)
linux·运维·网络
l1t6 分钟前
在Windows的WSL中试用GizmoSQL UI连接GizmoSQL数据库服务器
数据库·windows·ui
嵌入式郑工7 分钟前
# RK3576 平台 RTC 时钟调试全过程
linux·驱动开发·ubuntu
GS8FG8 分钟前
针对Linux,RK3568平台下,I2C驱动的一点小小的领悟
linux·驱动开发
Y.O.U..8 分钟前
Linux复习-用户和组管理
linux·服务器
2301_8112329810 分钟前
使用Python进行PDF文件的处理与操作
jvm·数据库·python
Wzx19801210 分钟前
go聊天室接入mysql的项目docker部署流程
mysql·docker·golang