如何获得一个Oracle 23c免费开发者版

news2024/11/13 8:47:16

获取23c开发者版

简单介绍可参考这里。

获取数据库可以参考这篇文章Introducing Oracle Database 23c Free – Developer Release或这里。

Docker Image

这是最快的方法。在OCI上创建一个计算实例,然后就可以拉取image使用了。

docker的安装和配置不赘述了。

拉取image:

$ docker pull container-registry.oracle.com/database/free
Using default tag: latest
Trying to pull repository container-registry.oracle.com/database/free ...
latest: Pulling from container-registry.oracle.com/database/free
031aed3cb40e: Pull complete
064e6354b87b: Pull complete
e0e26966d0d9: Pull complete
0d1f063a4da2: Pull complete
Digest: sha256:474f570148ef37d1152ccff3361109fb8b92e0eab523cef32efe273e5abcbb94
Status: Downloaded newer image for container-registry.oracle.com/database/free:latest
container-registry.oracle.com/database/free:latest

image大约11G:

$ docker images
REPOSITORY                                    TAG                 IMAGE ID            CREATED             SIZE
container-registry.oracle.com/database/free   latest              d45af382bf76        5 weeks ago         10.6GB

然后启动数据库,第一次时间长点,但感觉比企业版要快很多:

$ docker run container-registry.oracle.com/database/free:latest
Starting Oracle Net Listener.
Oracle Net Listener started.
Starting Oracle Database instance FREE.
Oracle Database instance FREE started.

The Oracle base remains unchanged with value /opt/oracle
#########################
DATABASE IS READY TO USE!
#########################
The following output is now a tail of the alert.log:
PDB$SEED(2):Opening pdb with Resource Manager plan: DEFAULT_PLAN
FREEPDB1(3):SUPLOG: Initialize PDB SUPLOG SGA, old value 0x0, new value 0x18
FREEPDB1(3):Autotune of undo retention is turned on.
FREEPDB1(3):Undo initialization recovery: Parallel FPTR failed: start:245860668 end:245860669 diff:1 ms (0.0 seconds)
FREEPDB1(3):[162] Successfully onlined Undo Tablespace 2.
FREEPDB1(3):SUPLOG: Set PDB SUPLOG SGA at PDB OPEN, old 0x18, new 0x0 (no suplog)
2023-09-08T09:00:33.615993+00:00
FREEPDB1(3):Opening pdb with Resource Manager plan: DEFAULT_PLAN
Completed: Pluggable database FREEPDB1 opened read write
Completed: ALTER DATABASE OPEN
2023-09-08T09:00:34.918003+00:00
===========================================================
Dumping current patch information
===========================================================
No patches have been applied
===========================================================

正式启动一次:

$ docker run -d --name ORCLCDB container-registry.oracle.com/database/free:latest
8c8facd08dc24261c2b2092ff9ecb2a41189303eaa059e1d2a1034226a6da1db

$ docker ps
CONTAINER ID        IMAGE                                                COMMAND                  CREATED             STATUS                             PORTS               NAMES
8c8facd08dc2        container-registry.oracle.com/database/free:latest   "/bin/bash -c $ORACL…"   35 seconds ago      Up 34 seconds (health: starting)   1521/tcp            ORCLCDB

$ docker ps
CONTAINER ID        IMAGE                                                COMMAND                  CREATED              STATUS                        PORTS               NAMES
8c8facd08dc2        container-registry.oracle.com/database/free:latest   "/bin/bash -c $ORACL…"   About a minute ago   Up About a minute (healthy)   1521/tcp            ORCLCDB

这一次启动只需不到1分钟:

2023-09-08T09:04:05.032218930Z Starting Oracle Net Listener.
2023-09-08T09:04:05.176991996Z Oracle Net Listener started.
2023-09-08T09:04:05.177014108Z Starting Oracle Database instance FREE.
2023-09-08T09:04:40.229143588Z Oracle Database instance FREE started.
2023-09-08T09:04:40.229164627Z
2023-09-08T09:04:40.273314674Z The Oracle base remains unchanged with value /opt/oracle
2023-09-08T09:04:40.458092335Z #########################
2023-09-08T09:04:40.458114517Z DATABASE IS READY TO USE!
2023-09-08T09:04:40.458119405Z #########################

