摘要:或者自己自动添加表构建镜像启动连接配置在上配置
image
docker pull registry.cn-hangzhou.aliyuncs.com/qida/oracle-xe-11g
或者自己自动添加表
create role test_role; grant create any table, alter any table, drop any table, insert any table, update any table, delete any table, create any index, alter any index, drop any index, create any sequence, alter any sequence, drop any sequence, select any sequence, create any view, drop any view to test_role; create tablespace testdb datafile "/u01/app/oracle/oradata/XE/testdb.dbf" size 300m autoextend on next 1m maxsize unlimited extent management local; create user test identified by test default tablespace testdb temporary tablespace temp; grant connect, resource to test; alter user test quota unlimited on testdb; grant test_role to test;
构建镜像
FROM registry.cn-hangzhou.aliyuncs.com/qida/oracle-xe-11g ADD init.sql /docker-entrypoint-initdb.d/启动
docker run -d -p 49160:22 -p 49161:1521 -e ORACLE_ALLOW_REMOTE=true registry.cn-hangzhou.aliyuncs.com/qida/oracle-xe-11g连接
hostname: 192.168.99.100 port: 49161 sid: xe username: system password: oracle Password for SYS & SYSTEMjdbc
maven
com.oracle ojdbc6 11.2.0.3
repository
codelds https://code.lds.org/nexus/content/groups/main-repo spring-snapshots Spring Snapshots https://repo.spring.io/snapshot true spring-milestones Spring Milestones https://repo.spring.io/milestone false
配置
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver spring.datasource.url=jdbc:oracle:thin:@192.168.99.100:49161:xe spring.datasource.username=test spring.datasource.password=test spring.jpa.hibernate.ddl-auto=update spring.jpa.database-platform=org.hibernate.dialect.Oracle10gDialectdoc
wnameless/oracle-xe-11g
qida/oracle-xe-11g
在 Docker 上配置 Oracle
docker-oracle-xe-11g-demo
文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。
转载请注明本文地址:https://www.ucloud.cn/yun/35057.html
摘要:或者自己自动添加表构建镜像启动连接配置在上配置 image docker pull registry.cn-hangzhou.aliyuncs.com/qida/oracle-xe-11g 或者自己自动添加表 create role test_role; grant create any table, alter any table, drop any table, insert...
摘要:或者自己自动添加表构建镜像启动连接配置在上配置 image docker pull registry.cn-hangzhou.aliyuncs.com/qida/oracle-xe-11g 或者自己自动添加表 create role test_role; grant create any table, alter any table, drop any table, insert...
为实现一个镜像,多次使用,镜像下载速度快,我们通常会搭建一个docker私有仓库一 什么是Docker容器Docker 是基于 Go 语言开源的应用容器引擎, 它严格遵从 Apache2.0 协议开源Docker 的作用是可以把一个应用以及依赖包到一个轻量级、可移植的容器中,并发布到任何流行的 Linux 机器上,实现虚拟化容器之间是相互独立的,使用的是沙箱机制镜像(Image) 相当于是一个ro...
摘要:写在前面工作中,一般安装客户端,配置安装好客户端或者服务端才会有,远程连接数据库即可满足连接数据库的需求了。若希望本机可以操作,则需要安装服务端。安装服务端下载安装将解压缩到同一目录运行,傻瓜式装机流程正在向你袭来 写在前面:工作中,一般安装 Oracle 11g 客户端,配置 Net Manager(安装好客户端或者服务端才会有),远程连接 Oracle 数据库即可满足连接数据库...
摘要:下环境变量设置编辑或者,添加如下这样就可以在用户下输入进入命令行客户端啦。刚开始很疑惑怎么使用默认的用户及密码不登陆到数据库,使用管理员身份连接。现在可以正常使用数据库服务啦。具体使用的一些命令和注意点见下章节。 Oracle的安装还是挺麻烦的。然而使用Docker,可以简单、方便的搭建Oracle环境 阿里云Docker镜像地址 安装步骤 1、首先在docker环境下载镜像 dock...
阅读 3205·2021-11-18 10:02
阅读 932·2021-11-11 16:55
阅读 2928·2021-08-16 11:00
阅读 2701·2019-08-30 15:56
阅读 3346·2019-08-30 11:24
阅读 3322·2019-08-30 11:05
阅读 3433·2019-08-29 15:15
阅读 2487·2019-08-26 13:57