skip to Main Content

Dear StackOverflow Community,
i have bought myself a MacBook Pro M1 Pro 2021 and I need for my school a running instance of Oracle 18c or 21c Express Edition.
I have tried creating a VM and running a docker inside of it, but it obviously did not work.
I have also tried running a docker in Docker Desktop directly on my Mac.
I have been using the docker-images provided by oracle, but nothing worked.
Regards,
Daniel

2

Answers


  1. There are two issues here:

    1. Oracle Database is not supported on ARM processors, only Intel. See here: https://github.com/oracle/docker-images/issues/1814

    2. Oracle Database Docker images are only supported with Oracle Linux 7 or Red Hat Enterprise Linux 7 as the host OS. See here: https://github.com/oracle/docker-images/tree/main/OracleDatabase/SingleInstance

    Oracle Database … is supported for Oracle Linux 7 and Red Hat
    Enterprise Linux (RHEL) 7. For more details please see My Oracle
    Support note: Oracle Support for Database Running on Docker (Doc ID
    2216342.1)

    The referenced My Oracle Support Doc ID goes on to say that the database binaries in their Docker image are built specifically for Oracle Linux hosts, and will also work on Red Hat. That’s it.

    Because Docker provides process level virtualization it still pulls kernel and other OS libraries from the underlying host OS. A Docker image built for Oracle Linux needs an Oracle Linux host; it doesn’t bring the Oracle Linux OS with it. Only Oracle Linux or Red Hat Linux are supported for any Oracle database Linux installation, with or without Docker. Ubuntu, Mac OS, Debian, or any other *NIX flavor will not provide predictable reliable results, even if it is hacked into working or the processes appear to work normally ("works" and "supported" are not the same thing).

    Bottom Line: You won’t be able to run an Oracle database on that hardware.

    Login or Signup to reply.
  2. Sign up for Oracle Cloud Free Tier and utilize their always free offerings.
    You can create an autonomous database in matter of minutes and you can use it f o r e v e r free of charge.

    Note! You will have to provide a credit card when signing up. This is for identification purposes, but as long as you do not upgrade the account to paid, your card will not be charged. The first 30 days, you can build your own datacenter with the cloud credits granted.

    # spin up a database from the command-line
    oci db autonomous-database create 
      --compartment-id $C 
      --is-free-tier TRUE 
      --display-name DEMODB 
      --db-name DEMODB 
      --admin-password "${PASSWORD}" 
      --cpu-core-count 1 
      --data-storage-size-in-tbs 1 
      --db-workload "${WORKLOAD}" 
      --db-version 21c 
      --license-model LICENSE_INCLUDED 
      --freeform-tags '{"Version": "21c"}'
    

    Best of luck!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search