登录数据库:

$ docker exec -it ORCLCDB sqlplus / as sysdba

SQL*Plus: Release 23.0.0.0.0 - Developer-Release on Fri Sep 8 09:09:14 2023
Version 23.2.0.0.0

Copyright (c) 1982, 2023, Oracle.  All rights reserved.


Connected to:
Oracle Database 23c Free, Release 23.0.0.0.0 - Developer-Release
Version 23.2.0.0.0

SQL> show pdbs

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         3 FREEPDB1                       READ WRITE NO
SQL> exit
Disconnected from Oracle Database 23c Free, Release 23.0.0.0.0 - Developer-Release
Version 23.2.0.0.0

Vagrant Box

如果要离线用,Vagrant Box是一个不错的选择。

简介看这里。

和其它版本的Oracle不同,开发者版不需要预先下载安装介质,其实也没得可下。因此网速就很重要。

安装日志如下:

$ vagrant up
Bringing machine 'oracle23c-free-vagrant' up with 'virtualbox' provider...
==> oracle23c-free-vagrant: Importing base box 'oraclelinux/8'...
==> oracle23c-free-vagrant: Matching MAC address for NAT networking...
==> oracle23c-free-vagrant: Checking if box 'oraclelinux/8' version '8.8.485' is up to date...
==> oracle23c-free-vagrant: Setting the name of the VM: oracle23c-free-vagrant
==> oracle23c-free-vagrant: Clearing any previously set network interfaces...
==> oracle23c-free-vagrant: Preparing network interfaces based on configuration...
    oracle23c-free-vagrant: Adapter 1: nat
==> oracle23c-free-vagrant: Forwarding ports...
    oracle23c-free-vagrant: 1522 (guest) => 1522 (host) (adapter 1)
    oracle23c-free-vagrant: 22 (guest) => 2222 (host) (adapter 1)
==> oracle23c-free-vagrant: Running 'pre-boot' VM customizations...
==> oracle23c-free-vagrant: Booting VM...
==> oracle23c-free-vagrant: Waiting for machine to boot. This may take a few minutes...
    oracle23c-free-vagrant: SSH address: 127.0.0.1:2222
    oracle23c-free-vagrant: SSH username: vagrant
    oracle23c-free-vagrant: SSH auth method: private key
    oracle23c-free-vagrant:
    oracle23c-free-vagrant: Vagrant insecure key detected. Vagrant will automatically replace
    oracle23c-free-vagrant: this with a newly generated keypair for better security.
...
==> oracle23c-free-vagrant: Machine booted and ready!
==> oracle23c-free-vagrant: Checking for guest additions in VM...
==> oracle23c-free-vagrant: Setting hostname...
==> oracle23c-free-vagrant: Mounting shared folders...
...
    oracle23c-free-vagrant: INSTALLER: Started up
    oracle23c-free-vagrant: Oracle Linux 8 BaseOS Latest (x86_64)           9.1 MB/s |  62 MB     00:06
    oracle23c-free-vagrant: Oracle Linux 8 Application Stream (x86_64)       10 MB/s |  48 MB     00:04
    oracle23c-free-vagrant: Latest Unbreakable Enterprise Kernel Release 7  7.5 MB/s |  19 MB     00:02
    oracle23c-free-vagrant: Last metadata expiration check: 0:00:04 ago on Fri 08 Sep 2023 09:26:17 AM UTC.
    oracle23c-free-vagrant: Dependencies resolved.
    oracle23c-free-vagrant: =========================================================================================================
    oracle23c-free-vagrant:  Package                    Arch    Version                                      Repository          Size
    oracle23c-free-vagrant: =========================================================================================================
    oracle23c-free-vagrant: Installing:
    oracle23c-free-vagrant:  kernel-uek-core            x86_64  5.15.0-104.119.4.2.el8uek                    ol8_UEKR7           54 M
    oracle23c-free-vagrant:  kernel-uek-devel           x86_64  5.15.0-104.119.4.2.el8uek                    ol8_UEKR7           20 M
    oracle23c-free-vagrant: Upgrading:
    oracle23c-free-vagrant:  NetworkManager             x86_64  1:1.40.16-4.0.1.el8_8                        ol8_baseos_latest  2.3 M
    oracle23c-free-vagrant:  NetworkManager-libnm       x86_64  1:1.40.16-4.0.1.el8_8                        ol8_baseos_latest  1.9 M
    oracle23c-free-vagrant:  binutils                   x86_64  2.30-119.0.2.el8                             ol8_baseos_latest  5.9 M
...
    oracle23c-free-vagrant: Downloading Packages:
    oracle23c-free-vagrant: (1/68): grub2-tools-efi-2.02-148.0.3.el8_8.1.x8 465 kB/s | 481 kB     00:01
    oracle23c-free-vagrant: (2/68): NetworkManager-1.40.16-4.0.1.el8_8.x86_ 2.3 MB/s | 2.3 MB     00:00
    oracle23c-free-vagrant: (3/68): NetworkManager-libnm-1.40.16-4.0.1.el8_ 6.1 MB/s | 1.9 MB     00:00
    oracle23c-free-vagrant: (4/68): binutils-2.30-119.0.2.el8.x86_64.rpm    4.0 MB/s | 5.9 MB     00:01
    oracle23c-free-vagrant: (5/68): kernel-uek-devel-5.15.0-104.119.4.2.el8 4.7 MB/s |  20 MB     00:04
...
    oracle23c-free-vagrant: Complete!
    oracle23c-free-vagrant: INSTALLER: System updated
...
    oracle23c-free-vagrant: Installed:
    oracle23c-free-vagrant:   oraclelinux-developer-release-el8-1.0-7.el8.x86_64
    oracle23c-free-vagrant:
    oracle23c-free-vagrant: Complete!
...
    oracle23c-free-vagrant: Complete!
    oracle23c-free-vagrant: INSTALLER: Oracle preinstall and openssl complete
    oracle23c-free-vagrant: INSTALLER: Environment variables set
    oracle23c-free-vagrant: INSTALLER: Downloading Oracle Database software
    oracle23c-free-vagrant: Last metadata expiration check: 0:03:36 ago on Fri 08 Sep 2023 05:30:37 PM +08.
    oracle23c-free-vagrant: Dependencies resolved.
    oracle23c-free-vagrant: ================================================================================
    oracle23c-free-vagrant:  Package                       Arch        Version      Repository         Size
    oracle23c-free-vagrant: ================================================================================
    oracle23c-free-vagrant: Installing:
    oracle23c-free-vagrant:  oracle-database-free-23c      x86_64      1.0-1        @commandline      1.6 G
    oracle23c-free-vagrant:
    oracle23c-free-vagrant: Transaction Summary
    oracle23c-free-vagrant: ================================================================================
    oracle23c-free-vagrant: Install  1 Package
    oracle23c-free-vagrant:
    oracle23c-free-vagrant: Total size: 1.6 G
    oracle23c-free-vagrant: Installed size: 5.2 G
    oracle23c-free-vagrant: Downloading Packages:
    oracle23c-free-vagrant: Running transaction check
    oracle23c-free-vagrant: Transaction check succeeded.
    oracle23c-free-vagrant: Running transaction test
    oracle23c-free-vagrant: Transaction test succeeded.
    oracle23c-free-vagrant: Running transaction
    oracle23c-free-vagrant:   Preparing        :                                                        1/1
    oracle23c-free-vagrant:   Running scriptlet: oracle-database-free-23c-1.0-1.x86_64                  1/1
    oracle23c-free-vagrant:   Installing       : oracle-database-free-23c-1.0-1.x86_64                  1/1
    oracle23c-free-vagrant:   Running scriptlet: oracle-database-free-23c-1.0-1.x86_64                  1/1
    oracle23c-free-vagrant: [INFO] Executing post installation scripts...
    oracle23c-free-vagrant: [INFO] Oracle home installed successfully and ready to be configured.
    oracle23c-free-vagrant: To configure Oracle Database Free, optionally modify the parameters in '/etc/sysconfig/oracle-free-23c.conf' and then run '/etc/init.d/oracle-free-23c configure' as root.
    oracle23c-free-vagrant:
    oracle23c-free-vagrant:   Verifying        : oracle-database-free-23c-1.0-1.x86_64                  1/1
    oracle23c-free-vagrant:
    oracle23c-free-vagrant: Installed:
    oracle23c-free-vagrant:   oracle-database-free-23c-1.0-1.x86_64
    oracle23c-free-vagrant:
    oracle23c-free-vagrant: Complete!
    oracle23c-free-vagrant: INSTALLER: Oracle software installed
    oracle23c-free-vagrant: Configuring Oracle Listener.
    oracle23c-free-vagrant: Listener configuration succeeded.
    oracle23c-free-vagrant: Configuring Oracle Database FREE.
    oracle23c-free-vagrant: Enter SYS user password:
    oracle23c-free-vagrant: ***************
    oracle23c-free-vagrant: Enter SYSTEM user password:
    oracle23c-free-vagrant: **************
    oracle23c-free-vagrant: Enter PDBADMIN User Password:
    oracle23c-free-vagrant: ***************
    oracle23c-free-vagrant: Prepare for db operation
    oracle23c-free-vagrant: 7% complete
    oracle23c-free-vagrant: Copying database files
    oracle23c-free-vagrant: 29% complete
    oracle23c-free-vagrant: Creating and starting Oracle instance
    oracle23c-free-vagrant: 30% complete
    oracle23c-free-vagrant: 33% complete
    oracle23c-free-vagrant: 36% complete
    oracle23c-free-vagrant: 39% complete
    oracle23c-free-vagrant: 43% complete
    oracle23c-free-vagrant: Completing Database Creation
    oracle23c-free-vagrant: 47% complete
    oracle23c-free-vagrant: 49% complete
    oracle23c-free-vagrant: 50% complete
    oracle23c-free-vagrant: Creating Pluggable Databases
    oracle23c-free-vagrant: 54% complete
    oracle23c-free-vagrant: 71% complete
    oracle23c-free-vagrant: Executing Post Configuration Actions
    oracle23c-free-vagrant: 93% complete
    oracle23c-free-vagrant: Running Custom Scripts
    oracle23c-free-vagrant: 100% complete
    oracle23c-free-vagrant: Database creation complete. For details check the logfiles at:
    oracle23c-free-vagrant:  /opt/oracle/cfgtoollogs/dbca/FREE.
    oracle23c-free-vagrant: Database Information:
    oracle23c-free-vagrant: Global Database Name:FREE
    oracle23c-free-vagrant: System Identifier(SID):FREE
    oracle23c-free-vagrant: Look at the log file "/opt/oracle/cfgtoollogs/dbca/FREE/FREE.log" for further details.
    oracle23c-free-vagrant:
    oracle23c-free-vagrant: Connect to Oracle Database using one of the connect strings:
    oracle23c-free-vagrant:      Pluggable database: localhost.localdomain:1522/FREEPDB1
    oracle23c-free-vagrant:      Multitenant container database: localhost.localdomain:1522
    oracle23c-free-vagrant: INSTALLER: Database created
    oracle23c-free-vagrant: oracle-free-23c.service is not a native service, redirecting to systemd-sysv-install.
    oracle23c-free-vagrant: Executing: /usr/lib/systemd/systemd-sysv-install enable oracle-free-23c
    oracle23c-free-vagrant: INSTALLER: Created and enabled oracle-free-23c systemd service
    oracle23c-free-vagrant: INSTALLER: setPassword.sh file set up
    oracle23c-free-vagrant: INSTALLER: Running user-defined post-setup scripts
    oracle23c-free-vagrant: INSTALLER: Done running user-defined post-setup scripts
    oracle23c-free-vagrant: ORACLE PASSWORD FOR SYS, SYSTEM AND PDBADMIN: uqNAuvC8dPI=1
    oracle23c-free-vagrant: INSTALLER: Installation complete, database ready to use!

耗时半小时:

real    29m36.329s
user    0m0.015s
sys     0m0.016s

初始安装11.1GB,比企业版小一些。

留个影:
在这里插入图片描述

登录正常:

[oracle@localhost ~]$ sqlplus / as sysdba

SQL*Plus: Release 23.0.0.0.0 - Developer-Release on Fri Sep 8 17:57:12 2023
Version 23.2.0.0.0

Copyright (c) 1982, 2023, Oracle.  All rights reserved.


Connected to:
Oracle Database 23c Free, Release 23.0.0.0.0 - Developer-Release
Version 23.2.0.0.0

SQL> show pdbs

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         3 FREEPDB1                       READ WRITE NO
SQL> exit
Disconnected from Oracle Database 23c Free, Release 23.0.0.0.0 - Developer-Release
Version 23.2.0.0.0

VM Image

需要安装Virtual Box,其实上一个Vagrant Box也是需要的。下载页面见这里。

大小约7G,因为是图形界面的,可能会比Vagrant Box要慢一点点。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/988678.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

《DevOps实践指南》- 读书笔记(一)

DevOps实践指南 Part 1 DevOps 介绍精益运动敏捷宣言 1. 敏捷、持续交付和三步法1.1 制造业价值流1.2 技术价值流1.2.1 聚焦于部署前置时间1.2.2 关注返工指标——%C/A 1.3 三步工作法:DevOps 的基础原则 2. 第一步:流动原则2.1 使工作可见2.2 限制制品数…

Jenkins教程—构建多分支流水线项目

本教程向你展示如何使用Jenkins协调一个用 Node Package Manager (npm) 管理的简单 Node.js 和 React 项目, 并同时 为开发和产品环境交付不同的结果。 在开始本教程之前,建议你前往 教程概览 页面,并至少完成一个 介绍教程, 从而…

分布式秒杀方案--java

前提:先把商品详情和秒杀商品缓存redis中,减少对数据库的访问(可使用定时任务) 秒杀商品无非就是那几步(前面还可能会有一些判断,如用户是否登录,一人一单,秒杀时间验证等&#xff0…

springboot web 增加不存在的url返回200状态码 vue 打包设置

spring boot项目增加 html web页面访问 1. 首先 application.properties 文件中增加配置,指定静态资源目录(包括html的存放) spring.resources.static-locationsclasspath:/webapp/,classpath:/webapp/static/ 2. 项目目录 3. 如果有实现 …

适用于基于晶圆键合的3D集成应用的高效单晶圆清洗

引言 不同的微电子工艺需要非常干净的表面以防止颗粒污染。其中,晶圆直接键合对颗粒清洁度的要求非常严格。直接晶圆键合包括通过简单地将两种材料的光滑且干净的表面接触来将两种材料连接在一起(图1)。在室温和压力下,两种材料表…

休闲零食新的机会在哪里?

世间唯一不变的,或许只有变化本身。 来自同花顺iFinD的数据显示,上半年A股21家休闲食品概念股累计实现营收350.45亿元,净利润26.46亿元。其中,良品铺子的营业收入排在首位,为39.87亿元,桃李面包的净利润排…

Node.js 文件夹遍历方法:探索优化代码的秘诀

在 Node.js 开发中,经常需要对文件系统进行操作,包括遍历文件夹以获取文件列表。本文将讨论使用 Node.js 遍历文件夹的几种常用方法,并通过一个实际案例来演示如何实现。 基本概念 在开始之前,让我们了解一些基本的概念&#xff…

自动化测试:Selenium中的时间等待

在 Selenium 中,时间等待指在测试用例中等待某个操作完成或某个事件发生的时间。Selenium 中提供了多种方式来进行时间等待,包括使用 ExpectedConditions 中的 presence_of_element_located 和 visibility_of_element_located 方法等待元素可见或不可见&…

数据孤岛的突破口在哪里?

国务院于2021年12月发布的《“十四五”数字经济发展规划》中提到,我国数字经济发展中数字鸿沟问题未得到有效解决,各行业应充分发挥数据要素作用,加强数据治理和监管工作。“数据孤岛”问题虽早已被提出,但至今仍然存在&#xff0…

【Git】Git 基础

Git 基础 参考 Git 中文文档 — https://git-scm.com/book/zh/v2 1.介绍 Git 是目前世界上最先进的分布式版本控制系统,有这么几个特点: 分布式:是用来保存工程源代码历史状态的命令行工具保存点:保存点可以追溯源码中的文件…

【docker快速部署微服务若依管理系统(RuoYi-Cloud)】

工作原因,需要一个比较完整的开源项目测试本公司产品。偶然发现RuoYi-Cloud非常适合,它有足够多的中间件,而且官方提供docker安装,但我本人在安装过程中遇到了很多坑,在这里记录一下防止下次会再次遇到。 项目地址 ht…

OpenCV 01(图像加载与显示)

一、机器视觉 现在说的机器视觉(Machine Vision)一般指计算机视觉(Computer Vision), 简单来说就是研究如何使机器看懂东西。就是是指用摄影机和电脑代替人眼对目标进行识别、跟踪和测量等机器视觉,并进一步做图形处理,使电脑处理成为更适合人眼观察或传…

关于elementui表单验证数字的问题

千里之行始于足下 熟能生巧,不熟怎么生巧 最近编写项目时候遇到一个这样的问题,elementui 表单验证价格是否为数字, 正常来说只需要将规则写为如下 { required: true, type: number, message: "请填写正确的数字", trigger: "…

引爆用户参与:消息重弹,让您的推送不再被忽略

在当前各大APP拉新促活成本居高不下的大背景下,如何稳定存量用户、提升用户粘性就显得尤为关键。从促销活动到个性化推荐,从互动通知到功能提醒,消息推送已成为各大APP连接存量用户和目标市场之间的桥梁,通过点击推送,…

ADS1219芯片解读

使用10-kΩ热敏电阻的温度测量是使用比率测量实现的实现最佳精度的方法。模拟电源电压AVDD用作电阻器分压器配置中的热敏电阻,以及ADS1219的外部参考电压V REF。 ADS1219的输出代码和热敏电阻R热敏电阻之间的关系是通过以下方程式。公式 10将输入AIN0处的输入电压表…

全网超50万粉丝的Linux大咖良许,出书了!

全网超50万粉丝的Linux大咖良许 出书了! 今天我们要说的就是这本由Linux领域头部号主,良许老师编写的这本《速学Linux:系统应用从入门到精通》 如果你是刚开始学习Linux的小白同学,相信你已经体会到与学习一门编程语言相比&…

【源码解读】VUE2.0和VUE3.0响应式区别?

数据劫持的目的 VUE2.0和VUE3.0实现响应式的底层逻辑,是对数据做劫持,为什么要劫持数据呢?是因为,劫持数据后才可以,在更改数据同时对页面进行重新渲染,从而达到响应式。 VUE3.0响应原理 VUE3.0使用了ES…

适配器模式:如何让不兼容的接口变得兼容

在软件开发中,我们经常会遇到这样的情况:我们需要使用一个现有的类或者接口,但它与我们系统的目标接口不兼容,而我们又不能修改它。这时候,我们该怎么办呢?大多数情况下我们都可以使用适配器模式来解决这个…

hutool的HttpRequest.post的使用-包括上传文档等多个传参【总结版本】

首先hutool已经为我们封装好了远程调用的接口,我们只要将对应的传参和方式对应填写即可 hutool官方文档 1实际应用 post 常见的使用json传参,contend type为application/json RequestMapping("login") ResponseBody public static String s…

中国人大与加拿大女王大学中外合作办学金融硕士——学习是你世界的圆吗

有人说,可以把每个人的世界比作一个圆,学习是半径,半径越大,拥有的世界就越广阔。你认同这种观点吗,金融领域的你有想过拓宽知识的边界吗?来人大女王中外合作办学金融硕士项目在职读研,超越自我…